Skip to content

Commit

Permalink
perf tools: Move u64_swap union
Browse files Browse the repository at this point in the history
... 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>
  • Loading branch information
Borislav Petkov authored and Jiri Olsa committed Apr 29, 2014
1 parent c0bc8c6 commit 88080ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions tools/perf/util/evsel.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 0 additions & 5 deletions tools/perf/util/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 88080ce

Please sign in to comment.