Skip to content

Commit

Permalink
Merge pull request avocado-framework-tests#2813 from disgoel/sdt-probe
Browse files Browse the repository at this point in the history
perf/perf_sdt_probe: refine parsing logic for locating libpthread & libc
  • Loading branch information
Naresh-ibm authored Apr 30, 2024
2 parents 1e8c7e1 + d646b6b commit ad6b5a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions perf/perf_sdt_probe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ad6b5a2

Please sign in to comment.