Skip to content
Advertisement

How to get function name after ‘ } ‘ in ftrace/ trace-cmd

I have recently started working with ftrace. I able to get function graph trace using

JavaScript

With the above commands I can see time taken by function to finish before ‘ } ‘ But I want to script for listing functions taking more time than 10ms.

Can anyone help me to achieve this?

Advertisement

Answer

TLDR it can be achieved by

JavaScript

explanation

as per help

JavaScript

but when we try but plugin name function_graph what we use for record doesn’t work as well if we dig in ftrace docs we have option funcgraph-tail but even this won’t work

finally when you dig in source code of trace-cmd

JavaScript

has these options.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement