-
Notifications
You must be signed in to change notification settings - Fork 151
bpf: make kprobe_multi_link_prog_run always_inline #10372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Upstream branch: 5262cb2 |
e4c5f93 to
233a075
Compare
|
Upstream branch: 688b745 |
ffb5300 to
e2b78fd
Compare
233a075 to
fbe4d04
Compare
|
Upstream branch: bd5bdd2 |
e2b78fd to
1b43b79
Compare
fbe4d04 to
6abef8e
Compare
|
Upstream branch: 34235a3 |
1b43b79 to
0167420
Compare
6abef8e to
2751ec7
Compare
Make kprobe_multi_link_prog_run() always inline to obtain better performance. Before this patch, the bench performance is: ./bench trig-kprobe-multi Setting up benchmark 'trig-kprobe-multi'... Benchmark 'trig-kprobe-multi' started. Iter 0 ( 95.485us): hits 62.462M/s ( 62.462M/prod), [...] Iter 1 (-80.054us): hits 62.486M/s ( 62.486M/prod), [...] Iter 2 ( 13.572us): hits 62.287M/s ( 62.287M/prod), [...] Iter 3 ( 76.961us): hits 62.293M/s ( 62.293M/prod), [...] Iter 4 (-77.698us): hits 62.394M/s ( 62.394M/prod), [...] Iter 5 (-13.399us): hits 62.319M/s ( 62.319M/prod), [...] Iter 6 ( 77.573us): hits 62.250M/s ( 62.250M/prod), [...] Summary: hits 62.338 ± 0.083M/s ( 62.338M/prod) And after this patch, the performance is: Iter 0 (454.148us): hits 66.900M/s ( 66.900M/prod), [...] Iter 1 (-435.540us): hits 68.925M/s ( 68.925M/prod), [...] Iter 2 ( 8.223us): hits 68.795M/s ( 68.795M/prod), [...] Iter 3 (-12.347us): hits 68.880M/s ( 68.880M/prod), [...] Iter 4 ( 2.291us): hits 68.767M/s ( 68.767M/prod), [...] Iter 5 ( -1.446us): hits 68.756M/s ( 68.756M/prod), [...] Iter 6 ( 13.882us): hits 68.657M/s ( 68.657M/prod), [...] Summary: hits 68.792 ± 0.087M/s ( 68.792M/prod) As we can see, the performance of kprobe-multi increase from 62M/s to 68M/s. Signed-off-by: Menglong Dong <[email protected]>
|
Upstream branch: 85bdeeb |
0167420 to
4cbf3fe
Compare
2751ec7 to
886a6a6
Compare
|
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1027719 irrelevant now. Closing PR. |
Pull request for series with
subject: bpf: make kprobe_multi_link_prog_run always_inline
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1027719