lkml.org 
[lkml]   [2012]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH -v2 1/4] trace events: Interface to add files to debugfs
On Thu, Aug 16, 2012 at 06:06:48PM -0400, Steven Rostedt wrote:
> > /mnt/dbg/tracing/events/mce/mce_record/
> > |-- enable
> > |-- filter
> > |-- format
> > |-- id
> > `-- persistent
>
> This looks rather hacky :-/

Ya think?! :-)

Well, this whole machinery is only for telling to userspace which is the
file descriptor of the persistent event. And yes, it could probably be
done with a lot less code.

Hell, I'm even fine with issuing it in dmesg and userspace parsing the
output - talk about efficient implementation.

> Can't this be added to the perf syscall, and have the user query the
> event instead?

Do you mean perf_ioctl? For that to work I need to have a file
descriptor of the "normal" event first and then query it to get the
persistent file descriptor... Or do you mean something easier?

> Note, this code will change drastically soon, and this change will
> break. I'll talk more about what will change at plumbers.

I'll try to get a video or something... :)

--
Regards/Gruss,
Boris.

Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach
GM: Alberto Bozzo
Reg: Dornach, Landkreis Muenchen
HRB Nr. 43632 WEEE Registernr: 129 19551


\
 
 \ /
  Last update: 2012-08-17 10:21    [W:0.063 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site