1*58e6ee5fSAndroid Build Coastguard WorkerTRACE-CMD-RESET(1) 2*58e6ee5fSAndroid Build Coastguard Worker================== 3*58e6ee5fSAndroid Build Coastguard Worker 4*58e6ee5fSAndroid Build Coastguard WorkerNAME 5*58e6ee5fSAndroid Build Coastguard Worker---- 6*58e6ee5fSAndroid Build Coastguard Workertrace-cmd-reset - turn off all Ftrace tracing to bring back full performance 7*58e6ee5fSAndroid Build Coastguard Worker 8*58e6ee5fSAndroid Build Coastguard WorkerSYNOPSIS 9*58e6ee5fSAndroid Build Coastguard Worker-------- 10*58e6ee5fSAndroid Build Coastguard Worker*trace-cmd reset* ['OPTIONS'] 11*58e6ee5fSAndroid Build Coastguard Worker 12*58e6ee5fSAndroid Build Coastguard WorkerDESCRIPTION 13*58e6ee5fSAndroid Build Coastguard Worker----------- 14*58e6ee5fSAndroid Build Coastguard WorkerThe trace-cmd(1) reset command turns off all tracing of Ftrace. This will 15*58e6ee5fSAndroid Build Coastguard Workerbring back the performance of the system before tracing was enabled. This is 16*58e6ee5fSAndroid Build Coastguard Workernecessary since 'trace-cmd-record(1)', 'trace-cmd-stop(1)' and 17*58e6ee5fSAndroid Build Coastguard Worker'trace-cmd-extract(1)' do not disable the tracer, event after the data has 18*58e6ee5fSAndroid Build Coastguard Workerbeen pulled from the buffers. The rational is that the user may want to 19*58e6ee5fSAndroid Build Coastguard Workermanually enable the tracer with the Ftrace pseudo file system, or examine other 20*58e6ee5fSAndroid Build Coastguard Workerparts of Ftrace to see what trace-cmd did. After the reset command happens, 21*58e6ee5fSAndroid Build Coastguard Workerthe data in the ring buffer, and the options that were used are all lost. 22*58e6ee5fSAndroid Build Coastguard Worker 23*58e6ee5fSAndroid Build Coastguard WorkerOPTIONS 24*58e6ee5fSAndroid Build Coastguard Worker------- 25*58e6ee5fSAndroid Build Coastguard WorkerPlease note that the order that options are specified on the command line is 26*58e6ee5fSAndroid Build Coastguard Workersignificant. See EXAMPLES. 27*58e6ee5fSAndroid Build Coastguard Worker 28*58e6ee5fSAndroid Build Coastguard Worker*-b* 'buffer_size':: 29*58e6ee5fSAndroid Build Coastguard Worker When the kernel boots, the Ftrace ring buffer is of a minimal size (3 30*58e6ee5fSAndroid Build Coastguard Worker pages per CPU). The first time the tracer is used, the ring buffer size 31*58e6ee5fSAndroid Build Coastguard Worker expands to what it was set for (default 1.4 Megs per CPU). 32*58e6ee5fSAndroid Build Coastguard Worker 33*58e6ee5fSAndroid Build Coastguard Worker If no more tracing is to be done, this option allows you to shrink the 34*58e6ee5fSAndroid Build Coastguard Worker ring buffer down to free up available memory. 35*58e6ee5fSAndroid Build Coastguard Worker 36*58e6ee5fSAndroid Build Coastguard Worker trace-cmd reset -b 1 37*58e6ee5fSAndroid Build Coastguard Worker 38*58e6ee5fSAndroid Build Coastguard Worker The buffer instance affected is the one (or ones) specified by the most 39*58e6ee5fSAndroid Build Coastguard Worker recently preceding *-B*, *-t*, or *-a* option: 40*58e6ee5fSAndroid Build Coastguard Worker 41*58e6ee5fSAndroid Build Coastguard Worker When used after *-B*, resizes the buffer instance that precedes it on 42*58e6ee5fSAndroid Build Coastguard Worker the command line. 43*58e6ee5fSAndroid Build Coastguard Worker 44*58e6ee5fSAndroid Build Coastguard Worker When used after *-a*, resizes all buffer instances except the top one. 45*58e6ee5fSAndroid Build Coastguard Worker 46*58e6ee5fSAndroid Build Coastguard Worker When used after *-t* or before any *-B* or *-a*, resizes the top 47*58e6ee5fSAndroid Build Coastguard Worker instance. 48*58e6ee5fSAndroid Build Coastguard Worker 49*58e6ee5fSAndroid Build Coastguard Worker*-B* 'buffer-name':: 50*58e6ee5fSAndroid Build Coastguard Worker If the kernel supports multiple buffers, this will reset the trace for 51*58e6ee5fSAndroid Build Coastguard Worker only the given buffer. It does not affect any other buffer. This may be 52*58e6ee5fSAndroid Build Coastguard Worker used multiple times to specify different buffers. The top level buffer 53*58e6ee5fSAndroid Build Coastguard Worker will not be reset if this option is given (unless the *-t* option is 54*58e6ee5fSAndroid Build Coastguard Worker also supplied). 55*58e6ee5fSAndroid Build Coastguard Worker 56*58e6ee5fSAndroid Build Coastguard Worker*-a*:: 57*58e6ee5fSAndroid Build Coastguard Worker Reset the trace for all existing buffer instances. When this option 58*58e6ee5fSAndroid Build Coastguard Worker is used, the top level instance will not be reset unless *-t* is given. 59*58e6ee5fSAndroid Build Coastguard Worker 60*58e6ee5fSAndroid Build Coastguard Worker*-d*:: 61*58e6ee5fSAndroid Build Coastguard Worker This option deletes the instance buffer(s) specified by the most recently 62*58e6ee5fSAndroid Build Coastguard Worker preceding *-B* or *-a* option. Because the top-level instance buffer 63*58e6ee5fSAndroid Build Coastguard Worker cannot be deleted, it is invalid to use this immediatly following *-t* or 64*58e6ee5fSAndroid Build Coastguard Worker prior to any *-B* or *-a* option on the command line. 65*58e6ee5fSAndroid Build Coastguard Worker 66*58e6ee5fSAndroid Build Coastguard Worker*-t*:: 67*58e6ee5fSAndroid Build Coastguard Worker Resets the top level instance buffer. Without the *-B* or *-a* option 68*58e6ee5fSAndroid Build Coastguard Worker this is the same as the default. But if *-B* or *-a* is used, this is 69*58e6ee5fSAndroid Build Coastguard Worker required if the top level instance buffer should also be reset. 70*58e6ee5fSAndroid Build Coastguard Worker 71*58e6ee5fSAndroid Build Coastguard WorkerEXAMPLES 72*58e6ee5fSAndroid Build Coastguard Worker-------- 73*58e6ee5fSAndroid Build Coastguard Worker 74*58e6ee5fSAndroid Build Coastguard WorkerReset tracing for instance-one and set its per-cpu buffer size to 4096kb. 75*58e6ee5fSAndroid Build Coastguard WorkerAlso deletes instance-two. The top level instance and any other instances 76*58e6ee5fSAndroid Build Coastguard Workerremain unaffected: 77*58e6ee5fSAndroid Build Coastguard Worker 78*58e6ee5fSAndroid Build Coastguard Worker trace-cmd reset -B instance-one -b 4096 -B instance-two -d 79*58e6ee5fSAndroid Build Coastguard Worker 80*58e6ee5fSAndroid Build Coastguard WorkerDelete all instance buffers. Top level instance remains unaffected: 81*58e6ee5fSAndroid Build Coastguard Worker 82*58e6ee5fSAndroid Build Coastguard Worker trace-cmd reset -a -d 83*58e6ee5fSAndroid Build Coastguard Worker 84*58e6ee5fSAndroid Build Coastguard WorkerDelete all instance buffers and also reset the top instance: 85*58e6ee5fSAndroid Build Coastguard Worker 86*58e6ee5fSAndroid Build Coastguard Worker trace-cmd reset -t -a -d 87*58e6ee5fSAndroid Build Coastguard Worker 88*58e6ee5fSAndroid Build Coastguard WorkerInvalid. This command implies an attempt to delete the top instance: 89*58e6ee5fSAndroid Build Coastguard Worker 90*58e6ee5fSAndroid Build Coastguard Worker trace-cmd reset -a -t -d 91*58e6ee5fSAndroid Build Coastguard Worker 92*58e6ee5fSAndroid Build Coastguard WorkerReset the top instance and set its per-cpu buffer size to 1024kb. If any 93*58e6ee5fSAndroid Build Coastguard Workerinstance buffers exist, they will be unaffected: 94*58e6ee5fSAndroid Build Coastguard Worker 95*58e6ee5fSAndroid Build Coastguard Worker trace-cmd reset -b 1024 96*58e6ee5fSAndroid Build Coastguard Worker 97*58e6ee5fSAndroid Build Coastguard Worker 98*58e6ee5fSAndroid Build Coastguard WorkerSEE ALSO 99*58e6ee5fSAndroid Build Coastguard Worker-------- 100*58e6ee5fSAndroid Build Coastguard Workertrace-cmd(1), trace-cmd-record(1), trace-cmd-report(1), trace-cmd-start(1), 101*58e6ee5fSAndroid Build Coastguard Workertrace-cmd-stop(1), trace-cmd-extract(1), trace-cmd-split(1), 102*58e6ee5fSAndroid Build Coastguard Workertrace-cmd-list(1), trace-cmd-listen(1) 103*58e6ee5fSAndroid Build Coastguard Worker 104*58e6ee5fSAndroid Build Coastguard WorkerAUTHOR 105*58e6ee5fSAndroid Build Coastguard Worker------ 106*58e6ee5fSAndroid Build Coastguard WorkerWritten by Steven Rostedt, <[email protected]> 107*58e6ee5fSAndroid Build Coastguard Worker 108*58e6ee5fSAndroid Build Coastguard WorkerRESOURCES 109*58e6ee5fSAndroid Build Coastguard Worker--------- 110*58e6ee5fSAndroid Build Coastguard Workerhttps://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/ 111*58e6ee5fSAndroid Build Coastguard Worker 112*58e6ee5fSAndroid Build Coastguard WorkerCOPYING 113*58e6ee5fSAndroid Build Coastguard Worker------- 114*58e6ee5fSAndroid Build Coastguard WorkerCopyright \(C) 2010 Red Hat, Inc. Free use of this software is granted under 115*58e6ee5fSAndroid Build Coastguard Workerthe terms of the GNU Public License (GPL). 116*58e6ee5fSAndroid Build Coastguard Worker 117