Skip to contentSkip to conversation

perf scripts python: Update package name for python3

PATCH Applied Wei Li 2 participants 2 messages Aug 15, 2023 perf events

lore
Share & tools
lore

Wei Li

author
#0 lore raw

PATCH 1/1 perf scripts python: Update package name for python3

'audit-libs-python' is the package for python2, update it for python3. On Ubuntu and Fedora, the new package is 'python3-audit'.

---
 .../scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py +3 -3
index 7384dcb628c4..84536b1a27ba 100644
@@ -73,9 +73,9 @@ try:
 except:
 	if not audit_package_warned:
 		audit_package_warned = True
-		print("Install the audit-libs-python package to get syscall names.\n"
-                    "For example:\n  # apt-get install python-audit (Ubuntu)"
-                    "\n  # yum install audit-libs-python (Fedora)"
+		print("Install the python-audit package to get syscall names.\n"
+                    "For example:\n  # apt-get install python3-audit (Ubuntu)"
+                    "\n  # yum install python3-audit (Fedora)"
                     "\n  etc.\n")
 
 def syscall_name(id):
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw

Em Tue, Aug 15, 2023 at 09:18:05PM +0800, Wei Li escreveu:

Quoted 2 lines

'audit-libs-python' is the package for python2, update it for python3. On Ubuntu and Fedora, the new package is 'python3-audit'.

Thanks, applied.

- Arnaldo

Quoted 25 lines
---
 .../scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py +3 -3
index 7384dcb628c4..84536b1a27ba 100644
@@ -73,9 +73,9 @@ try:
 except:
 	if not audit_package_warned:
 		audit_package_warned = True
-		print("Install the audit-libs-python package to get syscall names.\n"
-                    "For example:\n  # apt-get install python-audit (Ubuntu)"
-                    "\n  # yum install audit-libs-python (Fedora)"
+		print("Install the python-audit package to get syscall names.\n"
+                    "For example:\n  # apt-get install python3-audit (Ubuntu)"
+                    "\n  # yum install python3-audit (Fedora)"
                     "\n  etc.\n")
 
 def syscall_name(id):
Signature · 1 line
2.25.1
Signature · 1 line
- Arnaldo