projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c16b64
)
perf session: Add missing members to perf_event__attr_swap()
author
Adrian Hunter
<
[email protected]
>
Fri, 18 Oct 2013 12:29:03 +0000
(15:29 +0300)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Mon, 21 Oct 2013 14:19:24 +0000
(11:19 -0300)
The perf_event__attr_swap() method needs to swap all members of struct
perf_event_attr. Add missing ones.
Signed-off-by: Adrian Hunter <
[email protected]
>
Acked-by: Jiri Olsa <
[email protected]
>
Cc: David Ahern <
[email protected]
>
Cc: Frederic Weisbecker <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Jiri Olsa <
[email protected]
>
Cc: Mike Galbraith <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Stephane Eranian <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/util/session.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/session.c
b/tools/perf/util/session.c
index d51e62db96a7ce9472b668aea3599e673d6acf6e..d4559ca08ca6c3444e9c93489fea93a82223fa2c 100644
(file)
--- a/
tools/perf/util/session.c
+++ b/
tools/perf/util/session.c
@@
-453,6
+453,9
@@
void perf_event__attr_swap(struct perf_event_attr *attr)
attr->bp_type = bswap_32(attr->bp_type);
attr->bp_addr = bswap_64(attr->bp_addr);
attr->bp_len = bswap_64(attr->bp_len);
+ attr->branch_sample_type = bswap_64(attr->branch_sample_type);
+ attr->sample_regs_user = bswap_64(attr->sample_regs_user);
+ attr->sample_stack_user = bswap_32(attr->sample_stack_user);
swap_bitfield((u8 *) (&attr->read_format + 1), sizeof(u64));
}