hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/tools/perf/scripts/python/sched-migration.py
....@@ -1,5 +1,3 @@
1
-#!/usr/bin/python
2
-#
31 # Cpu task migration overview toy
42 #
53 # Copyright (C) 2010 Frederic Weisbecker <fweisbec@gmail.com>
....@@ -16,10 +14,10 @@
1614
1715 from collections import defaultdict
1816 try:
19
- from UserList import UserList
17
+ from UserList import UserList
2018 except ImportError:
21
- # Python 3: UserList moved to the collections package
22
- from collections import UserList
19
+ # Python 3: UserList moved to the collections package
20
+ from collections import UserList
2321
2422 sys.path.append(os.environ['PERF_EXEC_PATH'] + \
2523 '/scripts/python/Perf-Trace-Util/lib/Perf/Trace')