[PATCH v0 65/71] perf itrace: Add Intel PT as an Instruction Tracing type

From: Alexander Shishkin
Date: Wed Dec 11 2013 - 07:43:20 EST


From: Adrian Hunter <adrian.hunter@xxxxxxxxx>

Add the Intel Processor Trace type
constant PERF_ITRACE_INTEL_PT.

Signed-off-by: Adrian Hunter <adrian.hunter@xxxxxxxxx>
---
tools/perf/util/itrace.c | 1 +
tools/perf/util/itrace.h | 1 +
2 files changed, 2 insertions(+)

diff --git a/tools/perf/util/itrace.c b/tools/perf/util/itrace.c
index 28455f8..8ecbfb1 100644
--- a/tools/perf/util/itrace.c
+++ b/tools/perf/util/itrace.c
@@ -977,6 +977,7 @@ int perf_event__process_itrace_info(struct perf_tool *tool __maybe_unused,
return 0;

switch (type) {
+ case PERF_ITRACE_INTEL_PT:
case PERF_ITRACE_UNKNOWN:
default:
return -EINVAL;
diff --git a/tools/perf/util/itrace.h b/tools/perf/util/itrace.h
index 1005715..de4b7a0 100644
--- a/tools/perf/util/itrace.h
+++ b/tools/perf/util/itrace.h
@@ -40,6 +40,7 @@ struct itrace_info_event;

enum itrace_type {
PERF_ITRACE_UNKNOWN,
+ PERF_ITRACE_INTEL_PT,
};

enum itrace_error_type {
--
1.8.5.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/