selftests/bpf: Fix vfs_link kprobe definition
Since commit 6521f89170
("namei: prepare for idmapped mounts")
vfs_link's prototype was changed, the kprobe definition in
profiler selftest in turn wasn't updated. The result is that all
argument after the first are now stored in different registers. This
means that self-test has been broken ever since. Fix it by updating the
kprobe definition accordingly.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220331140949.1410056-1-nborisov@suse.com
This commit is contained in:
parent
185da3da93
commit
e299bcd4d1
|
@ -826,8 +826,9 @@ out:
|
|||
|
||||
SEC("kprobe/vfs_link")
|
||||
int BPF_KPROBE(kprobe__vfs_link,
|
||||
struct dentry* old_dentry, struct inode* dir,
|
||||
struct dentry* new_dentry, struct inode** delegated_inode)
|
||||
struct dentry* old_dentry, struct user_namespace *mnt_userns,
|
||||
struct inode* dir, struct dentry* new_dentry,
|
||||
struct inode** delegated_inode)
|
||||
{
|
||||
struct bpf_func_stats_ctx stats_ctx;
|
||||
bpf_stats_enter(&stats_ctx, profiler_bpf_vfs_link);
|
||||
|
|
Loading…
Reference in New Issue