diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2018-11-05 10:35:04 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-11-05 20:53:37 +0300 |
commit | 93f8be2799515e01647c5a9b0d17a90a00ebcf82 (patch) | |
tree | c0b9f804abfe60bd167c2f49a0816513d053d652 /tools/perf/util/intel-pt-decoder/intel-pt-log.c | |
parent | 35fa1cee21e34f43db928d022610707d5a234faf (diff) | |
download | linux-93f8be2799515e01647c5a9b0d17a90a00ebcf82.tar.xz |
perf intel-pt: Add more event information to debug log
More event information is useful for debugging, especially MMAP events.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Link: http://lkml.kernel.org/r/20181105073505.8129-2-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/intel-pt-decoder/intel-pt-log.c')
-rw-r--r-- | tools/perf/util/intel-pt-decoder/intel-pt-log.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/util/intel-pt-decoder/intel-pt-log.c b/tools/perf/util/intel-pt-decoder/intel-pt-log.c index e02bc7b166a0..5e64da270f97 100644 --- a/tools/perf/util/intel-pt-decoder/intel-pt-log.c +++ b/tools/perf/util/intel-pt-decoder/intel-pt-log.c @@ -31,6 +31,11 @@ static FILE *f; static char log_name[MAX_LOG_NAME]; bool intel_pt_enable_logging; +void *intel_pt_log_fp(void) +{ + return f; +} + void intel_pt_log_enable(void) { intel_pt_enable_logging = true; |