Re: Using perf probe with arguments throws a fatal error.

From: Srikar Dronamraju
Date: Wed Aug 25 2010 - 03:00:51 EST


> >
> > The differences I see when a name is given we refer the name, while in
> > the previous case we refer the register %ip.
>
> Ah, I remembered that, yeah, perf doesn't support those raw regsiters,
> dereferences, etc.
> Hmm, this should be solved, but not so simple as just removing "%",
> because there are also special variables ($retval, $stack) and
> dereferences(+8(+10(%sp)), etc).
>
> I think the simplest solution is just setting "argX" name for each
> argument (if user omitted its name) in kprobe-tracer (because
> trace-cmd will face same problem).
> e.g.
> # echo "p do_fork %ip" > tracing/kprobe_events
> will be translated as below
> # echo "p do_fork arg1=%ip" > tracing/kprobe_events
>

Okay, I will follow the same and fix the argX name in uprobe-tracer.

--
Thanks and Regards
Srikar
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/