From bedbef8ad3e75a304af6361af235302bcc61d06b Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Tue, 14 May 2024 06:39:01 +0000 Subject: [PATCH] 修改内核路径 --- kernel/tools/perf/scripts/python/sched-migration.py | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/kernel/tools/perf/scripts/python/sched-migration.py b/kernel/tools/perf/scripts/python/sched-migration.py index 3473e7f..8196e30 100644 --- a/kernel/tools/perf/scripts/python/sched-migration.py +++ b/kernel/tools/perf/scripts/python/sched-migration.py @@ -1,5 +1,3 @@ -#!/usr/bin/python -# # Cpu task migration overview toy # # Copyright (C) 2010 Frederic Weisbecker <fweisbec@gmail.com> @@ -16,10 +14,10 @@ from collections import defaultdict try: - from UserList import UserList + from UserList import UserList except ImportError: - # Python 3: UserList moved to the collections package - from collections import UserList + # Python 3: UserList moved to the collections package + from collections import UserList sys.path.append(os.environ['PERF_EXEC_PATH'] + \ '/scripts/python/Perf-Trace-Util/lib/Perf/Trace') -- Gitblit v1.6.2