History

perf, sched migration: Ignore unhandled task states

Stop printing an error message when we don't have the letter for a given task state. All we need to know is if the task is in the TASK_RUNNING state.

Frederic Weisbecker committed 16 years ago

Commit 207f90f1 parent 749e5071 file · +1 −2Browse files

Showing the changes to tools/perf/scripts/python (1 of 1 file). Show all

Unified · Split

tools/perf/scripts/python/sched-migration.py+1−2
@@ -260,8 +260,7 @@ def taskState(state): · 259 unmodified lines
260260 }
261261
262262 if state not in states:
263− print "Unhandled task state %d" % state
264− return ""
263+ return "Unknown"
265264
266265 return states[state]
267266

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t