exclude static functions with prefix __SCT__
The kernel functions with prefix __SCT__ are for static calls. These static call functions are not in
/sys/kernel/debug/tracing/available_filter_functions and not in /sys/kernel/debug/kprobes/blacklist
either. Let us do filtering in get_kprobe_functions() to filter them out.
@@ -737,6 +737,10 @@ class BPF(object):
# non-attachable.
elif fn.startswith(b'__perf') or fn.startswith(b'perf_'):
continue
+ # Exclude all static functions with prefix __SCT__, they are
+ # all non-attachable
+ elif fn.startswith(b'__SCT__'):
+ continue
# Exclude all gcc 8's extra .cold functions
elif re.match(b'^.*\.cold(\.\d+)?$', fn):
continue
