aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/evsel.h
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2014-04-14 17:38:39 +0200
committerJiri Olsa <jolsa@kernel.org>2014-04-29 15:30:21 +0200
commit88080ce7f6af1ad99ad4b2825938411975910116 (patch)
tree9d2d2e63dda8356cc450bc7da2e9d76a5370bd0c /tools/perf/util/evsel.h
parentc0bc8c6d4a2e18e54ef7854a86bc5a47a8e3d04e (diff)
perf tools: Move u64_swap union
... to its single user's header, evsel.h. Signed-off-by: Borislav Petkov <bp@suse.de> Link: http://lkml.kernel.org/r/tip-9os1chjyz12upubfsjc71d99@git.kernel.org Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Diffstat (limited to 'tools/perf/util/evsel.h')
-rw-r--r--tools/perf/util/evsel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h
index 0c9926cfb292..0c581d0d5eb6 100644
--- a/tools/perf/util/evsel.h
+++ b/tools/perf/util/evsel.h
@@ -91,6 +91,11 @@ struct perf_evsel {
char *group_name;
};
+union u64_swap {
+ u64 val64;
+ u32 val32[2];
+};
+
#define hists_to_evsel(h) container_of(h, struct perf_evsel, hists)
struct cpu_map;