Re: [PATCH bpf-next v2 9/9] tools/bpf: add a test_progs test case for bpf_get_stack helper

2018-04-19 Thread Yonghong Song
On 4/18/18 9:39 PM, Alexei Starovoitov wrote: On Wed, Apr 18, 2018 at 09:54:44AM -0700, Yonghong Song wrote: The test_stacktrace_map is enhanced to call bpf_get_stack in the helper to get the stack trace as well. The stack traces from bpf_get_stack and bpf_get_stackid are compared to ensure

Re: [PATCH bpf-next v2 9/9] tools/bpf: add a test_progs test case for bpf_get_stack helper

2018-04-18 Thread Alexei Starovoitov
On Wed, Apr 18, 2018 at 09:54:44AM -0700, Yonghong Song wrote: > The test_stacktrace_map is enhanced to call bpf_get_stack > in the helper to get the stack trace as well. > The stack traces from bpf_get_stack and bpf_get_stackid > are compared to ensure that for the same stack as > represented as

[PATCH bpf-next v2 9/9] tools/bpf: add a test_progs test case for bpf_get_stack helper

2018-04-18 Thread Yonghong Song
The test_stacktrace_map is enhanced to call bpf_get_stack in the helper to get the stack trace as well. The stack traces from bpf_get_stack and bpf_get_stackid are compared to ensure that for the same stack as represented as the same hash, their ip addresses must be the same. Signed-off-by: