(2014/10/22 17:20), Hemant Kumar wrote:
Right, sorry for confusing you. I meant that I'd like to support SDT on both ofBut I think, previously we discussed that we won't be having "perfFrom "file_sdt_ent" we will find out the file name.OK, I have some comments on this.
Convert this sdt note into a perf event and then write this into uprobe_events
file to be able to record the event.
Then, corresponding entries are added to uprobe_events file for
the SDT events.
After recording is done, these events are silently deleted from uprobe_events
file. The uprobe_events file is present in debugfs/tracing directory.
To support the addition and deletion of SDT events to/from uprobe_events
file, a record_sdt struct is maintained which has the event data.
An example usage:At first, I'd like to add SDT support for adding probes too, like below;
# ./perf record -e %user_app:fun_start -aR /home/user_app
./perf probe -a '%user_app:fun_start $vars'
probe" for SDT events.
We list them and probe/trace them using "perf record" directly.
perf-record and perf-probe :)
And even if we'll hide sdt related events via perf, users can access it via ftrace.
So, I doubt that we can completely hide them, in that case, honesty is the best way;)
Thank you,