1/3/2024 0 Comments Iptrace cmdSet the function tracer: # trace-cmd set -p function See Also ExamplesĮnable all events for tracing: # trace-cmd set -e all Then it will fork the command and return immediately. If a command is listed, then trace-cmd will wait for that command to finish, unless the -fork option is specified. This is useful if you want to monitor the output of the command being executed, but not see the output from trace-cmd. Have output go to stderr instead of stdout, but the output of the command executed will not be changed. ' -module snd' is equivalent to ' -l :mod:snd' ' -module snd -l "*jack*"' is equivalent to ' -l "*jack*:mod:snd"' ' -module snd -n "*"' is equivalent to ' -n :mod:snd' -stderr If no other function filter is listed, then all modules functions will be filtered in the filter. It is equivalent to adding :mod:module after all other functions being filtered. module moduleįilter a module’s name in function tracing. Basically, it will let you use C notation to check if an event should be processed or not. Filtering is passed to the kernel directly so what filtering is allowed may depend on what version of the kernel you have. This will filter what events get recorded based on the content of the event. If the function tracer is not filtered, and the stack trace is enabled, you can live lock the machine. Note this is only applicable for the "function" plugin tracer, and will only take effect if the -l option is used and succeeds in limiting functions. => start_secondary (ffffffff814ab828) -func-stackĮnable a stack trace on all functions. The keyword 'all' can be used to enable all events. Select all events (or subsystems) that have the characters "stat" in their The 'event' can also contain glob expressions. Using " -e sched_switch" will enable the "sched_switch" event where as, " -e sched" will enable all events under the "sched" subsystem. You can also just specify the subsystem without the :event-name or the event-name without the "subsystem:". The event is of the format "subsystem:event-name". They are grouped by subsystem where you can enable all events of a given subsystem or specify specific events to be enabled. Various static trace points have been added to the Linux kernel. To see a list of available tracers, see trace-cmd-list(1). A tracer must be supported by the running kernel. Common tracers are: function, function_graph, preemptirqsoff, irqsoff, preemptoff and wakeup. Tracers usually do more than just trace an event. The configured ftrace state can be restored to default using the trace-cmd-reset(1) command. The specified command will be run after the ftrace state is set. The trace-cmd(1) set command will set a configuration parameter of the Ftrace Linux kernel tracer. Set a configuration parameter of the Ftrace Linux internal tracer Synopsis
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |