diff options
author | Song Liu <song@kernel.org> | 2025-01-30 13:35:48 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2025-02-13 19:35:32 -0800 |
commit | 56467292794b800164df20c076c409ac548e56ec (patch) | |
tree | ee680ae2fc50f2c0cf1e8a06d77dcf8319ba477a /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 7587d735b150bc593c812615bbd232980418eea3 (diff) |
bpf: fs/xattr: Add BPF kfuncs to set and remove xattrs
Add the following kfuncs to set and remove xattrs from BPF programs:
bpf_set_dentry_xattr
bpf_remove_dentry_xattr
bpf_set_dentry_xattr_locked
bpf_remove_dentry_xattr_locked
The _locked version of these kfuncs are called from hooks where
dentry->d_inode is already locked. Instead of requiring the user
to know which version of the kfuncs to use, the verifier will pick
the proper kfunc based on the calling hook.
Signed-off-by: Song Liu <song@kernel.org>
Acked-by: Christian Brauner <brauner@kernel.org>
Reviewed-by: Matt Bobrowski <mattbobrowski@google.com>
Link: https://lore.kernel.org/r/20250130213549.3353349-5-song@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions