(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: [166]
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:flock)
                  op: assign_op.Equal
                  rhs: {<'/var/tmp/.ftrace-lock'>}
                  spids: [169]
                )
              ]
            )
          terminator: <Id.Op_Semi _>
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:wroteflock)
              op: assign_op.Equal
              rhs: {<0>}
              spids: [173]
            )
          ]
        )
      ]
    )
    (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: [176]
                )
              ]
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:duration)
                  op: assign_op.Equal
                  rhs: (word.Empty)
                  spids: [180]
                )
              ]
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:opt_name)
                  op: assign_op.Equal
                  rhs: {<0>}
                  spids: [183]
                )
              ]
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:name)
                  op: assign_op.Equal
                  rhs: (word.Empty)
                  spids: [187]
                )
              ]
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:opt_time)
                  op: assign_op.Equal
                  rhs: {<0>}
                  spids: [190]
                )
              ]
            )
          terminator: <Id.Op_Semi _>
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:opt_reexec)
              op: assign_op.Equal
              rhs: {<0>}
              spids: [194]
            )
          ]
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:opt_argc)
                  op: assign_op.Equal
                  rhs: {<0>}
                  spids: [197]
                )
              ]
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:argc)
                  op: assign_op.Equal
                  rhs: {<8>}
                  spids: [201]
                )
              ]
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:max_argc)
                  op: assign_op.Equal
                  rhs: {<16>}
                  spids: [205]
                )
              ]
            )
          terminator: <Id.Op_Semi _>
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:ftext)
              op: assign_op.Equal
              rhs: (word.Empty)
              spids: [209]
            )
          ]
        )
      ]
    )
    (C {<trap>} {(SQ <':'>)} {<INT>} {<QUIT>} {<TERM>} {<PIPE>} {<HUP>})
    (command.ShFunction
      name: usage
      body: 
        (BraceGroup
          children: [
            (command.Simple
              words: [{<cat>}]
              redirects: [
                (redir
                  op: <Id.Redir_DLessDash '<<-'>
                  loc: (redir_loc.Fd fd:0)
                  arg: 
                    (redir_param.MultiLine
                      here_begin: {<END>}
                      here_end_span_id: 267
                      stdin_parts: [
                        <'USAGE: execsnoop [-hrt] [-a argc] [-d secs] [name]\n'>
                        <'                 -d seconds      # trace duration, and use buffers\n'>
                        <'                 -a argc         # max args to show (default 8)\n'>
                        <'                 -r              # include re-execs\n'>
                        <'                 -t              # include time (seconds)\n'>
                        <'                 -h              # this usage message\n'>
                        <'                 name            # process name to match (REs allowed)\n'>
                        <'  eg,\n'>
                        <'       execsnoop                 # watch exec()s live (unbuffered)\n'>
                        <'       execsnoop -d 1            # trace 1 sec (buffered)\n'>
                        <'       execsnoop grep            # trace process names containing grep\n'>
                        <'       execsnoop \'log'>
                        <Id.Lit_Other '$'>
                        <'\'          # filenames ending in '>
                        <Id.Right_DoubleQuote '"'>
                        <log>
                        <Id.Right_DoubleQuote '"'>
                        <'\n'>
                        <'\n'>
                        <'See the man page and example file for more info.\n'>
                      ]
                    )
                )
                (redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})
              ]
              do_fork: T
            )
            (command.ControlFlow token:<Id.ControlFlow_Exit exit>)
          ]
        )
    )
    (command.ShFunction
      name: warn
      body: 
        (BraceGroup
          children: [
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.Pipeline
                          children: [(C {<eval>} {(DQ ($ Id.VSub_At '$@'))})]
                          negated: T
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                  action: [
                    (command.Simple
                      words: [
                        {<echo>}
                        {
                          (DQ <'WARNING: command failed '> 
                            (word_part.EscapedLiteral
                              token: <Id.Lit_EscapedChar '\\"'>
                            ) ($ Id.VSub_At '$@') (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>)
                          )
                        }
                      ]
                      redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
                      do_fork: T
                    )
                  ]
                  spids: [281 292]
                )
              ]
            )
          ]
        )
    )
    (command.ShFunction
      name: end
      body: 
        (BraceGroup
          children: [
            (command.Simple
              words: [{<echo>}]
              redirects: [(redir op:<Id.Redir_Great '2>'> loc:(redir_loc.Fd fd:2) arg:{<'/dev/null'>})]
              do_fork: T
            )
            (command.Simple
              words: [{<echo>} {(DQ <'Ending tracing...'>)}]
              redirects: [(redir op:<Id.Redir_Great '2>'> loc:(redir_loc.Fd fd:2) arg:{<'/dev/null'>})]
              do_fork: T
            )
            (C {<cd>} {($ Id.VSub_DollarName '$tracing')})
            (C {<warn>} {(DQ <'echo 0 > events/kprobes/'> ($ Id.VSub_DollarName '$kname') <'/enable'>)})
            (C {<warn>} {(DQ <'echo 0 > events/sched/sched_process_fork/enable'>)})
            (C {<warn>} {(DQ <'echo -:'> ($ Id.VSub_DollarName '$kname') <' >> kprobe_events'>)})
            (C {<warn>} {(DQ <'echo > trace'>)})
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (command.DParen child:<Id.Lit_ArithVarLike wroteflock>)
                (C {<warn>} {(DQ <'rm '> ($ Id.VSub_DollarName '$flock'))})
              ]
            )
          ]
        )
    )
    (command.ShFunction
      name: die
      body: 
        (BraceGroup
          children: [
            (command.Simple
              words: [{<echo>} {(DQ ($ Id.VSub_At '$@'))}]
              redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
              do_fork: T
            )
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
        )
    )
    (command.ShFunction
      name: edie
      body: 
        (BraceGroup
          children: [
            (command.Simple
              words: [{<echo>} {(DQ ($ Id.VSub_At '$@'))}]
              redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
              do_fork: T
            )
            (command.Simple
              words: [{<exec>}]
              redirects: [
                (redir
                  op: <Id.Redir_Great '>'>
                  loc: (redir_loc.Fd fd:1)
                  arg: {<'/dev/null'>}
                )
                (redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>})
              ]
              do_fork: T
            )
            (C {<end>})
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
        )
    )
    (command.WhileUntil
      keyword: <Id.KW_While while>
      cond: [(C {<getopts>} {<a> <Id.Lit_Colon ':'> <d> <Id.Lit_Colon ':'> <hrt>} {<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_argc)
                              op: assign_op.Equal
                              rhs: {<1>}
                              spids: [488]
                            )
                          ]
                        )
                      terminator: <Id.Op_Semi _>
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:argc)
                          op: assign_op.Equal
                          rhs: {($ Id.VSub_DollarName '$OPTARG')}
                          spids: [492]
                        )
                      ]
                    )
                  ]
                  spids: [485 486 495 -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: [501]
                            )
                          ]
                        )
                      terminator: <Id.Op_Semi _>
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:duration)
                          op: assign_op.Equal
                          rhs: {($ Id.VSub_DollarName '$OPTARG')}
                          spids: [505]
                        )
                      ]
                    )
                  ]
                  spids: [498 499 508 -1]
                )
                (case_arm
                  pat_list: [{<r>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:opt_reexec)
                          op: assign_op.Equal
                          rhs: {<1>}
                          spids: [514]
                        )
                      ]
                    )
                  ]
                  spids: [511 512 517 -1]
                )
                (case_arm
                  pat_list: [{<t>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:opt_time)
                          op: assign_op.Equal
                          rhs: {<1>}
                          spids: [523]
                        )
                      ]
                    )
                  ]
                  spids: [520 521 526 -1]
                )
                (case_arm
                  pat_list: [{<h>} {<Id.Lit_QMark '?'>}]
                  action: [(C {<usage>})]
                  spids: [529 532 536 -1]
                )
              ]
            )
          ]
        )
    )
    (C {<shift>} 
      {
        (word_part.ArithSub
          anode: 
            (arith_expr.Binary
              op_id: Id.Arith_Minus
              left: {($ Id.VSub_DollarName '$OPTIND')}
              right: {<Id.Lit_Digits 1>}
            )
        )
      }
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: (command.DParen child:{($ Id.VSub_Pound '$#')})
              terminator: <Id.Op_Semi _>
            )
          ]
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:opt_name)
                  op: assign_op.Equal
                  rhs: {<1>}
                  spids: [569]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:name)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_Number '$1')}
                  spids: [573]
                )
              ]
            )
            (C {<shift>})
          ]
          spids: [556 566]
        )
      ]
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [(command.DParen child:{($ Id.VSub_Pound '$#')}) (C {<usage>})]
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (command.DParen
          child: 
            (arith_expr.Binary
              op_id: Id.Arith_DAmp
              left: <Id.Lit_ArithVarLike opt_pid>
              right: <Id.Lit_ArithVarLike opt_name>
            )
        )
        (C {<die>} {(DQ <'ERROR: use either -p or -n.'>)})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (command.DParen child:<Id.Lit_ArithVarLike opt_pid>)
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:ftext)
              op: assign_op.Equal
              rhs: {(DQ <' issued by PID '> ($ Id.VSub_DollarName '$pid'))}
              spids: [624]
            )
          ]
        )
      ]
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (command.DParen child:<Id.Lit_ArithVarLike opt_name>)
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:ftext)
              op: assign_op.Equal
              rhs: 
                {
                  (DQ <' issued by process name '> 
                    (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) ($ Id.VSub_DollarName '$name') (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>)
                  )
                }
              spids: [639]
            )
          ]
        )
      ]
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (command.DParen child:<Id.Lit_ArithVarLike opt_file>)
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:ftext)
              op: assign_op.Equal
              rhs: 
                {
                  (DQ ($ Id.VSub_DollarName '$ftext') <' for filenames containing '> 
                    (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) ($ Id.VSub_DollarName '$file') (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>)
                  )
                }
              spids: [656]
            )
          ]
        )
      ]
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (command.DParen
          child: 
            (arith_expr.Binary
              op_id: Id.Arith_DAmp
              left: <Id.Lit_ArithVarLike opt_argc>
              right: 
                (arith_expr.Binary
                  op_id: Id.Arith_Great
                  left: <Id.Lit_ArithVarLike argc>
                  right: <Id.Lit_ArithVarLike max_argc>
                )
            )
        )
        (C {<die>} {(DQ <'ERROR: max -a argc is '> ($ Id.VSub_DollarName '$max_argc') <.>)})
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: (command.DParen child:<Id.Lit_ArithVarLike opt_duration>)
              terminator: <Id.Op_Semi _>
            )
          ]
          action: [
            (C {<echo>} 
              {
                (DQ <'Tracing exec()s'> ($ Id.VSub_DollarName '$ftext') <' for '> 
                  ($ Id.VSub_DollarName '$duration') <' seconds (buffered)...'>
                )
              }
            )
          ]
          spids: [690 700]
        )
      ]
      else_action: [
        (C {<echo>} {(DQ <'Tracing exec()s'> ($ Id.VSub_DollarName '$ftext') <'. Ctrl-C to end.'>)})
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: (command.DParen child:<Id.Lit_ArithVarLike opt_duration>)
              terminator: <Id.Op_Semi _>
            )
          ]
          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: [753]
                    )
                  ]
                )
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:awk)
                      op: assign_op.Equal
                      rhs: {<awk>}
                      spids: [758]
                    )
                  ]
                )
              ]
            )
          ]
          spids: [730 740]
        )
      ]
      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: <Id.Op_Semi _>
                )
              ]
              action: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:awk)
                      op: assign_op.Equal
                      rhs: {<gawk>}
                      spids: [782]
                    )
                  ]
                )
              ]
              spids: [768 779]
            )
            (if_arm
              cond: [
                (command.Sentence
                  child: 
                    (command.DBracket
                      expr: (bool_expr.Unary op_id:Id.BoolUnary_x child:{<'/usr/bin/mawk'>})
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
              action: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:awk)
                      op: assign_op.Equal
                      rhs: {(DQ <'mawk -W interactive'>)}
                      spids: [800]
                    )
                  ]
                )
              ]
              spids: [786 797]
            )
          ]
          else_action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:awk)
                  op: assign_op.Equal
                  rhs: {<awk>}
                  spids: [809]
                )
              ]
            )
          ]
        )
      ]
    )
    (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: <Id.Left_DollarParen '$('>
                child: (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
              op: <Id.Redir_Great '>'>
              loc: (redir_loc.Fd fd:1)
              arg: {($ Id.VSub_DollarName '$flock')}
            )
          ]
          do_fork: T
        )
        (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: [879]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (command.DBracket
                  expr: (bool_expr.Unary op_id:Id.BoolUnary_x child:{<'/usr/bin/getconf'>})
                )
              terminator: <Id.Op_Semi _>
            )
          ]
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:bits)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: (C {<getconf>} {<LONG_BIT>})
                      )
                    }
                  spids: [900]
                )
              ]
            )
          ]
          spids: [886 897]
        )
      ]
      else_action: [
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:bits)
              op: assign_op.Equal
              rhs: {<64>}
              spids: [910]
            )
          ]
        )
        (command.AndOr
          ops: [Id.Op_DAmp]
          children: [
            (command.DBracket
              expr: 
                (bool_expr.Binary
                  op_id: Id.BoolBinary_GlobDEqual
                  left: {(command_sub left_token:<Id.Left_DollarParen '$('> child:(C {<uname>} {<-m>}))}
                  right: {<i> <Id.Lit_Other '*'>}
                )
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:bits)
                  op: assign_op.Equal
                  rhs: {<32>}
                  spids: [931]
                )
              ]
            )
          ]
        )
      ]
    )
    (command.DParen
      child: 
        (arith_expr.BinaryAssign
          op_id: Id.Arith_Equal
          left: <Id.Lit_ArithVarLike offset>
          right: 
            (arith_expr.Binary
              op_id: Id.Arith_Slash
              left: <Id.Lit_ArithVarLike bits>
              right: {<Id.Lit_Digits 8>}
            )
        )
    )
    (command.ShFunction
      name: makeprobe
      body: 
        (BraceGroup
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:func)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_Number '$1')}
                  spids: [958]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:kname)
                  op: assign_op.Equal
                  rhs: {<execsnoop_> ($ Id.VSub_DollarName '$func')}
                  spids: [962]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:kprobe)
                  op: assign_op.Equal
                  rhs: 
                    {(DQ <'p:'> ($ Id.VSub_DollarName '$kname') <' '> ($ Id.VSub_DollarName '$func'))}
                  spids: [967]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:i)
                  op: assign_op.Equal
                  rhs: {<0>}
                  spids: [976]
                )
              ]
            )
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: [
                (command.Sentence
                  child: 
                    (command.DParen
                      child: 
                        (arith_expr.Binary
                          op_id: Id.Arith_Less
                          left: <Id.Lit_ArithVarLike i>
                          right: 
                            (arith_expr.Binary
                              op_id: Id.Arith_Plus
                              left: <Id.Lit_ArithVarLike argc>
                              right: {<Id.Lit_Digits 1>}
                            )
                        )
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
              body: 
                (command.DoGroup
                  children: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:kprobe)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (DQ ($ Id.VSub_DollarName '$kprobe') <' +0(+'> 
                                (word_part.ArithSub
                                  anode: 
                                    (arith_expr.Binary
                                      op_id: Id.Arith_Star
                                      left: <Id.Lit_ArithVarLike i>
                                      right: <Id.Lit_ArithVarLike offset>
                                    )
                                ) <'(%si)):string'>
                              )
                            }
                          spids: [1005]
                        )
                      ]
                    )
                    (command.DParen
                      child: 
                        (arith_expr.UnaryAssign
                          op_id: Id.Node_PostDPlus
                          child: <Id.Lit_ArithVarLike i>
                        )
                    )
                  ]
                )
            )
          ]
        )
    )
    (C {<makeprobe>} {<sys_execve>})
    (command.Simple
      words: [{<echo>} {<nop>}]
      redirects: [(redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<current_tracer>})]
      do_fork: T
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (command.Pipeline
                  children: [
                    (command.Simple
                      words: [{<echo>} {($ Id.VSub_DollarName '$kprobe')}]
                      redirects: [
                        (redir
                          op: <Id.Redir_DGreat '>>'>
                          loc: (redir_loc.Fd fd:1)
                          arg: {<kprobe_events>}
                        )
                        (redir
                          op: <Id.Redir_Great '2>'>
                          loc: (redir_loc.Fd fd:2)
                          arg: {<'/dev/null'>}
                        )
                      ]
                      do_fork: T
                    )
                  ]
                  negated: T
                )
              terminator: <Id.Op_Semi _>
            )
          ]
          action: [
            (C {<makeprobe>} {<stub_execve>})
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.Pipeline
                          children: [
                            (command.Simple
                              words: [{<echo>} {($ Id.VSub_DollarName '$kprobe')}]
                              redirects: [
                                (redir
                                  op: <Id.Redir_DGreat '>>'>
                                  loc: (redir_loc.Fd fd:1)
                                  arg: {<kprobe_events>}
                                )
                                (redir
                                  op: <Id.Redir_Great '2>'>
                                  loc: (redir_loc.Fd fd:2)
                                  arg: {<'/dev/null'>}
                                )
                              ]
                              do_fork: T
                            )
                          ]
                          negated: T
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                  action: [
                    (C {<makeprobe>} {<do_execve>})
                    (command.If
                      arms: [
                        (if_arm
                          cond: [
                            (command.Sentence
                              child: 
                                (command.Pipeline
                                  children: [
                                    (command.Simple
                                      words: [{<echo>} {($ Id.VSub_DollarName '$kprobe')}]
                                      redirects: [
                                        (redir
                                          op: <Id.Redir_DGreat '>>'>
                                          loc: (redir_loc.Fd fd:1)
                                          arg: {<kprobe_events>}
                                        )
                                        (redir
                                          op: <Id.Redir_Great '2>'>
                                          loc: (redir_loc.Fd fd:2)
                                          arg: {<'/dev/null'>}
                                        )
                                      ]
                                      do_fork: T
                                    )
                                  ]
                                  negated: T
                                )
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                          action: [(C {<edie>} {(DQ <'ERROR: adding a kprobe for execve. Exiting.'>)})]
                          spids: [1103 1119]
                        )
                      ]
                    )
                  ]
                  spids: [1079 1095]
                )
              ]
            )
          ]
          spids: [1055 1071]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (command.Pipeline
                  children: [
                    (command.Simple
                      words: [{<echo>} {<1>}]
                      redirects: [
                        (redir
                          op: <Id.Redir_Great '>'>
                          loc: (redir_loc.Fd fd:1)
                          arg: {<'events/kprobes/'> ($ Id.VSub_DollarName '$kname') <'/enable'>}
                        )
                      ]
                      do_fork: T
                    )
                  ]
                  negated: T
                )
              terminator: <Id.Op_Semi _>
            )
          ]
          action: [(C {<edie>} {(DQ <'ERROR: enabling kprobe for execve. Exiting.'>)})]
          spids: [1136 1151]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (command.Pipeline
                  children: [
                    (command.Simple
                      words: [{<echo>} {<1>}]
                      redirects: [
                        (redir
                          op: <Id.Redir_Great '>'>
                          loc: (redir_loc.Fd fd:1)
                          arg: {<'events/sched/sched_process_fork/enable'>}
                        )
                      ]
                      do_fork: T
                    )
                  ]
                  negated: T
                )
              terminator: <Id.Op_Semi _>
            )
          ]
          action: [(C {<edie>} {(DQ <'ERROR: enabling sched:sched_process_fork tracepoint. Exiting.'>)})]
          spids: [1162 1175]
        )
      ]
    )
    (C {<echo>} {(DQ <'Instrumenting '> ($ Id.VSub_DollarName '$func'))})
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (command.DParen child:<Id.Lit_ArithVarLike opt_time>)
        (C {<printf>} {(DQ <'%-16s '>)} {(DQ <TIMEs>)})
      ]
    )
    (C {<printf>} {(DQ <'%6s %6s %s'> <Id.Lit_Other '\\'> <n>)} {(DQ <PID>)} {(DQ <PPID>)} {(DQ <ARGS>)})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:offset)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: <Id.Left_DollarParen '$('>
                child: 
                  (C {($ Id.VSub_DollarName '$awk')} 
                    {
                      (SQ <'BEGIN { o = 0; }\n'> 
                        <'\t$1 == "#" && $2 ~ /TASK/ && NF == 6 { o = 1; }\n'> <'\t$2 ~ /TASK/ { print o; exit }'>
                      )
                    } {<trace>}
                  )
              )
            }
          spids: [1254]
        )
      ]
    )
    (C {<warn>} {(DQ <'echo > trace'>)})
    (command.Pipeline
      children: [
        (command.Subshell
          child: 
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: (command.DParen child:<Id.Lit_ArithVarLike opt_duration>)
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                  action: [
                    (C {<sleep>} {($ Id.VSub_DollarName '$duration')})
                    (C {<cat>} {<-v>} {<trace>})
                  ]
                  spids: [1279 1289]
                )
              ]
              else_action: [(C {<cat>} {<-v>} {<trace_pipe>})]
            )
        )
        (C {($ Id.VSub_DollarName '$awk')} {<-v>} 
          {<Id.Lit_VarLike 'o='> ($ Id.VSub_DollarName '$offset')} {<-v>} {<Id.Lit_VarLike 'opt_name='> ($ Id.VSub_DollarName '$opt_name')} {<-v>} 
          {<Id.Lit_VarLike 'name='> ($ Id.VSub_DollarName '$name')} {<-v>} {<Id.Lit_VarLike 'opt_duration='> ($ Id.VSub_DollarName '$opt_duration')} {<-v>} 
          {<Id.Lit_VarLike 'opt_time='> ($ Id.VSub_DollarName '$opt_time')} {<-v>} {<Id.Lit_VarLike 'kname='> ($ Id.VSub_DollarName '$kname')} {<-v>} 
          {<Id.Lit_VarLike 'opt_reexec='> ($ Id.VSub_DollarName '$opt_reexec')} 
          {
            (SQ <'\n'> <'\t# common fields\n'> <'\t$1 != "#" {\n'> 
              <'\t\t# task name can contain dashes\n'> <'\t\tcomm = pid = $1\n'> <'\t\tsub(/-[0-9][0-9]*/, "", comm)\n'> <'\t\tsub(/.*-/, "", pid)\n'> 
              <'\t}\n'> <'\n'> <'\t$1 != "#" && $(4+o) ~ /sched_process_fork/ {\n'> <'\t\tcpid=$0\n'> 
              <'\t\tsub(/.* child_pid=/, "", cpid)\n'> <'\t\tsub(/ .*/, "", cpid)\n'> <'\t\tgetppid[cpid] = pid\n'> <'\t\tdelete seen[pid]\n'> <'\t}\n'> <'\n'> 
              <'\t$1 != "#" && $(4+o) ~ kname {\n'> <'\t\tif (seen[pid])\n'> <'\t\t\tnext\n'> <'\t\tif (opt_name && comm !~ name)\n'> <'\t\t\tnext\n'> <'\n'> 
              <'\t\t#\n'> <'\t\t# examples:\n'> <'\t\t# ... arg1="/bin/echo" arg2="1" arg3="2" arg4="3" ...\n'> 
              <'\t\t# ... arg1="sleep" arg2="2" arg3=(fault) arg4="" ...\n'> <'\t\t# ... arg1="" arg2=(fault) arg3="" arg4="" ...\n'> 
              <'\t\t# the last example is uncommon, and may be a race.\n'> <'\t\t#\n'> <'\t\tif ($0 ~ /arg1=""/) {\n'> <'\t\t\targs = comm " [?]"\n'> <'\t\t} else {\n'> 
              <'\t\t\targs=$0\n'> <'\t\t\tsub(/ arg[0-9]*=\\(fault\\).*/, "", args)\n'> <'\t\t\tsub(/.*arg1="/, "", args)\n'> 
              <'\t\t\tgsub(/" arg[0-9]*="/, " ", args)\n'> <'\t\t\tsub(/"$/, "", args)\n'> <'\t\t\tif ($0 !~ /\\(fault\\)/)\n'> <'\t\t\t\targs = args " [...]"\n'> 
              <'\t\t}\n'> <'\n'> <'\t\tif (opt_time) {\n'> <'\t\t\ttime = $(3+o); sub(":", "", time)\n'> 
              <'\t\t\tprintf "%-16s ", time\n'> <'\t\t}\n'> <'\t\tprintf "%6s %6d %s\\n", pid, getppid[pid], args\n'> <'\t\tif (!opt_duration)\n'> 
              <'\t\t\tfflush()\n'> <'\t\tif (!opt_reexec) {\n'> <'\t\t\tseen[pid] = 1\n'> <'\t\t\tdelete getppid[pid]\n'> <'\t\t}\n'> 
              <'\t}\n'> <'\n'> <'\t$0 ~ /LOST.*EVENT[S]/ { print "WARNING: " $0 > "/dev/stderr" }\n'>
            )
          }
        )
      ]
      negated: F
    )
    (C {<end>})
  ]
)