On 12/15/14 8:18 PM, Chinnathambi, Muthusamy wrote:
Hi,

I wanted try perf probe, but I am getting the following failure.

[root@force perf_tests]# ./perf probe --add sys_read
Failed to find symbol sys_read in kernel
   Error: Failed to add events.

Works for me:
$ perf probe sys_read
Added new event:
  probe:sys_read       (on sys_read)

You can now use it in all perf tools, such as:

        perf record -e probe:sys_read -aR sleep 1

$ uname -r
3.6.11-4.fc16.x86_64

Also, sys_read already has a tracepoint:

  syscalls:sys_enter_read                            [Tracepoint event]
  syscalls:sys_exit_read                             [Tracepoint event]

David
--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to