Index: tools/ll_prof.py |
diff --git a/tools/ll_prof.py b/tools/ll_prof.py |
index 5c07d9165f9f89107d55ba1572d4d02600f601be..8e56f41d9179339848df279211599be9fcbb32f6 100755 |
--- a/tools/ll_prof.py |
+++ b/tools/ll_prof.py |
@@ -674,6 +674,8 @@ OBJDUMP_SYMBOL_LINE_RE = re.compile( |
r"^([a-f0-9]+)\s(.{7})\s(\S+)\s+([a-f0-9]+)\s+(?:\.hidden\s+)?(.*)$") |
OBJDUMP_DYNAMIC_SYMBOLS_START_RE = re.compile( |
r"^DYNAMIC SYMBOL TABLE") |
+OBJDUMP_SKIP_RE = re.compile( |
+ r"^.*ld\.so\.cache$") |
KERNEL_ALLSYMS_FILE = "/proc/kallsyms" |
PERF_KERNEL_ALLSYMS_RE = re.compile( |
r".*kallsyms.*") |
@@ -692,6 +694,8 @@ class LibraryRepo(object): |
# is 0. |
if mmap_info.tid == 0 and not options.kernel: |
return True |
+ if OBJDUMP_SKIP_RE.match(mmap_info.filename): |
+ return True |
if PERF_KERNEL_ALLSYMS_RE.match(mmap_info.filename): |
return self._LoadKernelSymbols(code_map) |
self.infos.append(mmap_info) |