(CommandList
  children: [
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:tracing)
          op: Equal
          rhs: {(/sys/kernel/debug/tracing)}
          spids: [202]
        )
      ]
      spids: [202]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:flock)
          op: Equal
          rhs: {(/var/tmp/.ftrace-lock)}
          spids: [205]
        )
      ]
      spids: [205]
    )
    (Sentence
      child: 
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:opt_duration) op:Equal rhs:{(0)} spids:[208])]
          spids: [208]
        )
      terminator: <Op_Semi ';'>
    )
    (Sentence
      child: 
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:duration) op:Equal rhs:{(EmptyPart)} spids:[212])]
          spids: [212]
        )
      terminator: <Op_Semi ';'>
    )
    (Sentence
      child: 
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:opt_pid) op:Equal rhs:{(0)} spids:[215])]
          spids: [215]
        )
      terminator: <Op_Semi ';'>
    )
    (Sentence
      child: 
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:pid) op:Equal rhs:{(EmptyPart)} spids:[219])]
          spids: [219]
        )
      terminator: <Op_Semi ';'>
    )
    (Sentence
      child: 
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:opt_tid) op:Equal rhs:{(0)} spids:[222])]
          spids: [222]
        )
      terminator: <Op_Semi ';'>
    )
    (Sentence
      child: 
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:tid) op:Equal rhs:{(EmptyPart)} spids:[226])]
          spids: [226]
        )
      terminator: <Op_Semi ';'>
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:pidtext) op:Equal rhs:{(EmptyPart)} spids:[229])]
      spids: [229]
    )
    (Sentence
      child: 
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:opt_headers) op:Equal rhs:{(0)} spids:[231])]
          spids: [231]
        )
      terminator: <Op_Semi ';'>
    )
    (Sentence
      child: 
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:opt_proc) op:Equal rhs:{(0)} spids:[235])]
          spids: [235]
        )
      terminator: <Op_Semi ';'>
    )
    (Sentence
      child: 
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:opt_time) op:Equal rhs:{(0)} spids:[239])]
          spids: [239]
        )
      terminator: <Op_Semi ';'>
    )
    (Sentence
      child: 
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:opt_tail) op:Equal rhs:{(0)} spids:[243])]
          spids: [243]
        )
      terminator: <Op_Semi ';'>
    )
    (Sentence
      child: 
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:opt_nodur) op:Equal rhs:{(0)} spids:[247])]
          spids: [247]
        )
      terminator: <Op_Semi ';'>
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:opt_cpu) op:Equal rhs:{(0)} spids:[251])]
      spids: [251]
    )
    (Sentence
      child: 
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:opt_max) op:Equal rhs:{(0)} spids:[254])]
          spids: [254]
        )
      terminator: <Op_Semi ';'>
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:max) op:Equal rhs:{(0)} spids:[258])]
      spids: [258]
    )
    (C {(trap)} {(SQ <':'>)} {(INT)} {(QUIT)} {(TERM)} {(PIPE)} {(HUP)})
    (FuncDef
      name: usage
      body: 
        (BraceGroup
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op_id: Redir_DLessDash
                  fd: 16777215
                  body: 
                    {
                      (DQ 
                        (
'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')
                      )
                    }
                  do_expansion: True
                  here_end: END
                  was_filled: T
                  spids: [290]
                )
                (Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[293])
              ]
            )
            (ControlFlow token:<ControlFlow_Exit exit>)
          ]
          spids: [285]
        )
      spids: [281 284]
    )
    (FuncDef
      name: warn
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: (Pipeline children:[(C {(eval)} {(DQ ($ VSub_At '$@'))})] negated:T)
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (SimpleCommand
                      words: [
                        {(echo)}
                        {
                          (DQ ('WARNING: command failed ') 
                            (EscapedLiteralPart
                              token: <Lit_EscapedChar '\\"'>
                            ) ($ VSub_At '$@') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>)
                          )
                        }
                      ]
                      redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[347])]
                    )
                  ]
                  spids: [16777215 342]
                )
              ]
              spids: [16777215 358]
            )
          ]
          spids: [328]
        )
      spids: [324 327]
    )
    (FuncDef
      name: end
      body: 
        (BraceGroup
          children: [
            (SimpleCommand
              words: [{(echo)}]
              redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[376])]
            )
            (SimpleCommand
              words: [{(echo)} {(DQ ('Ending tracing...'))}]
              redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[386])]
            )
            (C {(cd)} {($ VSub_Name '$tracing')})
            (AndOr
              ops: [Op_DAmp]
              children: [
                (DParen child:(ArithVarRef name:opt_time))
                (C {(warn)} {(DQ ('echo nofuncgraph-abstime > trace_options'))})
              ]
            )
            (AndOr
              ops: [Op_DAmp]
              children: [
                (DParen child:(ArithVarRef name:opt_proc))
                (C {(warn)} {(DQ ('echo nofuncgraph-proc > trace_options'))})
              ]
            )
            (AndOr
              ops: [Op_DAmp]
              children: [
                (DParen child:(ArithVarRef name:opt_tail))
                (C {(warn)} {(DQ ('echo nofuncgraph-tail > trace_options'))})
              ]
            )
            (AndOr
              ops: [Op_DAmp]
              children: [
                (DParen child:(ArithVarRef name:opt_nodur))
                (C {(warn)} {(DQ ('echo funcgraph-duration > trace_options'))})
              ]
            )
            (AndOr
              ops: [Op_DAmp]
              children: [
                (DParen child:(ArithVarRef name:opt_cpu))
                (C {(warn)} {(DQ ('echo sleep-time > trace_options'))})
              ]
            )
            (C {(warn)} {(DQ ('echo nop > current_tracer'))})
            (AndOr
              ops: [Op_DAmp]
              children: [
                (DParen
                  child: 
                    (ArithBinary
                      op_id: Arith_DPipe
                      left: (ArithVarRef name:opt_pid)
                      right: (ArithVarRef name:opt_tid)
                    )
                )
                (C {(warn)} {(DQ ('echo > set_ftrace_pid'))})
              ]
            )
            (AndOr
              ops: [Op_DAmp]
              children: [
                (DParen child:(ArithVarRef name:opt_max))
                (C {(warn)} {(DQ ('echo 0 > max_graph_depth'))})
              ]
            )
            (C {(warn)} {(DQ ('echo > set_graph_function'))})
            (C {(warn)} {(DQ ('echo > trace'))})
            (AndOr
              ops: [Op_DAmp]
              children: [
                (DParen child:(ArithVarRef name:wroteflock))
                (C {(warn)} {(DQ ('rm ') ($ VSub_Name '$flock'))})
              ]
            )
          ]
          spids: [367]
        )
      spids: [363 366]
    )
    (FuncDef
      name: die
      body: 
        (BraceGroup
          children: [
            (SimpleCommand
              words: [{(echo)} {(DQ ($ VSub_At '$@'))}]
              redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[563])]
            )
            (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
          ]
          spids: [558]
        )
      spids: [554 557]
    )
    (FuncDef
      name: edie
      body: 
        (BraceGroup
          children: [
            (SimpleCommand
              words: [{(echo)} {(DQ ($ VSub_At '$@'))}]
              redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[591])]
            )
            (SimpleCommand
              words: [{(exec)}]
              redirects: [
                (Redir
                  op_id: Redir_Great
                  fd: 16777215
                  arg_word: {(/dev/null)}
                  spids: [601]
                )
                (Redir op_id:Redir_GreatAnd fd:2 arg_word:{(1)} spids:[604])
              ]
            )
            (C {(end)})
            (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
          ]
          spids: [582]
        )
      spids: [578 581]
    )
    (While
      cond: [
        (C {(getopts)} 
          {(aCd) (Lit_Other ':') (DhHm) (Lit_Other ':') (p) (Lit_Other ':') (L) (Lit_Other ':') (PtT)} {(opt)}
        )
      ]
      body: 
        (DoGroup
          children: [
            (Case
              to_match: {($ VSub_Name '$opt')}
              arms: [
                (case_arm
                  pat_list: [{(a)}]
                  action: [
                    (Sentence
                      child: 
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:opt_headers)
                              op: Equal
                              rhs: {(1)}
                              spids: [650]
                            )
                          ]
                          spids: [650]
                        )
                      terminator: <Op_Semi ';'>
                    )
                    (Sentence
                      child: 
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:opt_proc)
                              op: Equal
                              rhs: {(1)}
                              spids: [654]
                            )
                          ]
                          spids: [654]
                        )
                      terminator: <Op_Semi ';'>
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:opt_time)
                          op: Equal
                          rhs: {(1)}
                          spids: [658]
                        )
                      ]
                      spids: [658]
                    )
                  ]
                  spids: [647 648 661 16777215]
                )
                (case_arm
                  pat_list: [{(C)}]
                  action: [
                    (Sentence
                      child: 
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:opt_cpu)
                              op: Equal
                              rhs: {(1)}
                              spids: [667]
                            )
                          ]
                          spids: [667]
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  spids: [664 665 671 16777215]
                )
                (case_arm
                  pat_list: [{(d)}]
                  action: [
                    (Sentence
                      child: 
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:opt_duration)
                              op: Equal
                              rhs: {(1)}
                              spids: [677]
                            )
                          ]
                          spids: [677]
                        )
                      terminator: <Op_Semi ';'>
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:duration)
                          op: Equal
                          rhs: {($ VSub_Name '$OPTARG')}
                          spids: [681]
                        )
                      ]
                      spids: [681]
                    )
                  ]
                  spids: [674 675 684 16777215]
                )
                (case_arm
                  pat_list: [{(D)}]
                  action: [
                    (Sentence
                      child: 
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:opt_nodur)
                              op: Equal
                              rhs: {(1)}
                              spids: [690]
                            )
                          ]
                          spids: [690]
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  spids: [687 688 694 16777215]
                )
                (case_arm
                  pat_list: [{(m)}]
                  action: [
                    (Sentence
                      child: 
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:opt_max)
                              op: Equal
                              rhs: {(1)}
                              spids: [700]
                            )
                          ]
                          spids: [700]
                        )
                      terminator: <Op_Semi ';'>
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:max)
                          op: Equal
                          rhs: {($ VSub_Name '$OPTARG')}
                          spids: [704]
                        )
                      ]
                      spids: [704]
                    )
                  ]
                  spids: [697 698 707 16777215]
                )
                (case_arm
                  pat_list: [{(p)}]
                  action: [
                    (Sentence
                      child: 
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:opt_pid)
                              op: Equal
                              rhs: {(1)}
                              spids: [713]
                            )
                          ]
                          spids: [713]
                        )
                      terminator: <Op_Semi ';'>
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:pid)
                          op: Equal
                          rhs: {($ VSub_Name '$OPTARG')}
                          spids: [717]
                        )
                      ]
                      spids: [717]
                    )
                  ]
                  spids: [710 711 720 16777215]
                )
                (case_arm
                  pat_list: [{(L)}]
                  action: [
                    (Sentence
                      child: 
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:opt_tid)
                              op: Equal
                              rhs: {(1)}
                              spids: [726]
                            )
                          ]
                          spids: [726]
                        )
                      terminator: <Op_Semi ';'>
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:tid)
                          op: Equal
                          rhs: {($ VSub_Name '$OPTARG')}
                          spids: [730]
                        )
                      ]
                      spids: [730]
                    )
                  ]
                  spids: [723 724 733 16777215]
                )
                (case_arm
                  pat_list: [{(H)}]
                  action: [
                    (Sentence
                      child: 
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:opt_headers)
                              op: Equal
                              rhs: {(1)}
                              spids: [739]
                            )
                          ]
                          spids: [739]
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  spids: [736 737 743 16777215]
                )
                (case_arm
                  pat_list: [{(P)}]
                  action: [
                    (Sentence
                      child: 
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:opt_proc)
                              op: Equal
                              rhs: {(1)}
                              spids: [749]
                            )
                          ]
                          spids: [749]
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  spids: [746 747 753 16777215]
                )
                (case_arm
                  pat_list: [{(t)}]
                  action: [
                    (Sentence
                      child: 
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:opt_time)
                              op: Equal
                              rhs: {(1)}
                              spids: [759]
                            )
                          ]
                          spids: [759]
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  spids: [756 757 763 16777215]
                )
                (case_arm
                  pat_list: [{(T)}]
                  action: [
                    (Sentence
                      child: 
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:opt_tail)
                              op: Equal
                              rhs: {(1)}
                              spids: [769]
                            )
                          ]
                          spids: [769]
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  spids: [766 767 773 16777215]
                )
                (case_arm
                  pat_list: [{(h)} {(Lit_Other '?')}]
                  action: [(C {(usage)})]
                  spids: [776 779 783 16777215]
                )
              ]
              spids: [640 644 786]
            )
          ]
          spids: [637 788]
        )
    )
    (C {(shift)} 
      {
        (ArithSubPart
          anode: 
            (ArithBinary
              op_id: Arith_Minus
              left: (ArithWord w:{($ VSub_Name '$OPTIND')})
              right: (ArithWord w:{(Lit_Digits 1)})
            )
          spids: [792 801]
        )
      }
    )
    (AndOr
      ops: [Op_DAmp]
      children: [
        (DParen
          child: 
            (ArithBinary
              op_id: Arith_DEqual
              left: (ArithWord w:{($ VSub_Pound '$#')})
              right: (ArithWord w:{(Lit_Digits 0)})
            )
        )
        (C {(usage)})
      ]
    )
    (AndOr
      ops: [Op_DAmp]
      children: [
        (DParen
          child: 
            (ArithBinary
              op_id: Arith_DAmp
              left: (ArithVarRef name:opt_pid)
              right: (ArithVarRef name:opt_tid)
            )
        )
        (C {(edie)} {(DQ ('ERROR: You can use -p or -L but not both.'))})
      ]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:funcs)
          op: Equal
          rhs: {(DQ ($ VSub_Number '$1'))}
          spids: [841]
        )
      ]
      spids: [841]
    )
    (AndOr
      ops: [Op_DAmp]
      children: [
        (DParen child:(ArithVarRef name:opt_pid))
        (Assignment
          keyword: Assign_None
          pairs: [
            (assign_pair
              lhs: (LhsName name:pidtext)
              op: Equal
              rhs: {(DQ (' for PID ') ($ VSub_Name '$pid'))}
              spids: [855]
            )
          ]
          spids: [855]
        )
      ]
    )
    (AndOr
      ops: [Op_DAmp]
      children: [
        (DParen child:(ArithVarRef name:opt_tid))
        (Assignment
          keyword: Assign_None
          pairs: [
            (assign_pair
              lhs: (LhsName name:pidtext)
              op: Equal
              rhs: {(DQ (' for TID ') ($ VSub_Name '$tid'))}
              spids: [870]
            )
          ]
          spids: [870]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (DParen child:(ArithVarRef name:opt_duration))
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (C {(echo)} 
              {
                (DQ ('Tracing ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) 
                  ($ VSub_Name '$funcs') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_Name '$pidtext') (' for ') 
                  ($ VSub_Name '$duration') (' seconds...')
                )
              }
            )
          ]
          spids: [16777215 886]
        )
      ]
      else_action: [
        (C {(echo)} 
          {
            (DQ ('Tracing ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_Name '$funcs') 
              (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_Name '$pidtext') ('... Ctrl-C to end.')
            )
          }
        )
      ]
      spids: [902 916]
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (C {(cd)} {($ VSub_Name '$tracing')})
        (C {(die)} 
          {
            (DQ ('ERROR: accessing tracing. Root user? Kernel has FTRACE?\n') 
              ('    debugfs mounted? (mount -t debugfs debugfs /sys/kernel/debug)')
            )
          }
        )
      ]
    )
    (AndOr
      ops: [Op_DAmp]
      children: [
        (DBracket expr:(BoolUnary op_id:BoolUnary_e child:{($ VSub_Name '$flock')}))
        (C {(die)} 
          {
            (DQ ('ERROR: ftrace may be in use by PID ') 
              (CommandSubPart
                command_list: (CommandList children:[(C {(cat)} {($ VSub_Name '$flock')})])
                left_token: <Left_CommandSub '$('>
                spids: [953 957]
              ) (' ') ($ VSub_Name '$flock')
            )
          }
        )
      ]
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (SimpleCommand
          words: [{(echo)} {($ VSub_Dollar '$$')}]
          redirects: [
            (Redir
              op_id: Redir_Great
              fd: 16777215
              arg_word: {($ VSub_Name '$flock')}
              spids: [966]
            )
          ]
        )
        (C {(die)} {(DQ ('ERROR: unable to write ') ($ VSub_Name '$flock') (.))})
      ]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:wroteflock) op:Equal rhs:{(1)} spids:[980])]
      spids: [980]
    )
    (C {(sysctl)} {(-q)} {(kernel.ftrace_enabled) (Lit_Other '=') (1)})
    (SimpleCommand
      words: [{(read)} {(mode)}]
      redirects: [(Redir op_id:Redir_Less fd:16777215 arg_word:{(current_tracer)} spids:[1002])]
    )
    (AndOr
      ops: [Op_DAmp]
      children: [
        (DBracket
          expr: 
            (BoolBinary
              op_id: BoolBinary_GlobNEqual
              left: {(DQ ($ VSub_Name '$mode'))}
              right: {(DQ (nop))}
            )
        )
        (C {(edie)} {(DQ ('ERROR: ftrace active (current_tracer=') ($ VSub_Name '$mode') (')'))})
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [(Sentence child:(DParen child:(ArithVarRef name:opt_max)) terminator:<Op_Semi ';'>)]
          action: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (Pipeline
                          children: [
                            (SimpleCommand
                              words: [{(echo)} {($ VSub_Name '$max')}]
                              redirects: [
                                (Redir
                                  op_id: Redir_Great
                                  fd: 16777215
                                  arg_word: {(max_graph_depth)}
                                  spids: [1051]
                                )
                              ]
                            )
                          ]
                          negated: T
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (C {(edie)} 
                      {
                        (DQ ('ERROR: setting -m ') ($ VSub_Name '$max') 
                          ('. Older kernel version? Exiting.')
                        )
                      }
                    )
                  ]
                  spids: [16777215 1056]
                )
              ]
              spids: [16777215 1068]
            )
          ]
          spids: [16777215 1040]
        )
      ]
      spids: [16777215 1070]
    )
    (If
      arms: [
        (if_arm
          cond: [(Sentence child:(DParen child:(ArithVarRef name:opt_pid)) terminator:<Op_Semi ';'>)]
          action: [
            (SimpleCommand
              words: [{(echo)}]
              redirects: [
                (Redir
                  op_id: Redir_Great
                  fd: 16777215
                  arg_word: {(set_ftrace_pid)}
                  spids: [1087]
                )
              ]
            )
            (ForEach
              iter_name: tid
              iter_words: [{(/proc/) ($ VSub_Name '$pid') (/task/) (Lit_Other '*')}]
              do_arg_iter: F
              body: 
                (DoGroup
                  children: [
                    (If
                      arms: [
                        (if_arm
                          cond: [
                            (Sentence
                              child: 
                                (Pipeline
                                  children: [
                                    (SimpleCommand
                                      words: [
                                        {(echo)}
                                        {
                                          (BracedVarSub
                                            token: <VSub_Name tid>
                                            suffix_op: 
                                              (StringUnary
                                                op_id: VOp1_DPound
                                                arg_word: {('*') (Lit_Slash /)}
                                              )
                                            spids: [1117 1122]
                                          )
                                        }
                                      ]
                                      redirects: [
                                        (Redir
                                          op_id: Redir_DGreat
                                          fd: 16777215
                                          arg_word: {(set_ftrace_pid)}
                                          spids: [1124]
                                        )
                                      ]
                                    )
                                  ]
                                  negated: T
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (C {(edie)} 
                              {
                                (DQ ('ERROR: setting -p ') ($ VSub_Name '$pid') 
                                  (' (PID exist?). Exiting.')
                                )
                              }
                            )
                          ]
                          spids: [16777215 1129]
                        )
                      ]
                      spids: [16777215 1141]
                    )
                  ]
                  spids: [1108 1144]
                )
              spids: [1101 1106]
            )
          ]
          spids: [16777215 1082]
        )
      ]
      spids: [16777215 1146]
    )
    (If
      arms: [
        (if_arm
          cond: [(Sentence child:(DParen child:(ArithVarRef name:opt_tid)) terminator:<Op_Semi ';'>)]
          action: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (Pipeline
                          children: [
                            (SimpleCommand
                              words: [{(echo)} {($ VSub_Name '$tid')}]
                              redirects: [
                                (Redir
                                  op_id: Redir_Great
                                  fd: 16777215
                                  arg_word: {(set_ftrace_pid)}
                                  spids: [1169]
                                )
                              ]
                            )
                          ]
                          negated: T
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (C {(edie)} 
                      {(DQ ('ERROR: setting -L ') ($ VSub_Name '$tid') (' (TID exist?). Exiting.'))}
                    )
                  ]
                  spids: [16777215 1174]
                )
              ]
              spids: [16777215 1186]
            )
          ]
          spids: [16777215 1158]
        )
      ]
      spids: [16777215 1188]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (Pipeline
                  children: [
                    (SimpleCommand
                      words: [{(echo)}]
                      redirects: [
                        (Redir
                          op_id: Redir_Great
                          fd: 16777215
                          arg_word: {(set_ftrace_filter)}
                          spids: [1196]
                        )
                      ]
                    )
                  ]
                  negated: T
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [(C {(edie)} {(DQ ('ERROR: writing to set_ftrace_filter. Exiting.'))})]
          spids: [16777215 1201]
        )
      ]
      spids: [16777215 1210]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (Pipeline
                  children: [
                    (SimpleCommand
                      words: [{(echo)} {(DQ ($ VSub_Name '$funcs'))}]
                      redirects: [
                        (Redir
                          op_id: Redir_Great
                          fd: 16777215
                          arg_word: {(set_graph_function)}
                          spids: [1222]
                        )
                      ]
                    )
                  ]
                  negated: T
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (C {(edie)} 
              {
                (DQ ('ERROR: enabling ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) 
                  ($ VSub_Name '$funcs') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ('. Exiting.')
                )
              }
            )
          ]
          spids: [16777215 1227]
        )
      ]
      spids: [16777215 1240]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (Pipeline
                  children: [
                    (SimpleCommand
                      words: [{(echo)} {(function_graph)}]
                      redirects: [
                        (Redir
                          op_id: Redir_Great
                          fd: 16777215
                          arg_word: {(current_tracer)}
                          spids: [1250]
                        )
                      ]
                    )
                  ]
                  negated: T
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (C {(edie)} 
              {
                (DQ ('ERROR: setting current_tracer to ') 
                  (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (function) (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ('. Exiting.')
                )
              }
            )
          ]
          spids: [16777215 1255]
        )
      ]
      spids: [16777215 1268]
    )
    (If
      arms: [
        (if_arm
          cond: [(Sentence child:(DParen child:(ArithVarRef name:opt_cpu)) terminator:<Op_Semi ';'>)]
          action: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (Pipeline
                          children: [
                            (SimpleCommand
                              words: [{(echo)} {(nosleep-time)}]
                              redirects: [
                                (Redir
                                  op_id: Redir_Great
                                  fd: 16777215
                                  arg_word: {(trace_options)}
                                  spids: [1291]
                                )
                              ]
                            )
                          ]
                          negated: T
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [(C {(edie)} {(DQ ('ERROR: setting -C (nosleep-time). Exiting.'))})]
                  spids: [16777215 1296]
                )
              ]
              spids: [16777215 1306]
            )
          ]
          spids: [16777215 1280]
        )
      ]
      spids: [16777215 1308]
    )
    (If
      arms: [
        (if_arm
          cond: [(Sentence child:(DParen child:(ArithVarRef name:opt_time)) terminator:<Op_Semi ';'>)]
          action: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (Pipeline
                          children: [
                            (SimpleCommand
                              words: [{(echo)} {(funcgraph-abstime)}]
                              redirects: [
                                (Redir
                                  op_id: Redir_Great
                                  fd: 16777215
                                  arg_word: {(trace_options)}
                                  spids: [1334]
                                )
                              ]
                            )
                          ]
                          negated: T
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [(C {(edie)} {(DQ ('ERROR: setting -t (funcgraph-abstime). Exiting.'))})]
                  spids: [16777215 1339]
                )
              ]
              spids: [16777215 1349]
            )
          ]
          spids: [16777215 1323]
        )
      ]
      spids: [16777215 1351]
    )
    (If
      arms: [
        (if_arm
          cond: [(Sentence child:(DParen child:(ArithVarRef name:opt_proc)) terminator:<Op_Semi ';'>)]
          action: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (Pipeline
                          children: [
                            (SimpleCommand
                              words: [{(echo)} {(funcgraph-proc)}]
                              redirects: [
                                (Redir
                                  op_id: Redir_Great
                                  fd: 16777215
                                  arg_word: {(trace_options)}
                                  spids: [1374]
                                )
                              ]
                            )
                          ]
                          negated: T
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [(C {(edie)} {(DQ ('ERROR: setting -P (funcgraph-proc). Exiting.'))})]
                  spids: [16777215 1379]
                )
              ]
              spids: [16777215 1389]
            )
          ]
          spids: [16777215 1363]
        )
      ]
      spids: [16777215 1391]
    )
    (If
      arms: [
        (if_arm
          cond: [(Sentence child:(DParen child:(ArithVarRef name:opt_tail)) terminator:<Op_Semi ';'>)]
          action: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (Pipeline
                          children: [
                            (SimpleCommand
                              words: [{(echo)} {(funcgraph-tail)}]
                              redirects: [
                                (Redir
                                  op_id: Redir_Great
                                  fd: 16777215
                                  arg_word: {(trace_options)}
                                  spids: [1414]
                                )
                              ]
                            )
                          ]
                          negated: T
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (C {(edie)} {(DQ ('ERROR: setting -T (funcgraph-tail). Old kernel? Exiting.'))})
                  ]
                  spids: [16777215 1419]
                )
              ]
              spids: [16777215 1429]
            )
          ]
          spids: [16777215 1403]
        )
      ]
      spids: [16777215 1431]
    )
    (If
      arms: [
        (if_arm
          cond: [(Sentence child:(DParen child:(ArithVarRef name:opt_nodur)) terminator:<Op_Semi ';'>)]
          action: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (Pipeline
                          children: [
                            (SimpleCommand
                              words: [{(echo)} {(nofuncgraph-duration)}]
                              redirects: [
                                (Redir
                                  op_id: Redir_Great
                                  fd: 16777215
                                  arg_word: {(trace_options)}
                                  spids: [1454]
                                )
                              ]
                            )
                          ]
                          negated: T
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [(C {(edie)} {(DQ ('ERROR: setting -D (nofuncgraph-duration). Exiting.'))})]
                  spids: [16777215 1459]
                )
              ]
              spids: [16777215 1469]
            )
          ]
          spids: [16777215 1443]
        )
      ]
      spids: [16777215 1471]
    )
    (C {(warn)} {(DQ ('echo > trace'))})
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (DParen child:(ArithVarRef name:opt_duration))
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (C {(sleep)} {($ VSub_Name '$duration')})
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: (DParen child:(ArithVarRef name:opt_headers))
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [(C {(cat)} {(trace)})]
                  spids: [16777215 1511]
                )
              ]
              else_action: [(C {(grep)} {(-v)} {(SQ <'^#'>)} {(trace)})]
              spids: [1519 1533]
            )
          ]
          spids: [16777215 1493]
        )
      ]
      else_action: [
        (AndOr
          ops: [Op_DAmp]
          children: [(DParen child:(ArithVarRef name:opt_headers)) (C {(cat)} {(trace)})]
        )
        (C {(cat)} {(trace_pipe)})
      ]
      spids: [1535 1560]
    )
    (C {(end)})
  ]
)