Skip to content

Commit

Permalink
selftests/bpf: Add dump type data tests to btf dump tests
Browse files Browse the repository at this point in the history
Test various type data dumping operations by comparing expected
format with the dumped string; an snprintf-style printf function
is used to record the string dumped.  Also verify overflow handling
where the data passed does not cover the full size of a type,
such as would occur if a tracer has a portion of the 8k
"struct task_struct".

Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/1626362126-27775-4-git-send-email-alan.maguire@oracle.com
  • Loading branch information
Alan Maguire authored and Andrii Nakryiko committed Jul 16, 2021
1 parent 1728333 commit 70a9241
Showing 1 changed file with 598 additions and 0 deletions.
Loading

0 comments on commit 70a9241

Please sign in to comment.