aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
-rwxr-xr-xtools/perf/scripts/python/exported-sql-viewer.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/perf/scripts/python/exported-sql-viewer.py b/tools/perf/scripts/python/exported-sql-viewer.py
index 24cb0bd56afa..20cc8e7879b9 100755
--- a/tools/perf/scripts/python/exported-sql-viewer.py
+++ b/tools/perf/scripts/python/exported-sql-viewer.py
@@ -1929,7 +1929,12 @@ class XEDInstruction():
1929class LibXED(): 1929class LibXED():
1930 1930
1931 def __init__(self): 1931 def __init__(self):
1932 self.libxed = CDLL("libxed.so") 1932 try:
1933 self.libxed = CDLL("libxed.so")
1934 except:
1935 self.libxed = None
1936 if not self.libxed:
1937 self.libxed = CDLL("/usr/local/lib/libxed.so")
1933 1938
1934 self.xed_tables_init = self.libxed.xed_tables_init 1939 self.xed_tables_init = self.libxed.xed_tables_init
1935 self.xed_tables_init.restype = None 1940 self.xed_tables_init.restype = None