LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-29-2017, 10:04 PM   #1
barz_83_LQ
LQ Newbie
 
Registered: Apr 2017
Posts: 17

Rep: Reputation: Disabled
user space profiling events enable parameter behaviour not clear: /sys/kernel/debug/tracing/events/enable reset to X when set to 1


Hello,

I am trying to understand user space profiling either using linux inbuilt mechanism (sysfs). Have gone through URL: https://opensource.com/article/17/7/...comment-136366.

Now, my question is when there are no debug trace probe points enabled in /sys/kernel/debug/tracing/uprobe_events , I am not able to set /sys/kernel/debug/tracing/events/enable to 1 and if I try to set it to 1, it is getting set to 'X', which I dont understand. Check below:

root@bbr:/home/bbr/xxxxxxxx/out# echo 1 > /sys/kernel/debug/tracing/events/enable
root@bbr:/home/bbr/work/xxxxxxxxxxxxx/out# cat /sys/kernel/debug/tracing/events/enable
X


I think ...events/enable is a master setting which should be able to be set to 1 and for enabling uprobes in particular, there is separate parameter available at /sys/kernel/debug/tracing/events/uprobes/enable . Kindly correct my understanding.

Regards,
Bhargav
 
Old 11-30-2017, 08:28 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 5,979
Blog Entries: 12

Rep: Reputation: 2044Reputation: 2044Reputation: 2044Reputation: 2044Reputation: 2044Reputation: 2044Reputation: 2044Reputation: 2044Reputation: 2044Reputation: 2044Reputation: 2044
Moved: This thread is more suitable in Linux-Kernel and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply

Tags
events, probes, profiling, sysfs, userspace


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] echo 1 > /sys/kernel/debug/tracing/events/enable has no effect barz_83_LQ Linux - Newbie 7 11-29-2017 11:49 PM
How linux driver notify asynchrnous events to user space akv1412 Linux - General 3 01-15-2014 07:02 PM
system not display /sys/ folder....in kernel compile how to enable sys in menuconfig dashang.trivedi Linux - Kernel 1 07-14-2011 06:00 AM
Send Events from Kernel space to User Space bkankru Linux - Kernel 1 03-04-2011 05:24 PM
how to send events from kernel module to user space process yugandhar Linux - Kernel 2 02-21-2011 11:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration