aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/recursion.c
diff options
context:
space:
mode:
authorAlexei Starovoitov <[email protected]>2021-02-09 19:36:28 -0800
committerDaniel Borkmann <[email protected]>2021-02-11 16:19:06 +0100
commitf2dd3b39467411c53703125a111f45b3672c1771 (patch)
tree08e6354a8eca6c7749242864638975a46d36f642 /tools/testing/selftests/bpf/prog_tests/recursion.c
parent031d6e02ddbb8dea747c1abb697d556901f07dd4 (diff)
bpf: Compute program stats for sleepable programs
Since sleepable programs don't migrate from the cpu the excution stats can be computed for them as well. Reuse the same infrastructure for both sleepable and non-sleepable programs. run_cnt -> the number of times the program was executed. run_time_ns -> the program execution time in nanoseconds including the off-cpu time when the program was sleeping. Signed-off-by: Alexei Starovoitov <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Acked-by: KP Singh <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/recursion.c')
0 files changed, 0 insertions, 0 deletions