Commit 9f0c253
committed
Merge tag 'perf-core-2024-09-18' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull perf events updates from Ingo Molnar:
- Implement per-PMU context rescheduling to significantly improve
single-PMU performance, and related cleanups/fixes (Peter Zijlstra
and Namhyung Kim)
- Fix ancient bug resulting in a lot of events being dropped
erroneously at higher sampling frequencies (Luo Gengkun)
- uprobes enhancements:
- Implement RCU-protected hot path optimizations for better
performance:
"For baseline vs SRCU, peak througput increased from 3.7 M/s
(million uprobe triggerings per second) up to about 8 M/s. For
uretprobes it's a bit more modest with bump from 2.4 M/s to
5 M/s.
For SRCU vs RCU Tasks Trace, peak throughput for uprobes
increases further from 8 M/s to 10.3 M/s (+28%!), and for
uretprobes from 5.3 M/s to 5.8 M/s (+11%), as we have more
work to do on uretprobes side.
Even single-thread (no contention) performance is slightly
better: 3.276 M/s to 3.396 M/s (+3.5%) for uprobes, and 2.055
M/s to 2.174 M/s (+5.8%) for uretprobes."
(Andrii Nakryiko et al)
- Document mmap_lock, don't abuse get_user_pages_remote() (Oleg
Nesterov)
- Cleanups & fixes to prepare for future work:
- Remove uprobe_register_refctr()
- Simplify error handling for alloc_uprobe()
- Make uprobe_register() return struct uprobe *
- Fold __uprobe_unregister() into uprobe_unregister()
- Shift put_uprobe() from delete_uprobe() to uprobe_unregister()
- BPF: Fix use-after-free in bpf_uprobe_multi_link_attach()
(Oleg Nesterov)
- New feature & ABI extension: allow events to use PERF_SAMPLE READ
with inheritance, enabling sample based profiling of a group of
counters over a hierarchy of processes or threads (Ben Gainey)
- Intel uncore & power events updates:
- Add Arrow Lake and Lunar Lake support
- Add PERF_EV_CAP_READ_SCOPE
- Clean up and enhance cpumask and hotplug support
(Kan Liang)
- Add LNL uncore iMC freerunning support
- Use D0:F0 as a default device
(Zhenyu Wang)
- Intel PT: fix AUX snapshot handling race (Adrian Hunter)
- Misc fixes and cleanups (James Clark, Jiri Olsa, Oleg Nesterov and
Peter Zijlstra)
* tag 'perf-core-2024-09-18' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (40 commits)
dmaengine: idxd: Clean up cpumask and hotplug for perfmon
iommu/vt-d: Clean up cpumask and hotplug for perfmon
perf/x86/intel/cstate: Clean up cpumask and hotplug
perf: Add PERF_EV_CAP_READ_SCOPE
perf: Generic hotplug support for a PMU with a scope
uprobes: perform lockless SRCU-protected uprobes_tree lookup
rbtree: provide rb_find_rcu() / rb_find_add_rcu()
perf/uprobe: split uprobe_unregister()
uprobes: travers uprobe's consumer list locklessly under SRCU protection
uprobes: get rid of enum uprobe_filter_ctx in uprobe filter callbacks
uprobes: protected uprobe lifetime with SRCU
uprobes: revamp uprobe refcounting and lifetime management
bpf: Fix use-after-free in bpf_uprobe_multi_link_attach()
perf/core: Fix small negative period being ignored
perf: Really fix event_function_call() locking
perf: Optimize __pmu_ctx_sched_out()
perf: Add context time freeze
perf: Fix event_function_call() locking
perf: Extract a few helpers
perf: Optimize context reschedule for single PMU cases
...File tree
21 files changed
+1142
-853
lines changed- arch/x86/events
- intel
- drivers
- dma/idxd
- iommu/intel
- include/linux
- kernel
- events
- trace
- tools/testing/selftests/bpf/bpf_testmod
21 files changed
+1142
-853
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
2816 | 2818 | | |
2817 | 2819 | | |
2818 | 2820 | | |
| 2821 | + | |
| 2822 | + | |
| 2823 | + | |
| 2824 | + | |
| 2825 | + | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
| 2830 | + | |
| 2831 | + | |
| 2832 | + | |
| 2833 | + | |
| 2834 | + | |
| 2835 | + | |
| 2836 | + | |
| 2837 | + | |
| 2838 | + | |
| 2839 | + | |
| 2840 | + | |
| 2841 | + | |
| 2842 | + | |
| 2843 | + | |
| 2844 | + | |
| 2845 | + | |
| 2846 | + | |
| 2847 | + | |
| 2848 | + | |
| 2849 | + | |
| 2850 | + | |
| 2851 | + | |
| 2852 | + | |
| 2853 | + | |
| 2854 | + | |
| 2855 | + | |
| 2856 | + | |
| 2857 | + | |
| 2858 | + | |
| 2859 | + | |
| 2860 | + | |
2819 | 2861 | | |
2820 | 2862 | | |
2821 | 2863 | | |
| |||
2827 | 2869 | | |
2828 | 2870 | | |
2829 | 2871 | | |
| 2872 | + | |
2830 | 2873 | | |
2831 | 2874 | | |
2832 | 2875 | | |
| |||
2836 | 2879 | | |
2837 | 2880 | | |
2838 | 2881 | | |
| 2882 | + | |
| 2883 | + | |
| 2884 | + | |
| 2885 | + | |
| 2886 | + | |
| 2887 | + | |
2839 | 2888 | | |
2840 | 2889 | | |
2841 | 2890 | | |
| |||
2864 | 2913 | | |
2865 | 2914 | | |
2866 | 2915 | | |
| 2916 | + | |
2867 | 2917 | | |
2868 | 2918 | | |
2869 | 2919 | | |
| |||
2887 | 2937 | | |
2888 | 2938 | | |
2889 | 2939 | | |
| 2940 | + | |
| 2941 | + | |
| 2942 | + | |
| 2943 | + | |
| 2944 | + | |
| 2945 | + | |
| 2946 | + | |
| 2947 | + | |
| 2948 | + | |
| 2949 | + | |
| 2950 | + | |
| 2951 | + | |
| 2952 | + | |
2890 | 2953 | | |
2891 | 2954 | | |
2892 | 2955 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | 560 | | |
564 | 561 | | |
565 | 562 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | 131 | | |
136 | 132 | | |
137 | 133 | | |
| |||
206 | 202 | | |
207 | 203 | | |
208 | 204 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | 205 | | |
222 | 206 | | |
223 | 207 | | |
224 | | - | |
225 | 208 | | |
226 | 209 | | |
227 | 210 | | |
| |||
269 | 252 | | |
270 | 253 | | |
271 | 254 | | |
272 | | - | |
273 | | - | |
274 | 255 | | |
275 | 256 | | |
276 | 257 | | |
| |||
291 | 272 | | |
292 | 273 | | |
293 | 274 | | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | 275 | | |
313 | 276 | | |
314 | 277 | | |
315 | | - | |
316 | 278 | | |
317 | 279 | | |
318 | 280 | | |
| |||
331 | 293 | | |
332 | 294 | | |
333 | 295 | | |
334 | | - | |
335 | | - | |
336 | 296 | | |
337 | 297 | | |
338 | 298 | | |
339 | 299 | | |
340 | 300 | | |
341 | 301 | | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | 302 | | |
346 | | - | |
347 | | - | |
348 | 303 | | |
349 | 304 | | |
350 | 305 | | |
351 | 306 | | |
352 | 307 | | |
353 | 308 | | |
354 | 309 | | |
355 | | - | |
356 | | - | |
357 | 310 | | |
358 | 311 | | |
359 | 312 | | |
360 | 313 | | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | 314 | | |
366 | 315 | | |
367 | 316 | | |
| |||
412 | 361 | | |
413 | 362 | | |
414 | 363 | | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | 364 | | |
494 | 365 | | |
495 | 366 | | |
| |||
526 | 397 | | |
527 | 398 | | |
528 | 399 | | |
| 400 | + | |
529 | 401 | | |
530 | 402 | | |
531 | 403 | | |
| |||
541 | 413 | | |
542 | 414 | | |
543 | 415 | | |
| 416 | + | |
544 | 417 | | |
545 | 418 | | |
546 | 419 | | |
| |||
556 | 429 | | |
557 | 430 | | |
558 | 431 | | |
| 432 | + | |
559 | 433 | | |
560 | 434 | | |
561 | 435 | | |
| |||
810 | 684 | | |
811 | 685 | | |
812 | 686 | | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | 687 | | |
817 | 688 | | |
818 | 689 | | |
| |||
827 | 698 | | |
828 | 699 | | |
829 | 700 | | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | 701 | | |
836 | 702 | | |
837 | 703 | | |
| |||
844 | 710 | | |
845 | 711 | | |
846 | 712 | | |
| 713 | + | |
| 714 | + | |
847 | 715 | | |
848 | 716 | | |
849 | 717 | | |
| |||
0 commit comments