aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/tests/kmod-path.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/tests/kmod-path.c b/tools/perf/tests/kmod-path.c
index 76f41f249944..6cd9e5107f77 100644
--- a/tools/perf/tests/kmod-path.c
+++ b/tools/perf/tests/kmod-path.c
@@ -61,6 +61,7 @@ int test__kmod_path__parse(int subtest __maybe_unused)
61 M("/xxxx/xxxx/x-x.ko", PERF_RECORD_MISC_KERNEL, true); 61 M("/xxxx/xxxx/x-x.ko", PERF_RECORD_MISC_KERNEL, true);
62 M("/xxxx/xxxx/x-x.ko", PERF_RECORD_MISC_USER, false); 62 M("/xxxx/xxxx/x-x.ko", PERF_RECORD_MISC_USER, false);
63 63
64#ifdef HAVE_ZLIB_SUPPORT
64 /* path alloc_name alloc_ext kmod comp name ext */ 65 /* path alloc_name alloc_ext kmod comp name ext */
65 T("/xxxx/xxxx/x.ko.gz", true , true , true, true, "[x]", "gz"); 66 T("/xxxx/xxxx/x.ko.gz", true , true , true, true, "[x]", "gz");
66 T("/xxxx/xxxx/x.ko.gz", false , true , true, true, NULL , "gz"); 67 T("/xxxx/xxxx/x.ko.gz", false , true , true, true, NULL , "gz");
@@ -96,6 +97,7 @@ int test__kmod_path__parse(int subtest __maybe_unused)
96 M("x.ko.gz", PERF_RECORD_MISC_CPUMODE_UNKNOWN, true); 97 M("x.ko.gz", PERF_RECORD_MISC_CPUMODE_UNKNOWN, true);
97 M("x.ko.gz", PERF_RECORD_MISC_KERNEL, true); 98 M("x.ko.gz", PERF_RECORD_MISC_KERNEL, true);
98 M("x.ko.gz", PERF_RECORD_MISC_USER, false); 99 M("x.ko.gz", PERF_RECORD_MISC_USER, false);
100#endif
99 101
100 /* path alloc_name alloc_ext kmod comp name ext */ 102 /* path alloc_name alloc_ext kmod comp name ext */
101 T("[test_module]", true , true , true, false, "[test_module]", NULL); 103 T("[test_module]", true , true , true, false, "[test_module]", NULL);