lkml.org 
[lkml]   [2013]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 1/1] tracing: Introduce "pseudo registers" for FETCH_MTD_reg
Date
On Sun, 24 Nov 2013 16:32:53 +0900, Masami Hiramatsu wrote:
> (2013/11/24 5:16), 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.
>
> Good catch! :)
>
>> This syntax is %%pseudo-reg-name, I agree in advance with any other
>> naming.
>
> For this kind of use, kprobe-tracer already provides '$' prefix :)
> e.g. $stack, $retval etc. Please see parse_probe_vars in trace_probe.c.
>
> So, $current and $cpu is better for me.

Agreed.

Thanks,
Namhyung


\
 
 \ /
  Last update: 2013-11-25 09:21    [W:0.103 / U:0.628 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site