diff options
author | Loic Martin <loicx.martin@intel.com> | 2010-10-15 14:46:55 +0200 |
---|---|---|
committer | Pierre Tardy <pierre.tardy@intel.com> | 2010-10-15 15:24:25 +0200 |
commit | 97d461e61ec4e7c4b526544ce0c9f6ba20d3cdf8 (patch) | |
tree | c0446029b58d1ea050de10fee5dcd19f931cde32 | |
parent | 474d142908f6f3396f55e72c8f0d5a6c99a0631d (diff) |
irq_parser: change color for unhandled irq
for a shared irq, permit to know which handler is really used
-rwxr-xr-x | timechart/ftrace.py | 4 | ||||
-rwxr-xr-x | timechart/timechart.py | 5 | ||||
-rwxr-xr-x | timechart/timechart_plot.py | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/timechart/ftrace.py b/timechart/ftrace.py index f49712f..560d853 100755 --- a/timechart/ftrace.py +++ b/timechart/ftrace.py @@ -25,8 +25,8 @@ events_desc = [ ('softirq_exit','vec=%d [action=%s]','vec','name'), ('irq_handler_entry', 'irq=%d handler=%s','irq','name'), ('irq_handler_entry', 'irq=%d name=%s','irq','name'), - ('irq_handler_exit', 'irq=%d return=%s','irq','return'), - ('irq_handler_exit', 'irq=%d ret=%s','irq','return'), + ('irq_handler_exit', 'irq=%d return=%s','irq','ret'), + ('irq_handler_exit', 'irq=%d ret=%s','irq','ret'), ('workqueue_execution','thread=%s func=%s\\+%s/%s','thread','func','func_offset','func_size'), ('workqueue_execution','thread=%s func=%s','thread','func'), ('wakelock_lock', 'name=%s type=%d', 'name', 'type'), diff --git a/timechart/timechart.py b/timechart/timechart.py index e4f7c25..9d7a980 100755 --- a/timechart/timechart.py +++ b/timechart/timechart.py @@ -347,6 +347,11 @@ class TimechartProject(HasTraits): print self.last_irq.keys(),(event.irq,soft) return self.generic_process_end(process,event) + try: + if event.ret=="unhandled": + process['types'][-1]=4 + except: + pass def do_event_softirq_entry(self,event): event.irq = event.vec event.name = "" diff --git a/timechart/timechart_plot.py b/timechart/timechart_plot.py index 63a6ebd..683b086 100755 --- a/timechart/timechart_plot.py +++ b/timechart/timechart_plot.py @@ -22,7 +22,7 @@ from enthought.enable.colors import ColorTrait from enthought.pyface.timer import timer c_states_colors=[0x000000,0xbbbbff,0x7777ff,0x5555ff,0x3333ff,0x1111ff,0x0000ff] -process_colors=[0x000000,0x555555,0xffff88,0x55ffff] +process_colors=[0x000000,0x555555,0xffff88,0x55ffff,0xAD2D2D] class TimeChartOptions(HasTraits): minimum_time_filter = Enum((0,1000,10000,50000,100000,500000,1000000,5000000,1000000,5000000,10000000,50000000)) remove_pids_not_on_screen = Bool(True) |