netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next v2 0/2] bpf: Introduce user log
@ 2023-07-08  4:07 Leon Hwang
  2023-07-08  4:07 ` [PATCH bpf-next v2 1/2] bpf: Introduce bpf generic log Leon Hwang
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Leon Hwang @ 2023-07-08  4:07 UTC (permalink / raw)
  To: ast
  Cc: daniel, john.fastabend, andrii, martin.lau, song, yhs, kpsingh,
	sdf, haoluo, jolsa, davem, edumazet, kuba, pabeni, hawk,
	hffilwlqm, tangyeechou, kernel-patches-bot, bpf, linux-kernel,
	netdev

This series introduces bpf user log to transfer error message from
kernel space to user space when users provide buffer to receive the
error message.

Especially, when to attach XDP to device, it can transfer the error
message along with errno from dev_xdp_attach() to user space, if error
happens in dev_xdp_attach().

Leon Hwang (2):
  bpf: Introduce bpf generic log
  bpf: Introduce bpf user log

 include/linux/bpf.h            |  3 ++
 include/uapi/linux/bpf.h       |  8 ++++++
 kernel/bpf/log.c               | 52 ++++++++++++++++++++++++++++++++++
 net/core/dev.c                 |  4 ++-
 tools/include/uapi/linux/bpf.h |  8 ++++++
 5 files changed, 74 insertions(+), 1 deletion(-)


base-commit: 622f876ab3ced325fe3c2363c6e9c128b7e6c73a
-- 
2.41.0


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

end of thread, other threads:[~2023-07-11  3:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-08  4:07 [PATCH bpf-next v2 0/2] bpf: Introduce user log Leon Hwang
2023-07-08  4:07 ` [PATCH bpf-next v2 1/2] bpf: Introduce bpf generic log Leon Hwang
2023-07-10 22:23   ` Andrii Nakryiko
2023-07-11  3:10     ` Leon Hwang
2023-07-08  4:07 ` [PATCH bpf-next v2 2/2] bpf: Introduce bpf user log Leon Hwang
2023-07-10 23:45   ` Alexei Starovoitov
2023-07-11  2:55     ` Leon Hwang
2023-07-08 22:02 ` [PATCH bpf-next v2 0/2] bpf: Introduce " Daniel Xu
2023-07-09  3:44   ` Leon Hwang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).