[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230719125232.92607-1-hffilwlqm@gmail.com>
Date: Wed, 19 Jul 2023 20:52:30 +0800
From: Leon Hwang <hffilwlqm@...il.com>
To: ast@...nel.org
Cc: daniel@...earbox.net, john.fastabend@...il.com, andrii@...nel.org,
martin.lau@...ux.dev, song@...nel.org, yhs@...com,
kpsingh@...nel.org, sdf@...gle.com, haoluo@...gle.com,
jolsa@...nel.org, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com, hawk@...nel.org,
hffilwlqm@...il.com, tangyeechou@...il.com,
kernel-patches-bot@...com, bpf@...r.kernel.org,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org
Subject: [PATCH bpf-next v3 0/2] bpf, xdp: Add tracepoint to xdp attaching failure
This series introduces a new tracepoint in bpf_xdp_link_attach(). By
this tracepoint, error message will be captured when error happens in
dev_xdp_attach(), e.g. invalid attaching flags.
Leon Hwang (2):
bpf, xdp: Add tracepoint to xdp attaching failure
selftests/bpf: Add testcase for xdp attaching failure tracepoint
include/trace/events/xdp.h | 17 +++++
net/core/dev.c | 5 +-
.../selftests/bpf/prog_tests/xdp_attach.c | 63 +++++++++++++++++++
.../bpf/progs/test_xdp_attach_fail.c | 51 +++++++++++++++
4 files changed, 135 insertions(+), 1 deletion(-)
create mode 100644 tools/testing/selftests/bpf/progs/test_xdp_attach_fail.c
base-commit: 0858a95ec7491a7a5bfca4be9736dba4ee38c461
--
2.41.0
Powered by blists - more mailing lists