aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/tests/code-reading.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2019-08-30 13:45:20 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-08-31 21:24:10 -0400
commitf2a39fe84901df2b3d1bec3459b65cee3e8db57c (patch)
tree399cb01cdf9a8c771e734ed4344a18840845f9bf /tools/perf/tests/code-reading.c
parentfa0d98462fae5d4951f22f3ac1090d48c53396d1 (diff)
perf auxtrace: Uninline functions that touch perf_session
So that we don't carry the session.h include directive in auxtrace.h, which in turn opens a can of worms of files that were getting all sorts of things via that include, fix them all. 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-d2d83aovpgri2z75wlitquni@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests/code-reading.c')
-rw-r--r--tools/perf/tests/code-reading.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/tests/code-reading.c b/tools/perf/tests/code-reading.c
index 7b2b89f4b716..c1c29e08e7fb 100644
--- a/tools/perf/tests/code-reading.c
+++ b/tools/perf/tests/code-reading.c
@@ -13,7 +13,9 @@
13 13
14#include "debug.h" 14#include "debug.h"
15#include "dso.h" 15#include "dso.h"
16#include "env.h"
16#include "parse-events.h" 17#include "parse-events.h"
18#include "trace-event.h"
17#include "evlist.h" 19#include "evlist.h"
18#include "evsel.h" 20#include "evsel.h"
19#include "thread_map.h" 21#include "thread_map.h"
@@ -496,6 +498,10 @@ static void fs_something(void)
496 } 498 }
497} 499}
498 500
501#ifdef __s390x__
502#include "header.h" // for get_cpuid()
503#endif
504
499static const char *do_determine_event(bool excl_kernel) 505static const char *do_determine_event(bool excl_kernel)
500{ 506{
501 const char *event = excl_kernel ? "cycles:u" : "cycles"; 507 const char *event = excl_kernel ? "cycles:u" : "cycles";