]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
perf memswap: Adopt 'struct u64_swap' from evsel.h
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 18 Sep 2019 15:28:41 +0000 (12:28 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 20 Sep 2019 12:19:22 +0000 (09:19 -0300)
As it is not used in evsel.h and is a memory swap struct, so fits better
in memswap.h.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-wvzxu7a5l3m868ywwphrnnqo@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evsel.h
tools/perf/util/memswap.h

index 68321d10eb2d01d5f5a938895d89257d86d3ccdd..74df298acb31708173c275aae8482d9f7877ab61 100644 (file)
@@ -179,11 +179,6 @@ struct evsel {
        } side_band;
 };
 
-union u64_swap {
-       u64 val64;
-       u32 val32[2];
-};
-
 struct perf_missing_features {
        bool sample_id_all;
        bool exclude_guest;
index 1e29ff903ca92579f9417a497998b64597aa67e9..2c38e8c2d5484cd49985e092142fbefa8029e645 100644 (file)
@@ -2,6 +2,13 @@
 #ifndef PERF_MEMSWAP_H_
 #define PERF_MEMSWAP_H_
 
+#include <linux/types.h>
+
+union u64_swap {
+       u64 val64;
+       u32 val32[2];
+};
+
 void mem_bswap_64(void *src, int byte_size);
 void mem_bswap_32(void *src, int byte_size);