(command.CommandList children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:tracing spids:[202]) op: Equal rhs: {(/sys/kernel/debug/tracing)} spids: [202] ) ] spids: [202] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:flock spids:[205]) op: Equal rhs: {(/var/tmp/.ftrace-lock)} spids: [205] ) ] spids: [205] ) (command.CommandList children: [ (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opt_duration spids:[208]) op: Equal rhs: {(0)} spids: [208] ) ] spids: [208] ) terminator: <Op_Semi ';'> ) (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:duration spids:[212]) op: Equal rhs: (word.EmptyWord) spids: [212] ) ] spids: [212] ) terminator: <Op_Semi ';'> ) (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opt_pid spids:[215]) op: Equal rhs: {(0)} spids: [215] ) ] spids: [215] ) terminator: <Op_Semi ';'> ) (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:pid spids:[219]) op: Equal rhs: (word.EmptyWord) spids: [219] ) ] spids: [219] ) terminator: <Op_Semi ';'> ) (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opt_tid spids:[222]) op: Equal rhs: {(0)} spids: [222] ) ] spids: [222] ) terminator: <Op_Semi ';'> ) (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:tid spids:[226]) op: Equal rhs: (word.EmptyWord) spids: [226] ) ] spids: [226] ) terminator: <Op_Semi ';'> ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:pidtext spids:[229]) op: Equal rhs: (word.EmptyWord) spids: [229] ) ] spids: [229] ) ] ) (command.CommandList children: [ (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opt_headers spids:[231]) op: Equal rhs: {(0)} spids: [231] ) ] spids: [231] ) terminator: <Op_Semi ';'> ) (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opt_proc spids:[235]) op: Equal rhs: {(0)} spids: [235] ) ] spids: [235] ) terminator: <Op_Semi ';'> ) (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opt_time spids:[239]) op: Equal rhs: {(0)} spids: [239] ) ] spids: [239] ) terminator: <Op_Semi ';'> ) (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opt_tail spids:[243]) op: Equal rhs: {(0)} spids: [243] ) ] spids: [243] ) terminator: <Op_Semi ';'> ) (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opt_nodur spids:[247]) op: Equal rhs: {(0)} spids: [247] ) ] spids: [247] ) terminator: <Op_Semi ';'> ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opt_cpu spids:[251]) op: Equal rhs: {(0)} spids: [251] ) ] spids: [251] ) ] ) (command.CommandList children: [ (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opt_max spids:[254]) op: Equal rhs: {(0)} spids: [254] ) ] spids: [254] ) terminator: <Op_Semi ';'> ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:max spids:[258]) op: Equal rhs: {(0)} spids: [258] ) ] spids: [258] ) ] ) (C {(trap)} {(SQ <':'>)} {(INT)} {(QUIT)} {(TERM)} {(PIPE)} {(HUP)}) (command.FuncDef name: usage body: (command.BraceGroup children: [ (command.SimpleCommand words: [{(cat)}] redirects: [ (redir.HereDoc op: <Redir_DLessDash '<<-'> fd: 16777215 here_begin: {(END)} here_end_span_id: 318 stdin_parts: [ ( 'USAGE: funcgraph [-aCDhHPtT] [-m maxdepth] [-p PID] [-L TID] [-d secs] funcstring\n' ) (' -a # all info (same as -HPt)\n') (' -C # measure on-CPU time only\n') (' -d seconds # trace duration, and use buffers\n') (' -D # do not show function duration\n') (' -h # this usage message\n') (' -H # include column headers\n') (' -m maxdepth # max stack depth to show\n') (' -p PID # trace when this pid is on-CPU\n') (' -L TID # trace when this thread is on-CPU\n') (' -P # show process names & PIDs\n') (' -t # show timestamps\n') (' -T # comment function tails\n') (' eg,\n') (' funcgraph do_nanosleep # trace do_nanosleep() and children\n') (' funcgraph -m 3 do_sys_open # trace do_sys_open() to 3 levels only\n') (' funcgraph -a do_sys_open # include timestamps and process name\n') (' funcgraph -p 198 do_sys_open # trace vfs_read() for PID 198 only\n') (' funcgraph -d 1 do_sys_open >out # trace 1 sec, then write to file\n') ('\n') ('See the man page and example file for more info.\n') ] ) (redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)}) ] ) (command.ControlFlow token:<ControlFlow_Exit exit>) ] spids: [285] ) spids: [281 284] ) (command.FuncDef name: warn body: (command.BraceGroup children: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [(C {(eval)} {(DQ ($ VSub_At '$@'))})] negated: T ) terminator: <Op_Semi ';'> ) ] action: [ (command.SimpleCommand words: [ {(echo)} { (DQ ('WARNING: command failed ') (word_part.EscapedLiteralPart token: <Lit_EscapedChar '\\"'> ) ($ VSub_At '$@') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ) } ] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) ] spids: [16777215 343] ) ] spids: [16777215 359] ) ] spids: [329] ) spids: [325 328] ) (command.FuncDef name: end body: (command.BraceGroup children: [ (command.SimpleCommand words: [{(echo)}] redirects: [(redir.Redir op:<Redir_Great '2>'> fd:2 arg_word:{(/dev/null)})] ) (command.SimpleCommand words: [{(echo)} {(DQ ('Ending tracing...'))}] redirects: [(redir.Redir op:<Redir_Great '2>'> fd:2 arg_word:{(/dev/null)})] ) (C {(cd)} {($ VSub_DollarName '$tracing')}) (command.AndOr ops: [Op_DAmp] children: [ (command.DParen child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_time>) spids: [397 402] ) (C {(warn)} {(DQ ('echo nofuncgraph-abstime > trace_options'))}) ] ) (command.AndOr ops: [Op_DAmp] children: [ (command.DParen child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_proc>) spids: [413 418] ) (C {(warn)} {(DQ ('echo nofuncgraph-proc > trace_options'))}) ] ) (command.AndOr ops: [Op_DAmp] children: [ (command.DParen child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_tail>) spids: [429 434] ) (C {(warn)} {(DQ ('echo nofuncgraph-tail > trace_options'))}) ] ) (command.AndOr ops: [Op_DAmp] children: [ (command.DParen child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_nodur>) spids: [445 450] ) (C {(warn)} {(DQ ('echo funcgraph-duration > trace_options'))}) ] ) (command.AndOr ops: [Op_DAmp] children: [ (command.DParen child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_cpu>) spids: [461 466] ) (C {(warn)} {(DQ ('echo sleep-time > trace_options'))}) ] ) (C {(warn)} {(DQ ('echo nop > current_tracer'))}) (command.AndOr ops: [Op_DAmp] children: [ (command.DParen child: (arith_expr.ArithBinary op_id: Arith_DPipe left: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_pid>) right: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_tid>) ) spids: [485 494] ) (C {(warn)} {(DQ ('echo > set_ftrace_pid'))}) ] ) (command.AndOr ops: [Op_DAmp] children: [ (command.DParen child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_max>) spids: [505 510] ) (C {(warn)} {(DQ ('echo 0 > max_graph_depth'))}) ] ) (C {(warn)} {(DQ ('echo > set_graph_function'))}) (C {(warn)} {(DQ ('echo > trace'))}) (command.AndOr ops: [Op_DAmp] children: [ (command.DParen child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike wroteflock>) spids: [536 541] ) (C {(warn)} {(DQ ('rm ') ($ VSub_DollarName '$flock'))}) ] ) ] spids: [368] ) spids: [364 367] ) (command.FuncDef name: die body: (command.BraceGroup children: [ (command.SimpleCommand words: [{(echo)} {(DQ ($ VSub_At '$@'))}] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] spids: [559] ) spids: [555 558] ) (command.FuncDef name: edie body: (command.BraceGroup children: [ (command.SimpleCommand words: [{(echo)} {(DQ ($ VSub_At '$@'))}] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (command.SimpleCommand words: [{(exec)}] redirects: [ (redir.Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(/dev/null)}) (redir.Redir op:<Redir_GreatAnd '2>&'> fd:2 arg_word:{(1)}) ] ) (C {(end)}) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] spids: [583] ) spids: [579 582] ) (command.WhileUntil keyword: <KW_While while> cond: [ (C {(getopts)} {(aCd) (Lit_Other ':') (DhHm) (Lit_Other ':') (p) (Lit_Other ':') (L) (Lit_Other ':') (PtT)} {(opt)} ) ] body: (command.DoGroup children: [ (command.Case to_match: {($ VSub_DollarName '$opt')} arms: [ (case_arm pat_list: [{(a)}] action: [ (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opt_headers spids:[651]) op: Equal rhs: {(1)} spids: [651] ) ] spids: [651] ) terminator: <Op_Semi ';'> ) (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opt_proc spids:[655]) op: Equal rhs: {(1)} spids: [655] ) ] spids: [655] ) terminator: <Op_Semi ';'> ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opt_time spids:[659]) op: Equal rhs: {(1)} spids: [659] ) ] spids: [659] ) ] spids: [648 649 662 16777215] ) (case_arm pat_list: [{(C)}] action: [ (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opt_cpu spids:[668]) op: Equal rhs: {(1)} spids: [668] ) ] spids: [668] ) terminator: <Op_Semi ';'> ) ] spids: [665 666 672 16777215] ) (case_arm pat_list: [{(d)}] action: [ (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opt_duration spids:[678]) op: Equal rhs: {(1)} spids: [678] ) ] spids: [678] ) terminator: <Op_Semi ';'> ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:duration spids:[682]) op: Equal rhs: {($ VSub_DollarName '$OPTARG')} spids: [682] ) ] spids: [682] ) ] spids: [675 676 685 16777215] ) (case_arm pat_list: [{(D)}] action: [ (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opt_nodur spids:[691]) op: Equal rhs: {(1)} spids: [691] ) ] spids: [691] ) terminator: <Op_Semi ';'> ) ] spids: [688 689 695 16777215] ) (case_arm pat_list: [{(m)}] action: [ (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opt_max spids:[701]) op: Equal rhs: {(1)} spids: [701] ) ] spids: [701] ) terminator: <Op_Semi ';'> ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:max spids:[705]) op: Equal rhs: {($ VSub_DollarName '$OPTARG')} spids: [705] ) ] spids: [705] ) ] spids: [698 699 708 16777215] ) (case_arm pat_list: [{(p)}] action: [ (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opt_pid spids:[714]) op: Equal rhs: {(1)} spids: [714] ) ] spids: [714] ) terminator: <Op_Semi ';'> ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:pid spids:[718]) op: Equal rhs: {($ VSub_DollarName '$OPTARG')} spids: [718] ) ] spids: [718] ) ] spids: [711 712 721 16777215] ) (case_arm pat_list: [{(L)}] action: [ (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opt_tid spids:[727]) op: Equal rhs: {(1)} spids: [727] ) ] spids: [727] ) terminator: <Op_Semi ';'> ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:tid spids:[731]) op: Equal rhs: {($ VSub_DollarName '$OPTARG')} spids: [731] ) ] spids: [731] ) ] spids: [724 725 734 16777215] ) (case_arm pat_list: [{(H)}] action: [ (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opt_headers spids:[740]) op: Equal rhs: {(1)} spids: [740] ) ] spids: [740] ) terminator: <Op_Semi ';'> ) ] spids: [737 738 744 16777215] ) (case_arm pat_list: [{(P)}] action: [ (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opt_proc spids:[750]) op: Equal rhs: {(1)} spids: [750] ) ] spids: [750] ) terminator: <Op_Semi ';'> ) ] spids: [747 748 754 16777215] ) (case_arm pat_list: [{(t)}] action: [ (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opt_time spids:[760]) op: Equal rhs: {(1)} spids: [760] ) ] spids: [760] ) terminator: <Op_Semi ';'> ) ] spids: [757 758 764 16777215] ) (case_arm pat_list: [{(T)}] action: [ (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opt_tail spids:[770]) op: Equal rhs: {(1)} spids: [770] ) ] spids: [770] ) terminator: <Op_Semi ';'> ) ] spids: [767 768 774 16777215] ) (case_arm pat_list: [{(h)} {(Lit_Other '?')}] action: [(C {(usage)})] spids: [777 780 784 16777215] ) ] spids: [641 645 787] ) ] spids: [638 789] ) ) (C {(shift)} { (word_part.ArithSubPart anode: (arith_expr.ArithBinary op_id: Arith_Minus left: (arith_expr.ArithWord w:{($ VSub_DollarName '$OPTIND')}) right: (arith_expr.ArithWord w:{(Lit_Digits 1)}) ) spids: [793 802] ) } ) (command.AndOr ops: [Op_DAmp] children: [ (command.DParen child: (arith_expr.ArithBinary op_id: Arith_DEqual left: (arith_expr.ArithWord w:{($ VSub_Pound '$#')}) right: (arith_expr.ArithWord w:{(Lit_Digits 0)}) ) spids: [808 817] ) (C {(usage)}) ] ) (command.AndOr ops: [Op_DAmp] children: [ (command.DParen child: (arith_expr.ArithBinary op_id: Arith_DAmp left: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_pid>) right: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_tid>) ) spids: [823 832] ) (C {(edie)} {(DQ ('ERROR: You can use -p or -L but not both.'))}) ] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:funcs spids:[842]) op: Equal rhs: {(DQ ($ VSub_Number '$1'))} spids: [842] ) ] spids: [842] ) (command.AndOr ops: [Op_DAmp] children: [ (command.DParen child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_pid>) spids: [847 852] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:pidtext spids:[856]) op: Equal rhs: {(DQ (' for PID ') ($ VSub_DollarName '$pid'))} spids: [856] ) ] spids: [856] ) ] ) (command.AndOr ops: [Op_DAmp] children: [ (command.DParen child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_tid>) spids: [862 867] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:pidtext spids:[871]) op: Equal rhs: {(DQ (' for TID ') ($ VSub_DollarName '$tid'))} spids: [871] ) ] spids: [871] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DParen child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_duration>) spids: [879 884] ) terminator: <Op_Semi ';'> ) ] action: [ (C {(echo)} { (DQ ('Tracing ') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_DollarName '$funcs') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_DollarName '$pidtext') (' for ') ($ VSub_DollarName '$duration') (' seconds...') ) } ) ] spids: [16777215 887] ) ] else_action: [ (C {(echo)} { (DQ ('Tracing ') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_DollarName '$funcs') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_DollarName '$pidtext') ('... Ctrl-C to end.') ) } ) ] spids: [903 917] ) (command.AndOr ops: [Op_DPipe] children: [ (C {(cd)} {($ VSub_DollarName '$tracing')}) (C {(die)} { (DQ ('ERROR: accessing tracing. Root user? Kernel has FTRACE?\n') (' debugfs mounted? (mount -t debugfs debugfs /sys/kernel/debug)') ) } ) ] ) (command.AndOr ops: [Op_DAmp] children: [ (command.DBracket expr: (bool_expr.BoolUnary op_id:BoolUnary_e child:{($ VSub_DollarName '$flock')}) ) (C {(die)} { (DQ ('ERROR: ftrace may be in use by PID ') (word_part.CommandSubPart command_list: (command.CommandList children: [(C {(cat)} {($ VSub_DollarName '$flock')})] ) left_token: <Left_CommandSub '$('> spids: [954 958] ) (' ') ($ VSub_DollarName '$flock') ) } ) ] ) (command.AndOr ops: [Op_DPipe] children: [ (command.SimpleCommand words: [{(echo)} {($ VSub_Dollar '$$')}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {($ VSub_DollarName '$flock')} ) ] ) (C {(die)} {(DQ ('ERROR: unable to write ') ($ VSub_DollarName '$flock') (.))}) ] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:wroteflock spids:[981]) op: Equal rhs: {(1)} spids: [981] ) ] spids: [981] ) (C {(sysctl)} {(-q)} {(kernel.ftrace_enabled) (Lit_Other '=') (1)}) (command.SimpleCommand words: [{(read)} {(mode)}] redirects: [(redir.Redir op:<Redir_Less '<'> fd:16777215 arg_word:{(current_tracer)})] ) (command.AndOr ops: [Op_DAmp] children: [ (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobNEqual left: {(DQ ($ VSub_DollarName '$mode'))} right: {(DQ (nop))} ) ) (C {(edie)} {(DQ ('ERROR: ftrace active (current_tracer=') ($ VSub_DollarName '$mode') (')'))}) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DParen child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_max>) spids: [1033 1038] ) terminator: <Op_Semi ';'> ) ] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [ (command.SimpleCommand words: [{(echo)} {($ VSub_DollarName '$max')}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(max_graph_depth)} ) ] ) ] negated: T ) terminator: <Op_Semi ';'> ) ] action: [ (C {(edie)} { (DQ ('ERROR: setting -m ') ($ VSub_DollarName '$max') ('. Older kernel version? Exiting.') ) } ) ] spids: [16777215 1057] ) ] spids: [16777215 1069] ) ] spids: [16777215 1041] ) ] spids: [16777215 1071] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DParen child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_pid>) spids: [1075 1080] ) terminator: <Op_Semi ';'> ) ] action: [ (command.SimpleCommand words: [{(echo)}] redirects: [(redir.Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(set_ftrace_pid)})] ) (command.ForEach iter_name: tid iter_words: [{(/proc/) ($ VSub_DollarName '$pid') (/task/) (Lit_Other '*')}] do_arg_iter: F body: (command.DoGroup children: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [ (command.SimpleCommand words: [ {(echo)} { (word_part.BracedVarSub token: <VSub_Name tid> suffix_op: (suffix_op.StringUnary op_id: VOp1_DPound arg_word: {('*') (Lit_Slash /)} ) spids: [1118 1123] ) } ] redirects: [ (redir.Redir op: <Redir_DGreat '>>'> fd: 16777215 arg_word: {(set_ftrace_pid)} ) ] ) ] negated: T ) terminator: <Op_Semi ';'> ) ] action: [ (C {(edie)} { (DQ ('ERROR: setting -p ') ($ VSub_DollarName '$pid') (' (PID exist?). Exiting.') ) } ) ] spids: [16777215 1130] ) ] spids: [16777215 1142] ) ] spids: [1109 1145] ) spids: [1102 1107] ) ] spids: [16777215 1083] ) ] spids: [16777215 1147] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DParen child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_tid>) spids: [1151 1156] ) terminator: <Op_Semi ';'> ) ] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [ (command.SimpleCommand words: [{(echo)} {($ VSub_DollarName '$tid')}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(set_ftrace_pid)} ) ] ) ] negated: T ) terminator: <Op_Semi ';'> ) ] action: [ (C {(edie)} { (DQ ('ERROR: setting -L ') ($ VSub_DollarName '$tid') (' (TID exist?). Exiting.') ) } ) ] spids: [16777215 1175] ) ] spids: [16777215 1187] ) ] spids: [16777215 1159] ) ] spids: [16777215 1189] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [ (command.SimpleCommand words: [{(echo)}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(set_ftrace_filter)} ) ] ) ] negated: T ) terminator: <Op_Semi ';'> ) ] action: [(C {(edie)} {(DQ ('ERROR: writing to set_ftrace_filter. Exiting.'))})] spids: [16777215 1202] ) ] spids: [16777215 1211] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [ (command.SimpleCommand words: [{(echo)} {(DQ ($ VSub_DollarName '$funcs'))}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(set_graph_function)} ) ] ) ] negated: T ) terminator: <Op_Semi ';'> ) ] action: [ (C {(edie)} { (DQ ('ERROR: enabling ') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_DollarName '$funcs') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ('. Exiting.') ) } ) ] spids: [16777215 1228] ) ] spids: [16777215 1241] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [ (command.SimpleCommand words: [{(echo)} {(function_graph)}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(current_tracer)} ) ] ) ] negated: T ) terminator: <Op_Semi ';'> ) ] action: [ (C {(edie)} { (DQ ('ERROR: setting current_tracer to ') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (function) (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ('. Exiting.') ) } ) ] spids: [16777215 1256] ) ] spids: [16777215 1269] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DParen child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_cpu>) spids: [1273 1278] ) terminator: <Op_Semi ';'> ) ] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [ (command.SimpleCommand words: [{(echo)} {(nosleep-time)}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(trace_options)} ) ] ) ] negated: T ) terminator: <Op_Semi ';'> ) ] action: [(C {(edie)} {(DQ ('ERROR: setting -C (nosleep-time). Exiting.'))})] spids: [16777215 1297] ) ] spids: [16777215 1307] ) ] spids: [16777215 1281] ) ] spids: [16777215 1309] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DParen child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_time>) spids: [1316 1321] ) terminator: <Op_Semi ';'> ) ] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [ (command.SimpleCommand words: [{(echo)} {(funcgraph-abstime)}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(trace_options)} ) ] ) ] negated: T ) terminator: <Op_Semi ';'> ) ] action: [(C {(edie)} {(DQ ('ERROR: setting -t (funcgraph-abstime). Exiting.'))})] spids: [16777215 1340] ) ] spids: [16777215 1350] ) ] spids: [16777215 1324] ) ] spids: [16777215 1352] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DParen child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_proc>) spids: [1356 1361] ) terminator: <Op_Semi ';'> ) ] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [ (command.SimpleCommand words: [{(echo)} {(funcgraph-proc)}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(trace_options)} ) ] ) ] negated: T ) terminator: <Op_Semi ';'> ) ] action: [(C {(edie)} {(DQ ('ERROR: setting -P (funcgraph-proc). Exiting.'))})] spids: [16777215 1380] ) ] spids: [16777215 1390] ) ] spids: [16777215 1364] ) ] spids: [16777215 1392] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DParen child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_tail>) spids: [1396 1401] ) terminator: <Op_Semi ';'> ) ] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [ (command.SimpleCommand words: [{(echo)} {(funcgraph-tail)}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(trace_options)} ) ] ) ] negated: T ) terminator: <Op_Semi ';'> ) ] action: [ (C {(edie)} {(DQ ('ERROR: setting -T (funcgraph-tail). Old kernel? Exiting.'))}) ] spids: [16777215 1420] ) ] spids: [16777215 1430] ) ] spids: [16777215 1404] ) ] spids: [16777215 1432] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DParen child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_nodur>) spids: [1436 1441] ) terminator: <Op_Semi ';'> ) ] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [ (command.SimpleCommand words: [{(echo)} {(nofuncgraph-duration)}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(trace_options)} ) ] ) ] negated: T ) terminator: <Op_Semi ';'> ) ] action: [(C {(edie)} {(DQ ('ERROR: setting -D (nofuncgraph-duration). Exiting.'))})] spids: [16777215 1460] ) ] spids: [16777215 1470] ) ] spids: [16777215 1444] ) ] spids: [16777215 1472] ) (C {(warn)} {(DQ ('echo > trace'))}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DParen child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_duration>) spids: [1486 1491] ) terminator: <Op_Semi ';'> ) ] action: [ (C {(sleep)} {($ VSub_DollarName '$duration')}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DParen child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_headers>) spids: [1504 1509] ) terminator: <Op_Semi ';'> ) ] action: [(C {(cat)} {(trace)})] spids: [16777215 1512] ) ] else_action: [(C {(grep)} {(-v)} {(SQ <'^#'>)} {(trace)})] spids: [1520 1534] ) ] spids: [16777215 1494] ) ] else_action: [ (command.AndOr ops: [Op_DAmp] children: [ (command.DParen child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_headers>) spids: [1543 1548] ) (C {(cat)} {(trace)}) ] ) (C {(cat)} {(trace_pipe)}) ] spids: [1536 1561] ) (C {(end)}) ] )