From 44454d948b9fa4e0587fad7478b9383d51501c41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Weso=C5=82owski?= Date: Wed, 11 Sep 2019 11:08:58 +0200 Subject: [PATCH] support gcc 8's cold subfunctions --- src/python/bcc/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: