Re: [BUG] perf probe can't insert return kprobe

David Ahern
2015-01-09T15:06:06Z

On 1/9/15 8:03 AM, Arnaldo Carvalho de Melo wrote:
> Em Fri, Jan 09, 2015 at 03:55:39PM +0100, Jiri Olsa escreveu:
>> hi,
>> I couldn't use following perf command to insert return probe:
>>
>> # perf probe -a fork_exit=do_fork%return
>> Added new event:
>> Failed to write event: Invalid argument
>> Error: Failed to add events.
>
> Wonder if we have any way of forcing 'perf probe' to show what it will
> feed the kernel, perhaps -v?

# strace -e write perf probe -a fork_exit=do_fork%return
write(1, "Added new event:\n", 17Added new event:
) = 17
write(3, "r:probe/fork_exit do_fork+0", 27) = 27

Would be nice to add the output to perf -v though.

David