Skip to content

Commit 33908ae

Browse files
image-dragonKernel Patches Daemon
authored andcommitted
selftests/bpf: skip recursive functions for kprobe_multi
Some functions is recursive for the kprobe_multi and impact the benchmark results. So just skip them. Signed-off-by: Menglong Dong <[email protected]>
1 parent 7487452 commit 33908ae

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tools/testing/selftests/bpf/trace_helpers.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,22 @@ static bool skip_entry(char *name)
559559
if (!strncmp(name, "__ftrace_invalid_address__",
560560
sizeof("__ftrace_invalid_address__") - 1))
561561
return true;
562+
563+
if (!strcmp(name, "migrate_disable"))
564+
return true;
565+
if (!strcmp(name, "migrate_enable"))
566+
return true;
567+
if (!strcmp(name, "rcu_read_unlock_strict"))
568+
return true;
569+
if (!strcmp(name, "preempt_count_add"))
570+
return true;
571+
if (!strcmp(name, "preempt_count_sub"))
572+
return true;
573+
if (!strcmp(name, "__rcu_read_lock"))
574+
return true;
575+
if (!strcmp(name, "__rcu_read_unlock"))
576+
return true;
577+
562578
return false;
563579
}
564580

0 commit comments

Comments
 (0)