perf auxtrace: Add Intel PT as an AUX area tracing type
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 17 Jul 2015 16:33:36 +0000 (19:33 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 17 Aug 2015 14:11:36 +0000 (11:11 -0300)
Add the Intel Processor Trace type constant PERF_AUXTRACE_INTEL_PT.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1437150840-31811-2-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/auxtrace.c
tools/perf/util/auxtrace.h

index a25b3609cef8154ec6c6c5b4c7fc44ae3b0d56b8..49dbfbeedb684c222c64b64664f06dabbe64833d 100644 (file)
@@ -884,6 +884,7 @@ int perf_event__process_auxtrace_info(struct perf_tool *tool __maybe_unused,
                fprintf(stdout, " type: %u\n", type);
 
        switch (type) {
+       case PERF_AUXTRACE_INTEL_PT:
        case PERF_AUXTRACE_UNKNOWN:
        default:
                return -EINVAL;
index 471aecbc4d684018f21d8e7696c39fe027f2430f..7d12f33a3a069690c6cfa704f941060ed761e908 100644 (file)
@@ -39,6 +39,7 @@ struct events_stats;
 
 enum auxtrace_type {
        PERF_AUXTRACE_UNKNOWN,
+       PERF_AUXTRACE_INTEL_PT,
 };
 
 enum itrace_period_type {