Skip to content

RFC Another stab at PEBS and LBR support

Peter Zijlstra lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest11 patches 32 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11perf, x86: Remove superfluous arguments to x86_perf_event_set_period()arch/x86/kernel/cpu/perf_event.c arch/x86/kernel/cpu/perf_event_intel.c+8 -90 replies
2/11perf, x86: Remove superfluous arguments to x86_perf_event_update()arch/x86/kernel/cpu/perf_event.c arch/x86/kernel/cpu/perf_event_intel.c+8 -130 replies
3/11perf, x86: Change x86_pmu.{enable,disable} calling conventionarch/x86/kernel/cpu/perf_event.c arch/x86/kernel/cpu/perf_event_intel.c arch/x86/kernel/cpu/perf_event_p6.c+38 -330 replies
4/11perf, x86: Use unlocked bitopsarch/x86/kernel/cpu/perf_event.c arch/x86/kernel/cpu/perf_event_amd.c arch/x86/kernel/cpu/perf_event_intel.c+6 -60 replies
5/11perf: Generic perf_sample_data initializationarch/arm/kernel/perf_event.c arch/powerpc/kernel/perf_event.c arch/sparc/kernel/perf_event.c +4 more+25 -263 replies
6/11perf, x86: PEBS infrastructurearch/x86/kernel/cpu/perf_event.c arch/x86/kernel/cpu/perf_event_intel.c arch/x86/kernel/cpu/perf_event_intel_ds.c +1 more+709 -2633 replies
7/11perf: Provide PERF_SAMPLE_REGSinclude/linux/perf_event.h kernel/perf_event.c+21 -111 replies
8/11perf, x86: Implement simple LBR supportarch/x86/kernel/cpu/perf_event.c arch/x86/kernel/cpu/perf_event_intel.c arch/x86/kernel/cpu/perf_event_intel_lbr.c+263 -08 replies
9/11perf, x86: Implement PERF_SAMPLE_BRANCH_STACKarch/x86/kernel/cpu/perf_event.c arch/x86/kernel/cpu/perf_event_intel.c arch/x86/kernel/cpu/perf_event_intel_ds.c +3 more+83 -421 reply
10/11perf, x86: use LBR for PEBS IP+1 fixuparch/x86/kernel/cpu/perf_event.c arch/x86/kernel/cpu/perf_event_intel.c arch/x86/kernel/cpu/perf_event_intel_ds.c+116 -396 replies
11/11perf, x86: Clean up IA32_PERF_CAPABILITIES usagearch/x86/kernel/cpu/perf_event.c arch/x86/kernel/cpu/perf_event_intel.c arch/x86/kernel/cpu/perf_event_intel_ds.c +1 more+40 -290 replies

Reviews trailers per patch

1 of 11 patches has a Reviewed-by or Acked-by.

PatchDavid S. MillerFrederic WeisbeckerJean Pihet
1/11
2/11
3/11
4/11
5/11A-b R-b A-b
6/11
7/11
8/11
9/11
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [RFC][PATCH 00/11] Another stab at PEBS and LBR support

Sorta works, the PEBS-LBR-fixup stuff makes my machine unhappy, but I could have made a silly mistake there..

Can be tested using the below patchlet and something like: perf top -e r00c0p

---

tools/perf/util/parse-events.c +5 -0
index 05d0c5c..f8314e6 100644
@@ -656,6 +656,11 @@ parse_raw_event(const char **strp, struct perf_event_attr *attr)
 		return EVT_FAILED;
 	n = hex2u64(str + 1, &config);
 	if (n > 0) {
+		if (str[n+1] == 'p') {
+			attr->precise = 1;
+			printf("precise\n");
+			n++;
+		}
 		*strp = str + n + 1;
 		attr->type = PERF_TYPE_RAW;
 		attr->config = config;