mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] Access variable length array relaxed for integer type
@ 2023-04-17  8:07 Feng zhou
  2023-04-17  8:07 ` [PATCH 1/2] bpf: support access variable length array of " Feng zhou
  2023-04-17  8:07 ` [PATCH 2/2] selftests/bpf: Add test to access integer type of variable array Feng zhou
  0 siblings, 2 replies; 5+ messages in thread
From: Feng zhou @ 2023-04-17  8:07 UTC (permalink / raw)
  To: martin.lau, ast, daniel, andrii, song, yhs, john.fastabend,
	kpsingh, sdf, haoluo, jolsa, davem, edumazet, kuba, pabeni,
	mykolal, shuah
  Cc: bpf, linux-kernel, netdev, linux-kselftest, yangzhenze,
	wangdongdong.6, zhouchengming, zhoufeng.zf

From: Feng Zhou <zhoufeng.zf@bytedance.com>

Add support for integer type of accessing variable length array.
Add a selftest to check it.

Feng Zhou (2):
  bpf: support access variable length array of integer type
  selftests/bpf: Add test to access integer type of variable array

 kernel/bpf/btf.c                              |  8 +++++---
 .../selftests/bpf/bpf_testmod/bpf_testmod.c   | 20 +++++++++++++++++++
 .../selftests/bpf/prog_tests/tracing_struct.c |  2 ++
 .../selftests/bpf/progs/tracing_struct.c      | 13 ++++++++++++
 4 files changed, 40 insertions(+), 3 deletions(-)

-- 
2.20.1


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

end of thread, other threads:[~2023-04-18  2:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-17  8:07 [PATCH 0/2] Access variable length array relaxed for integer type Feng zhou
2023-04-17  8:07 ` [PATCH 1/2] bpf: support access variable length array of " Feng zhou
2023-04-18  0:08   ` Alexei Starovoitov
2023-04-18  2:53     ` Feng Zhou
2023-04-17  8:07 ` [PATCH 2/2] selftests/bpf: Add test to access integer type of variable array Feng zhou

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

all inboxes | Powered by JetHome®