diff options
| author | Kan Liang <kan.liang@intel.com> | 2017-08-29 13:11:08 -0400 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-09-01 13:46:00 -0400 |
| commit | 3b0a5daa061076b2b75ffc294e74483ad9bf241a (patch) | |
| tree | 8f3aa1e1aa6722a27d990d85e5ebe2a028a0c09c /tools/include/uapi/linux | |
| parent | 2a118e1bd22cad57318520d37e3a184b8846c6a2 (diff) | |
perf tools: Support new sample type for physical address
Support new sample type PERF_SAMPLE_PHYS_ADDR for physical address.
Add new option --phys-data to record sample physical address.
Signed-off-by: Kan Liang <kan.liang@intel.com>
Tested-by: Jiri Olsa <jolsa@redhat.com>
Acked-by: Stephane Eranian <eranian@google.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1504026672-7304-2-git-send-email-kan.liang@intel.com
[ Added missing printing in evsel.c patch sent by Jiri Olsa ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/include/uapi/linux')
| -rw-r--r-- | tools/include/uapi/linux/perf_event.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h index 2a37ae925d85..140ae638cfd6 100644 --- a/tools/include/uapi/linux/perf_event.h +++ b/tools/include/uapi/linux/perf_event.h | |||
| @@ -139,8 +139,9 @@ enum perf_event_sample_format { | |||
| 139 | PERF_SAMPLE_IDENTIFIER = 1U << 16, | 139 | PERF_SAMPLE_IDENTIFIER = 1U << 16, |
| 140 | PERF_SAMPLE_TRANSACTION = 1U << 17, | 140 | PERF_SAMPLE_TRANSACTION = 1U << 17, |
| 141 | PERF_SAMPLE_REGS_INTR = 1U << 18, | 141 | PERF_SAMPLE_REGS_INTR = 1U << 18, |
| 142 | PERF_SAMPLE_PHYS_ADDR = 1U << 19, | ||
| 142 | 143 | ||
| 143 | PERF_SAMPLE_MAX = 1U << 19, /* non-ABI */ | 144 | PERF_SAMPLE_MAX = 1U << 20, /* non-ABI */ |
| 144 | }; | 145 | }; |
| 145 | 146 | ||
| 146 | /* | 147 | /* |
| @@ -814,6 +815,7 @@ enum perf_event_type { | |||
| 814 | * { u64 transaction; } && PERF_SAMPLE_TRANSACTION | 815 | * { u64 transaction; } && PERF_SAMPLE_TRANSACTION |
| 815 | * { u64 abi; # enum perf_sample_regs_abi | 816 | * { u64 abi; # enum perf_sample_regs_abi |
| 816 | * u64 regs[weight(mask)]; } && PERF_SAMPLE_REGS_INTR | 817 | * u64 regs[weight(mask)]; } && PERF_SAMPLE_REGS_INTR |
| 818 | * { u64 phys_addr;} && PERF_SAMPLE_PHYS_ADDR | ||
| 817 | * }; | 819 | * }; |
| 818 | */ | 820 | */ |
| 819 | PERF_RECORD_SAMPLE = 9, | 821 | PERF_RECORD_SAMPLE = 9, |
