(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:tracing) op: assign_op.Equal rhs: {(/sys/kernel/debug/tracing)} spids: [157] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:flock) op: assign_op.Equal rhs: {(/var/tmp/.ftrace-lock)} spids: [160] ) ] ) (command.CommandList children: [ (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:opt_duration) op: assign_op.Equal rhs: {(0)} spids: [163] ) ] ) terminator: (Token id:Id.Op_Semi val:';' span_id:165) ) (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:duration) op: assign_op.Equal rhs: (word.Empty) spids: [167] ) ] ) terminator: (Token id:Id.Op_Semi val:';' span_id:168) ) (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:opt_pid) op: assign_op.Equal rhs: {(0)} spids: [170] ) ] ) terminator: (Token id:Id.Op_Semi val:';' span_id:172) ) (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:pid) op: assign_op.Equal rhs: (word.Empty) spids: [174] ) ] ) terminator: (Token id:Id.Op_Semi val:';' span_id:175) ) (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:opt_tid) op: assign_op.Equal rhs: {(0)} spids: [177] ) ] ) terminator: (Token id:Id.Op_Semi val:';' span_id:179) ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:tid) op: assign_op.Equal rhs: (word.Empty) spids: [181] ) ] ) ] ) (command.CommandList children: [ (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:pidtext) op: assign_op.Equal rhs: (word.Empty) spids: [183] ) ] ) terminator: (Token id:Id.Op_Semi val:';' span_id:184) ) (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:opt_headers) op: assign_op.Equal rhs: {(0)} spids: [186] ) ] ) terminator: (Token id:Id.Op_Semi val:';' span_id:188) ) (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:opt_proc) op: assign_op.Equal rhs: {(0)} spids: [190] ) ] ) terminator: (Token id:Id.Op_Semi val:';' span_id:192) ) (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:opt_time) op: assign_op.Equal rhs: {(0)} spids: [194] ) ] ) terminator: (Token id:Id.Op_Semi val:';' span_id:196) ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:opt_cpu) op: assign_op.Equal rhs: {(0)} spids: [198] ) ] ) ] ) (C {(trap)} {(SQ (Token id:Id.Lit_Chars val:':' span_id:204))} {(INT)} {(QUIT)} {(TERM)} {(PIPE)} {(HUP)} ) (command.ShFunction name: usage body: (command.BraceGroup children: [ (command.Simple words: [{(cat)}] redirects: [ (redir.HereDoc op: (Token id:Id.Redir_DLessDash val:'<<-' span_id:230) fd: -1 here_begin: {(END)} here_end_span_id: 251 stdin_parts: [ ( 'USAGE: funcslower [-aChHPt] [-p PID] [-L TID] [-d secs] funcstring latency_us\n' ) (' -a # all info (same as -HPt)\n') (' -C # measure on-CPU time only\n') (' -d seconds # trace duration, and use buffers\n') (' -h # this usage message\n') (' -H # include column headers\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') (' eg,\n') (' funcslower vfs_read 10000 # trace vfs_read() slower than 10 ms\n') ('\n') ('See the man page and example file for more info.\n') ] ) (redir.Redir op: (Token id:Id.Redir_GreatAnd val:'>&' span_id:233) fd: -1 arg_word: {(2)} ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Exit val:exit span_id:253) ) ] ) ) (command.ShFunction name: warn body: (command.BraceGroup children: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [(C {(eval)} {(DQ ($ Id.VSub_At '$@'))})] negated: T ) terminator: (Token id:Id.Op_Semi val:';' span_id:274) ) ] action: [ (command.Simple words: [ {(echo)} { (DQ ('WARNING: command failed ') (word_part.EscapedLiteral token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:286) ) ($ Id.VSub_At '$@') (word_part.EscapedLiteral token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:288) ) ) } ] redirects: [ (redir.Redir op: (Token id:Id.Redir_GreatAnd val:'>&' span_id:281) fd: -1 arg_word: {(2)} ) ] ) ] spids: [265 276] ) ] ) ] ) ) (command.ShFunction name: end body: (command.BraceGroup children: [ (command.Simple words: [{(echo)}] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'2>' span_id:310) fd: 2 arg_word: {(/dev/null)} ) ] ) (command.Simple words: [{(echo)} {(DQ ('Ending tracing...'))}] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'2>' span_id:320) fd: 2 arg_word: {(/dev/null)} ) ] ) (C {(cd)} {($ Id.VSub_DollarName '$tracing')}) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DParen child: (arith_expr.VarRef token: (Token id:Id.Lit_ArithVarLike val:opt_time span_id:332) ) ) (C {(warn)} {(DQ ('echo nofuncgraph-abstime > trace_options'))}) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DParen child: (arith_expr.VarRef token: (Token id:Id.Lit_ArithVarLike val:opt_proc span_id:348) ) ) (C {(warn)} {(DQ ('echo nofuncgraph-proc > trace_options'))}) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DParen child: (arith_expr.VarRef token: (Token id:Id.Lit_ArithVarLike val:opt_cpu span_id:364) ) ) (C {(warn)} {(DQ ('echo sleep-time > trace_options'))}) ] ) (C {(warn)} {(DQ ('echo nop > current_tracer'))}) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DParen child: (arith_expr.VarRef token: (Token id:Id.Lit_ArithVarLike val:opt_pid span_id:388) ) ) (C {(warn)} {(DQ ('echo > set_ftrace_pid'))}) ] ) (C {(warn)} {(DQ ('echo > set_ftrace_filter'))}) (C {(warn)} {(DQ ('echo > set_graph_function'))}) (C {(warn)} {(DQ ('echo 0 > tracing_thresh'))}) (C {(warn)} {(DQ ('echo > trace'))}) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DParen child: (arith_expr.VarRef token: (Token id:Id.Lit_ArithVarLike val:wroteflock span_id:433) ) ) (C {(warn)} {(DQ ('rm ') ($ Id.VSub_DollarName '$flock'))}) ] ) ] ) ) (command.ShFunction name: die body: (command.BraceGroup children: [ (command.Simple words: [{(echo)} {(DQ ($ Id.VSub_At '$@'))}] redirects: [ (redir.Redir op: (Token id:Id.Redir_GreatAnd val:'>&' span_id:459) fd: -1 arg_word: {(2)} ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Exit val:exit span_id:467) arg_word: {(1)} ) ] ) ) (command.ShFunction name: edie body: (command.BraceGroup children: [ (command.Simple words: [{(echo)} {(DQ ($ Id.VSub_At '$@'))}] redirects: [ (redir.Redir op: (Token id:Id.Redir_GreatAnd val:'>&' span_id:487) fd: -1 arg_word: {(2)} ) ] ) (command.Simple words: [{(exec)}] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'>' span_id:497) fd: -1 arg_word: {(/dev/null)} ) (redir.Redir op: (Token id:Id.Redir_GreatAnd val:'2>&' span_id:500) fd: 2 arg_word: {(1)} ) ] ) (C {(end)}) (command.ControlFlow token: (Token id:Id.ControlFlow_Exit val:exit span_id:507) arg_word: {(1)} ) ] ) ) (command.WhileUntil keyword: (Token id:Id.KW_While val:while span_id:517) cond: [ (C {(getopts)} {(aCd) (Id.Lit_Other ':') (hHp) (Id.Lit_Other ':') (L) (Id.Lit_Other ':') (Pt)} {(opt)} ) ] body: (command.DoGroup children: [ (command.Case to_match: {($ Id.VSub_DollarName '$opt')} arms: [ (case_arm pat_list: [{(a)}] action: [ (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:opt_headers) op: assign_op.Equal rhs: {(1)} spids: [544] ) ] ) terminator: (Token id:Id.Op_Semi val:';' span_id:546) ) (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:opt_proc) op: assign_op.Equal rhs: {(1)} spids: [548] ) ] ) terminator: (Token id:Id.Op_Semi val:';' span_id:550) ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:opt_time) op: assign_op.Equal rhs: {(1)} spids: [552] ) ] ) ] spids: [541 542 555 -1] ) (case_arm pat_list: [{(C)}] action: [ (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:opt_cpu) op: assign_op.Equal rhs: {(1)} spids: [561] ) ] ) terminator: (Token id:Id.Op_Semi val:';' span_id:563) ) ] spids: [558 559 565 -1] ) (case_arm pat_list: [{(d)}] action: [ (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:opt_duration) op: assign_op.Equal rhs: {(1)} spids: [571] ) ] ) terminator: (Token id:Id.Op_Semi val:';' span_id:573) ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:duration) op: assign_op.Equal rhs: {($ Id.VSub_DollarName '$OPTARG')} spids: [575] ) ] ) ] spids: [568 569 578 -1] ) (case_arm pat_list: [{(p)}] action: [ (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:opt_pid) op: assign_op.Equal rhs: {(1)} spids: [584] ) ] ) terminator: (Token id:Id.Op_Semi val:';' span_id:586) ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:pid) op: assign_op.Equal rhs: {($ Id.VSub_DollarName '$OPTARG')} spids: [588] ) ] ) ] spids: [581 582 591 -1] ) (case_arm pat_list: [{(L)}] action: [ (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:opt_tid) op: assign_op.Equal rhs: {(1)} spids: [597] ) ] ) terminator: (Token id:Id.Op_Semi val:';' span_id:599) ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:tid) op: assign_op.Equal rhs: {($ Id.VSub_DollarName '$OPTARG')} spids: [601] ) ] ) ] spids: [594 595 604 -1] ) (case_arm pat_list: [{(H)}] action: [ (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:opt_headers) op: assign_op.Equal rhs: {(1)} spids: [610] ) ] ) terminator: (Token id:Id.Op_Semi val:';' span_id:612) ) ] spids: [607 608 614 -1] ) (case_arm pat_list: [{(P)}] action: [ (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:opt_proc) op: assign_op.Equal rhs: {(1)} spids: [620] ) ] ) terminator: (Token id:Id.Op_Semi val:';' span_id:622) ) ] spids: [617 618 624 -1] ) (case_arm pat_list: [{(t)}] action: [ (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:opt_time) op: assign_op.Equal rhs: {(1)} spids: [630] ) ] ) terminator: (Token id:Id.Op_Semi val:';' span_id:632) ) ] spids: [627 628 634 -1] ) (case_arm pat_list: [{(h)} {(Id.Lit_QMark '?')}] action: [(C {(usage)})] spids: [637 640 644 -1] ) ] ) ] ) ) (C {(shift)} { (word_part.ArithSub anode: (arith_expr.Binary op_id: Id.Arith_Minus left: (arith_expr.ArithWord w:{($ Id.VSub_DollarName '$OPTIND')}) right: (arith_expr.ArithWord w:{(Id.Lit_Digits 1)}) ) ) } ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DParen child: (arith_expr.Binary op_id: Id.Arith_Less left: (arith_expr.ArithWord w:{($ Id.VSub_Pound '$#')}) right: (arith_expr.ArithWord w:{(Id.Lit_Digits 2)}) ) ) (C {(usage)}) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DParen child: (arith_expr.Binary op_id: Id.Arith_DAmp left: (arith_expr.VarRef token:(Token id:Id.Lit_ArithVarLike val:opt_pid span_id:685)) right: (arith_expr.VarRef token:(Token id:Id.Lit_ArithVarLike val:opt_tid span_id:689)) ) ) (C {(edie)} {(DQ ('ERROR: You can use -p or -L but not both.'))}) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:funcs) op: assign_op.Equal rhs: {(DQ ($ Id.VSub_Number '$1'))} spids: [702] ) ] ) (C {(shift)}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:thresh) op: assign_op.Equal rhs: {($ Id.VSub_Number '$1')} spids: [709] ) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DParen child: (arith_expr.VarRef token:(Token id:Id.Lit_ArithVarLike val:opt_pid span_id:714)) ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:pidtext) op: assign_op.Equal rhs: {(DQ (' for PID ') ($ Id.VSub_DollarName '$pid'))} spids: [721] ) ] ) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DParen child: (arith_expr.VarRef token:(Token id:Id.Lit_ArithVarLike val:opt_tid span_id:729)) ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:pidtext) op: assign_op.Equal rhs: {(DQ (' for TID ') ($ Id.VSub_DollarName '$tid'))} spids: [736] ) ] ) ] ) (C {(printf)} { (DQ ('Tracing ') (word_part.EscapedLiteral token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:746) ) ($ Id.VSub_DollarName '$funcs') (word_part.EscapedLiteral token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:748) ) ($ Id.VSub_DollarName '$pidtext') (' slower than ') ($ Id.VSub_DollarName '$thresh') (' us') ) } ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DParen child: (arith_expr.VarRef token: (Token id:Id.Lit_ArithVarLike val:opt_duration span_id:759) ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:763) ) ] action: [(C {(echo)} {(DQ (' for ') ($ Id.VSub_DollarName '$duration') (' seconds...'))})] spids: [755 765] ) ] else_action: [(C {(echo)} {(DQ ('... Ctrl-C to end.'))})] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DParen child: (arith_expr.VarRef token: (Token id:Id.Lit_ArithVarLike val:opt_duration span_id:795) ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:799) ) ] action: [ (command.AndOr ops: [Id.Op_DAmp Id.Op_DPipe] children: [ (command.DBracket expr: (bool_expr.Unary op_id:Id.BoolUnary_x child:{(/usr/bin/mawk)}) ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:awk) op: assign_op.Equal rhs: {(mawk)} spids: [814] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:awk) op: assign_op.Equal rhs: {(awk)} spids: [819] ) ] ) ] ) ] spids: [791 801] ) ] else_action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Unary op_id:Id.BoolUnary_x child:{(/usr/bin/gawk)}) ) terminator: (Token id:Id.Op_Semi val:';' span_id:838) ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:awk) op: assign_op.Equal rhs: {(gawk)} spids: [843] ) ] ) ] spids: [829 840] ) (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Unary op_id:Id.BoolUnary_x child:{(/usr/bin/mawk)}) ) terminator: (Token id:Id.Op_Semi val:';' span_id:856) ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:awk) op: assign_op.Equal rhs: {(DQ ('mawk -W interactive'))} spids: [861] ) ] ) ] spids: [847 858] ) ] else_action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:awk) op: assign_op.Equal rhs: {(awk)} spids: [870] ) ] ) ] ) ] ) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {(cd)} {($ Id.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: [Id.Op_DAmp] children: [ (command.DBracket expr: (bool_expr.Unary op_id:Id.BoolUnary_e child:{($ Id.VSub_DollarName '$flock')}) ) (C {(die)} { (DQ ('ERROR: ftrace may be in use by PID ') (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:913) command_list: (command.CommandList children: [(C {(cat)} {($ Id.VSub_DollarName '$flock')})] ) ) (' ') ($ Id.VSub_DollarName '$flock') ) } ) ] ) (command.AndOr ops: [Id.Op_DPipe] children: [ (command.Simple words: [{(echo)} {($ Id.VSub_Dollar '$$')}] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'>' span_id:926) fd: -1 arg_word: {($ Id.VSub_DollarName '$flock')} ) ] ) (C {(die)} {(DQ ('ERROR: unable to write ') ($ Id.VSub_DollarName '$flock') (.))}) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:wroteflock) op: assign_op.Equal rhs: {(1)} spids: [940] ) ] ) (C {(sysctl)} {(-q)} {(kernel.ftrace_enabled) (Id.Lit_Equals '=') (1)}) (command.Simple words: [{(read)} {(mode)}] redirects: [ (redir.Redir op: (Token id:Id.Redir_Less val:'<' span_id:962) fd: -1 arg_word: {(current_tracer)} ) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobNEqual left: {(DQ ($ Id.VSub_DollarName '$mode'))} right: {(DQ (nop))} ) ) (C {(edie)} {(DQ ('ERROR: ftrace active (current_tracer=') ($ Id.VSub_DollarName '$mode') (')'))} ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [ (command.Simple words: [{(echo)} {($ Id.VSub_DollarName '$thresh')}] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'>' span_id:998) fd: -1 arg_word: {(tracing_thresh)} ) ] ) ] negated: T ) terminator: (Token id:Id.Op_Semi val:';' span_id:1001) ) ] action: [ (C {(edie)} { (DQ ('ERROR: setting tracing_thresh to ') ($ Id.VSub_DollarName '$thresh') ('. Exiting.') ) } ) ] spids: [990 1003] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DParen child: (arith_expr.VarRef token: (Token id:Id.Lit_ArithVarLike val:opt_pid span_id:1020) ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:1024) ) ] action: [ (command.Simple words: [{(echo)} {(SQ )}] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'>' span_id:1034) fd: -1 arg_word: {(set_ftrace_pid)} ) ] ) (command.ForEach iter_name: tid iter_words: [{(/proc/) ($ Id.VSub_DollarName '$pid') (/task/) (Id.Lit_Star '*')}] do_arg_iter: F body: (command.DoGroup children: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [ (command.Simple words: [ {(echo)} { (braced_var_sub token: (Token id:Id.VSub_Name val:tid span_id:1065) suffix_op: (suffix_op.Unary op_id: Id.VOp1_DPound arg_word: {('*') (Id.Lit_Slash /)} ) ) } ] redirects: [ (redir.Redir op: (Token id:Id.Redir_DGreat val:'>>' span_id:1071) fd: -1 arg_word: {(set_ftrace_pid)} ) ] ) ] negated: T ) terminator: (Token id:Id.Op_Semi val:';' span_id:1074) ) ] action: [ (C {(edie)} { (DQ ('ERROR: setting -p ') ($ Id.VSub_DollarName '$pid') (' (PID exist?). Exiting.') ) } ) ] spids: [1058 1076] ) ] ) ] ) ) ] spids: [1016 1026] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DParen child: (arith_expr.VarRef token: (Token id:Id.Lit_ArithVarLike val:opt_tid span_id:1099) ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:1103) ) ] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [ (command.Simple words: [{(echo)} {($ Id.VSub_DollarName '$tid')}] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'>' span_id:1116) fd: -1 arg_word: {(set_ftrace_pid)} ) ] ) ] negated: T ) terminator: (Token id:Id.Op_Semi val:';' span_id:1119) ) ] action: [ (C {(edie)} { (DQ ('ERROR: setting -L ') ($ Id.VSub_DollarName '$tid') (' (TID exist?). Exiting.') ) } ) ] spids: [1108 1121] ) ] ) ] spids: [1095 1105] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [ (command.Simple words: [{(echo)} {(DQ ($ Id.VSub_DollarName '$funcs'))}] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'>' span_id:1147) fd: -1 arg_word: {(set_ftrace_filter)} ) ] ) ] negated: T ) terminator: (Token id:Id.Op_Semi val:';' span_id:1150) ) ] action: [ (C {(edie)} { (DQ ('ERROR: enabling ') (word_part.EscapedLiteral token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:1159) ) ($ Id.VSub_DollarName '$funcs') (word_part.EscapedLiteral token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:1161) ) (' filter. Function exist? Exiting.') ) } ) ] spids: [1137 1152] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [ (command.Simple words: [{(echo)} {(DQ ($ Id.VSub_DollarName '$funcs'))}] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'>' span_id:1177) fd: -1 arg_word: {(set_graph_function)} ) ] ) ] negated: T ) terminator: (Token id:Id.Op_Semi val:';' span_id:1180) ) ] action: [ (C {(edie)} { (DQ ('ERROR: enabling ') (word_part.EscapedLiteral token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:1189) ) ($ Id.VSub_DollarName '$funcs') (word_part.EscapedLiteral token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:1191) ) (' graph. Exiting.') ) } ) ] spids: [1167 1182] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [ (command.Simple words: [{(echo)} {(function_graph)}] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'>' span_id:1205) fd: -1 arg_word: {(current_tracer)} ) ] ) ] negated: T ) terminator: (Token id:Id.Op_Semi val:';' span_id:1208) ) ] action: [ (C {(edie)} { (DQ ('ERROR: setting current_tracer to ') (word_part.EscapedLiteral token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:1217) ) (function_graph) (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\"' span_id:1219)) ('. Exiting.') ) } ) ] spids: [1197 1210] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DParen child: (arith_expr.VarRef token: (Token id:Id.Lit_ArithVarLike val:opt_cpu span_id:1229) ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:1233) ) ] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [ (command.Simple words: [{(echo)} {(nosleep-time)}] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'>' span_id:1246) fd: -1 arg_word: {(trace_options)} ) ] ) ] negated: T ) terminator: (Token id:Id.Op_Semi val:';' span_id:1249) ) ] action: [(C {(edie)} {(DQ ('ERROR: setting -C (nosleep-time). Exiting.'))})] spids: [1238 1251] ) ] ) ] spids: [1225 1235] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DParen child: (arith_expr.VarRef token: (Token id:Id.Lit_ArithVarLike val:opt_time span_id:1272) ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:1276) ) ] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [ (command.Simple words: [{(echo)} {(funcgraph-abstime)}] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'>' span_id:1289) fd: -1 arg_word: {(trace_options)} ) ] ) ] negated: T ) terminator: (Token id:Id.Op_Semi val:';' span_id:1292) ) ] action: [(C {(edie)} {(DQ ('ERROR: setting -t (funcgraph-abstime). Exiting.'))})] spids: [1281 1294] ) ] ) ] spids: [1268 1278] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DParen child: (arith_expr.VarRef token: (Token id:Id.Lit_ArithVarLike val:opt_proc span_id:1312) ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:1316) ) ] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [ (command.Simple words: [{(echo)} {(funcgraph-proc)}] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'>' span_id:1329) fd: -1 arg_word: {(trace_options)} ) ] ) ] negated: T ) terminator: (Token id:Id.Op_Semi val:';' span_id:1332) ) ] action: [(C {(edie)} {(DQ ('ERROR: setting -P (funcgraph-proc). Exiting.'))})] spids: [1321 1334] ) ] ) ] spids: [1308 1318] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:cat) op: assign_op.Equal rhs: {(cat)} spids: [1352] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DParen child: (arith_expr.VarRef token: (Token id:Id.Lit_ArithVarLike val:opt_proc span_id:1359) ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:1363) ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:cat) op: assign_op.Equal rhs: {($ Id.VSub_DollarName '$awk') (SQ (Token id: Id.Lit_Chars val: ' "/(^ ---|^$)/ || \\$3 == \\"=>\\" { next } { print \\$0 }"' span_id: 1391 ) ) } spids: [1388] ) ] ) ] spids: [1355 1365] ) ] ) (C {(warn)} {(DQ ('echo > trace'))}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DParen child: (arith_expr.VarRef token: (Token id:Id.Lit_ArithVarLike val:opt_duration span_id:1410) ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:1414) ) ] action: [ (C {(sleep)} {($ Id.VSub_DollarName '$duration')}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DParen child: (arith_expr.VarRef token: (Token id:Id.Lit_ArithVarLike val:opt_headers span_id:1428) ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:1432) ) ] action: [(C {($ Id.VSub_DollarName '$cat')} {(trace)})] spids: [1424 1434] ) ] else_action: [ (command.Pipeline children: [ (C {($ Id.VSub_DollarName '$cat')} {(trace)}) (C {(grep)} {(-v)} {(SQ (Token id:Id.Lit_Chars val:'^#' span_id:1456))}) ] negated: F ) ] ) ] spids: [1406 1416] ) ] else_action: [ (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DParen child: (arith_expr.VarRef token: (Token id:Id.Lit_ArithVarLike val:opt_headers span_id:1471) ) ) (C {(cat)} {(trace)}) ] ) (C {(eval)} {($ Id.VSub_DollarName '$cat')} {(trace_pipe)}) ] ) (C {(end)}) ] )