diff options
| author | Paul Chaignon <paul.chaignon@gmail.com> | 2023-10-13 10:31:49 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2023-10-16 15:57:22 +0000 |
| commit | 342b9c5594e85819665af37b55afe27d0731379f (patch) | |
| tree | 31d3fa371db2d6232128761e51b95c79ff6cf6aa /executor/executor_fuchsia.h | |
| parent | 8ad4a8143de26cbdb7d7b9e4e4477eab73a146ff (diff) | |
sys/linux/test: test case for bpf_snprintf helper
This commit adds a new test case for the bpf_snprintf description
introduced in the previous commit. It corresponds to the BPF code:
char str[8] = {0};
u64 data = 0x1234;
bpf_snprintf(str, sizeof(str), "%d ", &data, sizeof(data));
exit 0;
The fmt (3rd) argument must be stored in a read-only array map which is
prepared with the first three syscalls. Once loaded, the program is
executed with BPF_PROG_TEST_RUN.
Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Diffstat (limited to 'executor/executor_fuchsia.h')
0 files changed, 0 insertions, 0 deletions
