diff options
| author | 2012-06-22 10:58:57 -0700 | |
|---|---|---|
| committer | 2012-06-22 10:58:57 -0700 | |
| commit | a11637194adc8bf2c2022ac89314dbdd1fcd1778 (patch) | |
| tree | b761d38ee683a71b7140b4203aee1cd319c5ef0e /tools/perf/util/session.c | |
| parent | Merge tag 'nfs-for-3.5-3' of git://git.linux-nfs.org/projects/trondmy/linux-nfs (diff) | |
| parent | Merge branch 'tip/perf/urgent-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace into perf/urgent (diff) | |
| download | wireguard-linux-a11637194adc8bf2c2022ac89314dbdd1fcd1778.tar.xz wireguard-linux-a11637194adc8bf2c2022ac89314dbdd1fcd1778.zip | |
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull perf updates from Ingo Molnar.
* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
ftrace: Make all inline tags also include notrace
perf: Use css_tryget() to avoid propping up css refcount
perf tools: Fix synthesizing tracepoint names from the perf.data headers
perf stat: Fix default output file
perf tools: Fix endianity swapping for adds_features bitmask
Diffstat (limited to '')
| -rw-r--r-- | tools/perf/util/session.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 2600916efa83..c3e399bcf18d 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c @@ -442,6 +442,16 @@ static void perf_tool__fill_defaults(struct perf_tool *tool) tool->finished_round = process_finished_round_stub; } } + +void mem_bswap_32(void *src, int byte_size) +{ + u32 *m = src; + while (byte_size > 0) { + *m = bswap_32(*m); + byte_size -= sizeof(u32); + ++m; + } +} void mem_bswap_64(void *src, int byte_size) { |
