OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf tools: Fix build on gcc 4.4.7
[android-x86/kernel.git]
/
tools
/
perf
/
builtin-trace.c
diff --git
a/tools/perf/builtin-trace.c
b/tools/perf/builtin-trace.c
index
c4a5a7d
..
a6c3752
100644
(file)
--- a/
tools/perf/builtin-trace.c
+++ b/
tools/perf/builtin-trace.c
@@
-1994,10
+1994,10
@@
static int perf_evlist__add_pgfault(struct perf_evlist *evlist,
struct perf_event_attr attr = {
.type = PERF_TYPE_SOFTWARE,
.mmap_data = 1,
- .sample_period = 1,
};
attr.config = config;
+ attr.sample_period = 1;
event_attr_init(&attr);