Skip to content

Commit

Permalink
support gcc 8's cold subfunctions
Browse files Browse the repository at this point in the history
  • Loading branch information
Michał Wesołowski committed Sep 11, 2019
1 parent d147588 commit 44454d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/bcc/__init__.py
Expand Up @@ -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:
Expand Down

0 comments on commit 44454d9

Please sign in to comment.