Skip to content

Commit 5cac8ea

Browse files
committed
perf memswap: Adopt 'struct u64_swap' from evsel.h
As it is not used in evsel.h and is a memory swap struct, so fits better in memswap.h. Cc: Adrian Hunter <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Link: https://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent ea49e01 commit 5cac8ea

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

tools/perf/util/evsel.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,6 @@ struct evsel {
179179
} side_band;
180180
};
181181

182-
union u64_swap {
183-
u64 val64;
184-
u32 val32[2];
185-
};
186-
187182
struct perf_missing_features {
188183
bool sample_id_all;
189184
bool exclude_guest;

tools/perf/util/memswap.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
#ifndef PERF_MEMSWAP_H_
33
#define PERF_MEMSWAP_H_
44

5+
#include <linux/types.h>
6+
7+
union u64_swap {
8+
u64 val64;
9+
u32 val32[2];
10+
};
11+
512
void mem_bswap_64(void *src, int byte_size);
613
void mem_bswap_32(void *src, int byte_size);
714

0 commit comments

Comments
 (0)