mirror-linux/tools/perf/arch/x86
Thomas Falcon 6b9c0261b3 perf record: Add ratio-to-prev term
Provide ratio-to-prev term which allows the user to
set the event sample period of two events corresponding
to a desired ratio.

If using on an Intel x86 platform with Auto Counter Reload support, also
set corresponding event's config2 attribute with a bitmask which
counters to reset and which counters to sample if the desired ratio is
met or exceeded.

On other platforms, only the sample period is affected by the
ratio-to-prev term.

Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Thomas Falcon <thomas.falcon@intel.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Dapeng Mi <dapeng1.mi@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2025-10-03 16:49:51 -03:00
..
annotate perf annotate: Rename TSR_KIND_POINTER to TSR_KIND_PERCPU_POINTER 2025-10-03 16:49:51 -03:00
entry/syscalls tools headers: Sync syscall tables with the kernel source 2025-08-18 13:49:25 -07:00
include perf test: Move PERF_SAMPLE_WEIGHT_STRUCT parsing to common test 2025-07-25 10:37:58 -07:00
tests perf test: Fix a build error in x86 topdown test 2025-08-18 11:52:22 -07:00
util perf record: Add ratio-to-prev term 2025-10-03 16:49:51 -03:00
Build perf build: Specify shellcheck should use bash 2025-06-30 09:43:06 -07:00
Makefile perf tools x86: Use generic syscall scripts 2025-01-09 12:53:49 -03:00