Skip to content

Commit

Permalink
Merge pull request iovisor#2511 from mwesolowski/master
Browse files Browse the repository at this point in the history
support gcc 8's cold subfunctions
  • Loading branch information
palmtenor committed Sep 14, 2019
2 parents d147588 + 44454d9 commit e47537d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/bcc/__init__.py
Original file line number Diff line number Diff line change
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 e47537d

Please sign in to comment.