perf/uprobe: Optimize uprobes
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest11 patches 33 repliesIn review
- v110 patches 73 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | perf/uprobe: Re-indent labelskernel/ | +13 | 2 replies | |
| 2/11 | perf/uprobe: Remove spurious whitespacekernel/ | +6 | 0 replies | |
| 3/11 | rbtree: Provide rb_find_rcu() / rb_find_add_rcu()include/ | +67 | 3 replies | |
| 4/11 | perf/uprobe: RCU-ify find_uprobe()kernel/ | +40 | 1 reply | |
| 5/11 | perf/uprobe: Simplify UPROBE_HANDLER_REMOVE logickernel/ | +14 | 0 replies | |
| 6/11 | perf/uprobe: SRCU-ify uprobe->consumer listkernel/ | +50 | 3 replies | |
| 7/11 | perf/uprobe: Split uprobe_unregister()include/ kernel/ kernel/ +1 more | +21 | 1 reply | |
| 8/11 | perf/uprobe: Convert (some) uprobe->refcount to SRCUkernel/ | +41 | 2 replies | |
| 9/11 | srcu: Add __srcu_clone_read_lock()include/ include/ kernel/ | +16 | 0 replies | |
| 10/11 | perf/uprobe: Convert single-step and uretprobe to SRCUinclude/ kernel/ | +31 | 5 replies | |
| 11/11 | perf/uprobe: Add uretprobe timerinclude/ kernel/ | +69 | 7 replies |
Reviews trailers per patch
3 of 11 patches have a Reviewed-by or Acked-by.
| Patch | Masami Hiramatsu (Google) | Andrii Nakryiko |
|---|---|---|
| 1/11 | ||
| 2/11 | ||
| 3/11 | R-b | |
| 4/11 | A-b | |
| 5/11 | ||
| 6/11 | ||
| 7/11 | A-b | A-b |
| 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.
Cover letter [PATCH v2 00/11] perf/uprobe: Optimize uprobes
Hi!
These patches implement the (S)RCU based proposal to optimize uprobes.
On my c^Htrusty old IVB-EP -- where each (of the 40) CPU calls 'func' in a tight loop:
perf probe -x ./uprobes test=func
perf stat -ae probe_uprobe:test -- sleep 1
perf probe -x ./uprobes test=func%return perf stat -ae probe_uprobe:test__return -- sleep 1
PRE:
4,038,804 probe_uprobe:test
2,356,275 probe_uprobe:test__return
POST:
7,216,579 probe_uprobe:test
6,744,786 probe_uprobe:test__return
(copy-paste FTW, I didn't do new numbers because the fast paths didn't change --
and quick test run shows similar numbers)
Patches also available here:
git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git perf/uprobes
Changes since last time:
- better split with intermediate inc_not_zero()
- fix UPROBE_HANDLER_REMOVE
- restored the lost rcu_assign_pointer()
- avoid lockdep for uretprobe_srcu
- add missing put_uprobe() -> srcu_read_unlock() conversion
- actually initialize return_instance::has_ref
- a few comments
- things I don't remember