linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* uprobes enable condition (user space) - sysfs interface
@ 2017-11-29 18:34 bhargavb
  2017-12-01 16:40 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 11+ messages in thread
From: bhargavb @ 2017-11-29 18:34 UTC (permalink / raw)
  To: linux-rt-users, linux-perf-users

Hello,

I am trying to understand user space profiling using linux inbuilt
mechanism. (Trying with perf also but could not get complete clear
documentation and could not proceed, so retained linux-perf-users in
to list as the underlying interface used is same for both).

I observed below behaviour when I tried as per directions using URL:
https://opensource.com/article/17/7/dynamic-tracing-linux-user-and-kernel-space#comment-136366
:


echo 'p:<func_entry> ./test:0x420' >
/sys/kernel/debug/tracing/uprobe_events              (for creating
uprobe)
echo 1 > /sys/kernel/debug/tracing/events/enable
                                (enabling uproble)
There is another enable parameter:
/sys/kernel/debug/tracing/events/uprobes/enable

I understand unless enabled both events/enable and
events/uprobes/enable, the /sys/kernel/debug/tracing/trace is not
complete. I do not understand the relevance of
.....events/uprobes/enable as I could not get any trace data in trace
log for 'func_entry' the user space function being added for tracing.
Irrespective of the probe function added, the trace log shows complete
system trace log during the period of execution of the user
application being traced.

Can this be clearly mentioned as to when to use one of them, role of
both and and also, I could not see uprobe function in particular at
all but generic trace in /sys/kernel/debug/tracing/trace. Kindly guide
me in understanding uprobe enable logic in user space in detail.

Regards,
Bhargav

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-12-05 13:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-29 18:34 uprobes enable condition (user space) - sysfs interface bhargavb
2017-12-01 16:40 ` Arnaldo Carvalho de Melo
2017-12-03 17:14   ` bhargavb
2017-12-04  6:03     ` Namhyung Kim
2017-12-04 12:36   ` Masami Hiramatsu
2017-12-04 14:55     ` Arnaldo Carvalho de Melo
2017-12-04 15:23       ` Paul Clarke
2017-12-05  6:53         ` Masami Hiramatsu
2017-12-05  7:45         ` Masami Hiramatsu
2017-12-05 13:58           ` Paul Clarke
2017-12-05  6:51       ` Masami Hiramatsu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).