public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 bpf-next 0/3] Add bpf_get_dentry_xattr
@ 2024-08-06 23:09 Song Liu
  2024-08-06 23:09 ` [PATCH v4 bpf-next 1/3] bpf: Move bpf_get_file_xattr to fs/bpf_fs_kfuncs.c Song Liu
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Song Liu @ 2024-08-06 23:09 UTC (permalink / raw)
  To: bpf, linux-fsdevel, linux-kernel
  Cc: kernel-team, andrii, eddyz87, ast, daniel, martin.lau, viro,
	brauner, jack, kpsingh, liamwisehart, lltang, shankaran, Song Liu

Add a kfunc to read xattr from dentry. Also add selftest for the new
kfunc.

Changes v3 => v4:
1. Fix selftest build.

V3: https://lore.kernel.org/bpf/20240806203340.3503805-1-song@kernel.org/T/#u

Changes v2 => v3:
1. Move the kfuncs to fs/bpf_fs_kfuncs.c.
2. Fix selftests build error on s390. (Alexei)

v2: https://lore.kernel.org/bpf/20240730230805.42205-1-song@kernel.org/T/#u

Changes v1 => v2:
1. Remove 3 kfuncs that are ready yet.

v1: https://lore.kernel.org/linux-fsdevel/20240725234706.655613-1-song@kernel.org/T/#u

Song Liu (3):
  bpf: Move bpf_get_file_xattr to fs/bpf_fs_kfuncs.c
  bpf: Add kfunc bpf_get_dentry_xattr() to read xattr from dentry
  selftests/bpf: Add tests for bpf_get_dentry_xattr

 fs/bpf_fs_kfuncs.c                            | 62 +++++++++++++++++
 kernel/trace/bpf_trace.c                      | 68 -------------------
 tools/testing/selftests/bpf/bpf_kfuncs.h      |  9 +++
 .../selftests/bpf/prog_tests/fs_kfuncs.c      |  9 ++-
 .../selftests/bpf/progs/test_get_xattr.c      | 37 ++++++++--
 5 files changed, 111 insertions(+), 74 deletions(-)

--
2.43.5

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-08-07 18:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-06 23:09 [PATCH v4 bpf-next 0/3] Add bpf_get_dentry_xattr Song Liu
2024-08-06 23:09 ` [PATCH v4 bpf-next 1/3] bpf: Move bpf_get_file_xattr to fs/bpf_fs_kfuncs.c Song Liu
2024-08-06 23:09 ` [PATCH v4 bpf-next 2/3] bpf: Add kfunc bpf_get_dentry_xattr() to read xattr from dentry Song Liu
2024-08-06 23:09 ` [PATCH v4 bpf-next 3/3] selftests/bpf: Add tests for bpf_get_dentry_xattr Song Liu
2024-08-07  9:33   ` Jiri Olsa
2024-08-07 14:40     ` Song Liu
2024-08-07 18:33       ` Alexei Starovoitov
2024-08-07 18:40 ` [PATCH v4 bpf-next 0/3] Add bpf_get_dentry_xattr patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox