Re: Re: [PATCH 1/2] tracing: Add $cpu and $current probe-vars

2013-11-27 Thread Masami Hiramatsu
(2013/11/28 2:05), Oleg Nesterov wrote: > On 11/27, Masami Hiramatsu wrote: >> >> (2013/11/27 2:23), Oleg Nesterov wrote: >>> On 11/26, Masami Hiramatsu wrote: (2013/11/26 4:29), Oleg Nesterov wrote: > +#define PSEUDO_REG_OFFSET4096/* arbitrary value > > MAX_REG_OFFSE

Re: [PATCH 1/2] tracing: Add $cpu and $current probe-vars

2013-11-27 Thread Oleg Nesterov
On 11/27, Masami Hiramatsu wrote: > > (2013/11/27 2:23), Oleg Nesterov wrote: > > On 11/26, Masami Hiramatsu wrote: > >> > >> (2013/11/26 4:29), Oleg Nesterov wrote: > >>> +#define PSEUDO_REG_OFFSET4096/* arbitrary value > > >>> MAX_REG_OFFSET */ > >>> + > >>> +static unsigned long pro

Re: [PATCH 1/2] tracing: Add $cpu and $current probe-vars

2013-11-27 Thread Masami Hiramatsu
(2013/11/27 2:23), Oleg Nesterov wrote: > On 11/26, Masami Hiramatsu wrote: >> >> (2013/11/26 4:29), Oleg Nesterov wrote: >>> +#define PSEUDO_REG_OFFSET 4096/* arbitrary value > MAX_REG_OFFSET */ >>> + >>> +static unsigned long probe_get_register(struct pt_regs *regs, unsigned >>> long offset

Re: [PATCH 1/2] tracing: Add $cpu and $current probe-vars

2013-11-26 Thread Oleg Nesterov
On 11/26, Masami Hiramatsu wrote: > > (2013/11/26 4:29), Oleg Nesterov wrote: > > +#define PSEUDO_REG_OFFSET 4096/* arbitrary value > MAX_REG_OFFSET */ > > + > > +static unsigned long probe_get_register(struct pt_regs *regs, unsigned > > long offset) > > +{ > > + if (offset < PSEUDO_REG_OFF

Re: [PATCH 1/2] tracing: Add $cpu and $current probe-vars

2013-11-25 Thread Masami Hiramatsu
(2013/11/26 4:29), Oleg Nesterov wrote: > The probe can dump the registers or memory, but it is not possible > to dump, say, current->pid. This patch adds the pseudo regs table, > currently it has only two methods to get current/smp_processor_id > but it can be trivially extended. > > The syntax i