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

From: David Ahern
Date: Fri Jan 09 2015 - 10:06:10 EST


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
--
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/