diff --git a/perf/perf_sdt_probe.py b/perf/perf_sdt_probe.py index 6d7cf2c41..2727b1b40 100755 --- a/perf/perf_sdt_probe.py +++ b/perf/perf_sdt_probe.py @@ -54,10 +54,10 @@ def add_library(self): for line in str(self.libpthread).splitlines(): if re.search('libpthread.so', line, re.IGNORECASE): if 'lib64' in line: - self.libpthread = line.split(" ")[7] + self.libpthread = line.split("=>")[1] if re.search('libc.so', line, re.IGNORECASE): if 'lib64' in line: - self.libc = line.split(" ")[7] + self.libc = line.split("=>")[1] if not self.libpthread: self.fail("Library %s not found" % self.libpthread) if not self.libc: