Skip to content

Commit 1197491

Browse files
olsajiriacmel
authored andcommitted
x86/events/intel/ds: Add PERF_SAMPLE_PERIOD into PEBS_FREERUNNING_FLAGS
Stephane reported that we don't support period for enabling large PEBS data, which there's no reason for. Adding PERF_SAMPLE_PERIOD into freerunning flags. Tested it with: # perf record -e cycles:P -c 100 --no-timestamp -C 0 --period Reported-by: Stephane Eranian <[email protected]> Signed-off-by: Jiri Olsa <[email protected]> Tested-by: Kan Liang <[email protected]> Tested-by: Stephane Eranian <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Andi Kleen <[email protected]> Cc: David Ahern <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent f290aa1 commit 1197491

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/x86/events/perf_event.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ struct amd_nb {
9393
PERF_SAMPLE_ID | PERF_SAMPLE_CPU | PERF_SAMPLE_STREAM_ID | \
9494
PERF_SAMPLE_DATA_SRC | PERF_SAMPLE_IDENTIFIER | \
9595
PERF_SAMPLE_TRANSACTION | PERF_SAMPLE_PHYS_ADDR | \
96-
PERF_SAMPLE_REGS_INTR | PERF_SAMPLE_REGS_USER)
96+
PERF_SAMPLE_REGS_INTR | PERF_SAMPLE_REGS_USER | \
97+
PERF_SAMPLE_PERIOD)
9798

9899
#define PEBS_REGS \
99100
(PERF_REG_X86_AX | \

0 commit comments

Comments
 (0)