diff --git a/src/python/bcc/__init__.py b/src/python/bcc/__init__.py index 03fcdcf6897c..2d6dc350fc2c 100644 --- a/src/python/bcc/__init__.py +++ b/src/python/bcc/__init__.py @@ -576,7 +576,7 @@ def get_kprobe_functions(event_re): elif fn.startswith(b'__perf') or fn.startswith(b'perf_'): continue # Exclude all gcc 8's extra .cold functions - elif re.match(b'^.*\.cold\.\d+$', fn): + elif re.match(b'^.*\.cold(\.\d+)?$', fn): continue if (t.lower() in [b't', b'w']) and re.match(event_re, fn) \ and fn not in blacklist: