Re: [PATCH] libtracefs: Add new API for open trace marker file

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

 



On Fri, 19 Feb 2021 09:26:42 -0500
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> Where tracefs_print_init() will open the trace_marker for that instance
> (NULL being the top level), and storing it in the instance structure.

BTW, in all cases, if NULL is used, we need to have a global variable to
keep track of the trace_marker file descriptor. All should be marked as
"close on exec", as we don't want this to be passed to new executables (if
someone wants that, then they can use the API in this thread).

-- Steve



[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux