Skip to contentSkip to conversation

stopping ftrace on event

DISCUSSION Benjamin Steinke 2 participants 3 messages Jul 6, 2022

lore
Share & tools
lore
#0 lore raw

Hi all,

I'm hunting sporadic high irq-handler latencies in a pcie driver by using ftrace. I'm currently using trace-cmd record but get way to large files due to the event being so infrequent.

Is there a way to stop tracing or dump the current trace buffer when a specific event occurs?

Thanks for your help,
Benjamin

#1 lore raw
Quoted 8 lines · Benjamin Steinke

Hi all,

I'm hunting sporadic high irq-handler latencies in a pcie driver by using ftrace. I'm currently using trace-cmd record but get way to large files due to the event being so infrequent.

Is there a way to stop tracing or dump the current trace buffer when a specific event occurs?

https://www.kernel.org/doc/html/latest/trace/events.html#event-triggers ?

-- Daniel

Quoted 6 lines

Thanks for your help,
Benjamin

#2 lore raw

Am Mittwoch, 6. Juli 2022, 13:31:00 CEST schrieb Daniel Bristot de Oliveira:

Quoted 11 lines · Benjamin Steinke
Quoted 8 lines

Hi all,

I'm hunting sporadic high irq-handler latencies in a pcie driver by using ftrace. I'm currently using trace-cmd record but get way to large files due to the event being so infrequent.

Is there a way to stop tracing or dump the current trace buffer when a specific event occurs?

https://www.kernel.org/doc/html/latest/trace/events.html#event-triggers ?

Oh, didn't see the forest for the trees. I probably scrolled a number of times over this section. Thanks a lot.

Quoted 5 lines

-- Daniel

Quoted 2 lines

Thanks for your help,
Benjamin