diff options
| author | Jiri Kosina <jkosina@suse.com> | 2024-03-13 21:17:33 +0100 | 
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2024-03-13 21:17:33 +0100 | 
| commit | 2e21dee6a46a66e4c2ced778485e1044101edee4 (patch) | |
| tree | b9a9565cf9e3954ad316c343715b43b401c51074 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 9a5b1521e2d0d7ace70c6e5eed073babcec91409 (diff) | |
| parent | 90184f90c9ac559062a04aca72e5d05730164de0 (diff) | |
Merge branch 'for-6.9/amd-sfh' into for-linus
- assorted fixes and optimizations for amd-sfh (Basavaraj Natikar)
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
| -rwxr-xr-x | tools/perf/scripts/python/exported-sql-viewer.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/tools/perf/scripts/python/exported-sql-viewer.py b/tools/perf/scripts/python/exported-sql-viewer.py index 13f2d8a81610..121cf61ba1b3 100755 --- a/tools/perf/scripts/python/exported-sql-viewer.py +++ b/tools/perf/scripts/python/exported-sql-viewer.py @@ -677,8 +677,8 @@ class CallGraphModelBase(TreeModel):  			#   sqlite supports GLOB (text only) which uses * and ? and is case sensitive  			if not self.glb.dbref.is_sqlite3:  				# Escape % and _ -				s = value.replace("%", "\%") -				s = s.replace("_", "\_") +				s = value.replace("%", "\\%") +				s = s.replace("_", "\\_")  				# Translate * and ? into SQL LIKE pattern characters % and _  				trans = string.maketrans("*?", "%_")  				match = " LIKE '" + str(s).translate(trans) + "'" | 
