diff options
author | Daniel T. Lee <danieltimlee@gmail.com> | 2023-08-18 18:01:19 +0900 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-08-21 15:39:10 -0700 |
commit | 456d53554ca7e93d7e5e8eb7fe8c906d5ec6e7d0 (patch) | |
tree | 4fd7df7b9f5d0c1d6627867b16b32ef113e5188a /scripts/generate_rust_analyzer.py | |
parent | 8dc80551463197ec79ce0966ec2b5bd700042614 (diff) |
samples/bpf: simplify spintest with kprobe.multi
With the introduction of kprobe.multi, it is now possible to attach
multiple kprobes to a single BPF program without the need for multiple
definitions. Additionally, this method supports wildcard-based
matching, allowing for further simplification of BPF programs. In here,
an asterisk (*) wildcard is used to map to all symbols relevant to
spin_{lock|unlock}.
Furthermore, since kprobe.multi handles symbol matching, this commit
eliminates the need for the previous logic of reading the ksym table to
verify the existence of symbols.
Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com>
Link: https://lore.kernel.org/r/20230818090119.477441-10-danieltimlee@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions