Skip to contentSkip to conversation

perf tools: Move u64_swap union

tip:perf/core tip-bot for Borislav Petkov 1 participant 1 message May 1, 2014 1 message not in the archive perf events

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Commit-ID:  88080ce7f6af1ad99ad4b2825938411975910116
Gitweb:     http://git.kernel.org/tip/88080ce7f6af1ad99ad4b2825938411975910116
Author:     Borislav Petkov <[email protected]>
AuthorDate: Mon, 14 Apr 2014 17:38:39 +0200
Committer:  Jiri Olsa <[email protected]>
CommitDate: Tue, 29 Apr 2014 15:30:21 +0200

perf tools: Move u64_swap union

... to its single user's header, evsel.h.

---
 tools/perf/util/evsel.h | 5 +++++
 tools/perf/util/types.h | 5 -----
 2 files changed, 5 insertions(+), 5 deletions(-)
tools/perf/util/evsel.h +5 -0
index 0c9926c..0c581d0 100644
@@ -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;
tools/perf/util/types.h +0 -5
index c51fa6b..5f3689a 100644
@@ -16,9 +16,4 @@ typedef signed short	   s16;
 typedef unsigned char	   u8;
 typedef signed char	   s8;
 
-union u64_swap {
-	u64 val64;
-	u32 val32[2];
-};
-
 #endif /* __PERF_TYPES_H */