Re: logging data to a file.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 04, 2005 at 09:34:20AM -0800, Tim Bird wrote:
> 
> I have trace data that I export to user space via procfs, using
> seq_file operations.  I copied this technique from Ingo Molnar's
> code to trace preemption issues, and it has been working well
> for my tracing system.
> 
> Patches are available at:
> http://tree.celinuxforum.org/CelfPubWiki/KernelFunctionTrace
> (follow the link under Downloads to the CELF patch archive,
> and look for kft-all-in-one-2.6.12.patch.  Sorry, patches
> for later kernels are not available yet.)

For later kernels, you should use relayfs, as this is exactly what it
was made for.  Hm, I think there is a trace patch for this exact reason
that uses relayfs too :)

Please please please do not abuse procfs for this kind of thing anymore,
we are _really_ trying to clean this stuff up and even with
out-of-the-tree patches like this, it sends the wrong message (and
people copy code for this stuff from everywhere...)

thanks,

greg k-h

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux