[ltt-dev] Legend for resource viewer in LTTV ?

Mathieu Desnoyers compudj at krystal.dyndns.org
Mon Oct 19 16:26:59 EDT 2009


* Gregory Haskins (gregory.haskins at gmail.com) wrote:
> Martin Kosina wrote:
> > Sorry, couldn't find this in the manual - is there a legend available
> > for the different colors the resource viewer displays ?
> > Wondering what the different shades of red mean on the CPU timelines...
> > 
> > Thanks,
> > Martin
> 
> Hi Martin,
> 
> http://lttng.org/files/lttv-doc/user_guide/x81.html
> 

I'm afraid this is the legend for the "control flow" view rather than
the resource view.

There currently exist no legend for the resource view AFAIK, even in
html format.

One could create a legend by looking at 
lttv/modules/gui/resourceview/drawing.h:

typedef enum _draw_color {
                COL_BLACK,
                COL_WHITE,
                COL_RUN_USER_MODE,/* green */
                COL_RUN_SYSCALL,  /* pale blue */
                COL_RUN_TRAP,     /* yellow */
                COL_RUN_IRQ,      /* orange */
                COL_RUN_SOFT_IRQ, /* red */
                COL_WAIT,         /* dark red */
                COL_WAIT_CPU,     /* dark yellow */
                COL_ZOMBIE,       /* dark purple */
                COL_WAIT_FORK,    /* dark green */
                COL_EXIT,         /* "less dark" magenta */
                COL_MODE_UNKNOWN, /* white */
                COL_UNNAMED,      /* white */
                NUM_COLORS } draw_color;


typedef enum _draw_color_cpu {
                COL_CPU_UNKNOWN,
                COL_CPU_IDLE,
                COL_CPU_BUSY,
                COL_CPU_IRQ,
                COL_CPU_SOFT_IRQ,
                COL_CPU_TRAP,
                NUM_COLORS_CPU
} draw_color_cpu;

typedef enum _draw_color_irq {
                COL_IRQ_UNKNOWN,
                COL_IRQ_IDLE,
                COL_IRQ_BUSY,
                NUM_COLORS_IRQ
} draw_color_irq;

typedef enum _draw_color_soft_irq {
                COL_SOFT_IRQ_UNKNOWN,
                COL_SOFT_IRQ_IDLE,
                COL_SOFT_IRQ_PENDING,
                COL_SOFT_IRQ_BUSY,
                NUM_COLORS_SOFT_IRQ
} draw_color_soft_irq;

typedef enum _draw_color_trap {
                COL_TRAP_UNKNOWN,
                COL_TRAP_IDLE,
                COL_TRAP_BUSY,
                NUM_COLORS_TRAP
} draw_color_trap;

typedef enum _draw_color_bdev {
                COL_BDEV_UNKNOWN,
                COL_BDEV_IDLE,
                COL_BDEV_BUSY_READING,
                COL_BDEV_BUSY_WRITING,
                NUM_COLORS_BDEV
} draw_color_bdev;

This, along with the color definitions in drawing.c, defines which color
is associated with each resource.

Mathieu

> HTH,
> -Greg
> 
> 



> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev


-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20091019/5c2f51c5/attachment-0003.pgp>


More information about the lttng-dev mailing list