(command.CommandList
  children: [
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:opt_buckets spids:[124])
                  op: Equal
                  rhs: {(0)}
                  spids: [124]
                )
              ]
              spids: [124]
            )
          terminator: <Op_Semi ';'>
        )
        (command.Sentence
          child: 
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:buckets spids:[128])
                  op: Equal
                  rhs: (word.EmptyWord)
                  spids: [128]
                )
              ]
              spids: [128]
            )
          terminator: <Op_Semi ';'>
        )
        (command.Sentence
          child: 
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:opt_power spids:[131])
                  op: Equal
                  rhs: {(0)}
                  spids: [131]
                )
              ]
              spids: [131]
            )
          terminator: <Op_Semi ';'>
        )
        (command.Sentence
          child: 
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:power spids:[135])
                  op: Equal
                  rhs: {(4)}
                  spids: [135]
                )
              ]
              spids: [135]
            )
          terminator: <Op_Semi ';'>
        )
        (command.Sentence
          child: 
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:opt_max spids:[139])
                  op: Equal
                  rhs: {(0)}
                  spids: [139]
                )
              ]
              spids: [139]
            )
          terminator: <Op_Semi ';'>
        )
        (command.Assignment
          keyword: Assign_None
          pairs: [
            (assign_pair
              lhs: (lhs_expr.LhsName name:max spids:[143])
              op: Equal
              rhs: 
                {
                  (word_part.ArithSubPart
                    anode: 
                      (arith_expr.ArithBinary
                        op_id: Arith_Star
                        left: (arith_expr.ArithWord w:{(Lit_Digits 1024)})
                        right: (arith_expr.ArithWord w:{(Lit_Digits 1024)})
                      )
                    spids: [144 151]
                  )
                }
              spids: [143]
            )
          ]
          spids: [143]
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:opt_filter spids:[153])
                  op: Equal
                  rhs: {(0)}
                  spids: [153]
                )
              ]
              spids: [153]
            )
          terminator: <Op_Semi ';'>
        )
        (command.Sentence
          child: 
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:filter spids:[157])
                  op: Equal
                  rhs: (word.EmptyWord)
                  spids: [157]
                )
              ]
              spids: [157]
            )
          terminator: <Op_Semi ';'>
        )
        (command.Sentence
          child: 
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:duration spids:[160])
                  op: Equal
                  rhs: {(0)}
                  spids: [160]
                )
              ]
              spids: [160]
            )
          terminator: <Op_Semi ';'>
        )
        (command.Assignment
          keyword: Assign_None
          pairs: [
            (assign_pair
              lhs: (lhs_expr.LhsName name:debug spids:[164])
              op: Equal
              rhs: {(0)}
              spids: [164]
            )
          ]
          spids: [164]
        )
      ]
    )
    (C {(trap)} {(SQ <':'>)} {(INT)} {(QUIT)} {(TERM)} {(PIPE)} {(HUP)})
    (command.FuncDef
      name: usage
      body: 
        (command.BraceGroup
          children: [
            (command.SimpleCommand
              words: [{(cat)}]
              redirects: [
                (redir.HereDoc
                  op: <Redir_DLessDash '<<-'>
                  fd: 16777215
                  here_begin: {(END)}
                  here_end_span_id: 232
                  stdin_parts: [
                    ('USAGE: perf-stat-hist [-h] [-b buckets|-P power] [-m max] [-f filter]\n')
                    ('                      tracepoint variable [seconds]\n')
                    ('                 -b buckets      # specify histogram bucket points\n')
                    ('                 -P power        # power-of (default is 4)\n')
                    ('                 -m max          # max value for power-of\n')
                    ('                 -f filter       # specify a filter \n')
                    ('                 -h              # this usage message\n')
                    ('   eg,\n')
                    ('       perf-stat-hist syscalls:sys_enter_read count 5\n')
                    ('                 # read() request histogram, 5 seconds\n')
                    ('       perf-stat-hist syscalls:sys_exit_read ret 5\n')
                    ('                 # read() return histogram, 5 seconds\n')
                    ('       perf-stat-hist -P 10 syscalls:sys_exit_read ret 5\n')
                    ('                 # ... use power-of-10\n')
                    ('       perf-stat-hist -P 2 -m 1024 syscalls:sys_exit_read ret 5\n')
                    ('                 # ... use power-of-2, max 1024\n')
                    ('       perf-stat-hist -b ')
                    (Right_DoubleQuote '"')
                    ('10 50 100 500')
                    (Right_DoubleQuote '"')
                    (' syscalls:sys_exit_read ret 5\n')
                    ('                 # ... histogram based on these bucket ranges\n')
                    ('       perf-stat-hist -b 10 syscalls:sys_exit_read ret 5\n')
                    ('                 # ... bifurcate by the value 10 (lowest overhead)\n')
                    ("       perf-stat-hist -f 'rwbs == ")
                    (Right_DoubleQuote '"')
                    (WS)
                    (Right_DoubleQuote '"')
                    ("' block:block_rq_complete nr_sector 5\n")
                    ('                 # ... synchronous writes histogram, 5 seconds\n')
                    ('\n')
                    ('See the man page and example file for more info.\n')
                  ]
                )
                (redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})
              ]
            )
            (command.ControlFlow token:<ControlFlow_Exit exit>)
          ]
          spids: [188]
        )
      spids: [184 187]
    )
    (command.FuncDef
      name: die
      body: 
        (command.BraceGroup
          children: [
            (command.SimpleCommand
              words: [{(echo)} {(DQ ($ VSub_At '$@'))}]
              redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})]
            )
            (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
          ]
          spids: [243]
        )
      spids: [239 242]
    )
    (command.WhileUntil
      keyword: <KW_While while>
      cond: [
        (C {(getopts)} 
          {(b) (Lit_Other ':') (hm) (Lit_Other ':') (P) (Lit_Other ':') (f) (Lit_Other ':')} {(opt)}
        )
      ]
      body: 
        (command.DoGroup
          children: [
            (command.Case
              to_match: {($ VSub_DollarName '$opt')}
              arms: [
                (case_arm
                  pat_list: [{(b)}]
                  action: [
                    (command.Sentence
                      child: 
                        (command.Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (lhs_expr.LhsName name:opt_buckets spids:[294])
                              op: Equal
                              rhs: {(1)}
                              spids: [294]
                            )
                          ]
                          spids: [294]
                        )
                      terminator: <Op_Semi ';'>
                    )
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:buckets spids:[298])
                          op: Equal
                          rhs: {(word_part.ArrayLiteralPart words:[{($ VSub_DollarName '$OPTARG')}])}
                          spids: [298]
                        )
                      ]
                      spids: [298]
                    )
                  ]
                  spids: [291 292 303 16777215]
                )
                (case_arm
                  pat_list: [{(P)}]
                  action: [
                    (command.Sentence
                      child: 
                        (command.Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (lhs_expr.LhsName name:opt_power spids:[309])
                              op: Equal
                              rhs: {(1)}
                              spids: [309]
                            )
                          ]
                          spids: [309]
                        )
                      terminator: <Op_Semi ';'>
                    )
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:power spids:[313])
                          op: Equal
                          rhs: {($ VSub_DollarName '$OPTARG')}
                          spids: [313]
                        )
                      ]
                      spids: [313]
                    )
                  ]
                  spids: [306 307 316 16777215]
                )
                (case_arm
                  pat_list: [{(m)}]
                  action: [
                    (command.Sentence
                      child: 
                        (command.Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (lhs_expr.LhsName name:opt_max spids:[322])
                              op: Equal
                              rhs: {(1)}
                              spids: [322]
                            )
                          ]
                          spids: [322]
                        )
                      terminator: <Op_Semi ';'>
                    )
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:max spids:[326])
                          op: Equal
                          rhs: {($ VSub_DollarName '$OPTARG')}
                          spids: [326]
                        )
                      ]
                      spids: [326]
                    )
                  ]
                  spids: [319 320 329 16777215]
                )
                (case_arm
                  pat_list: [{(f)}]
                  action: [
                    (command.Sentence
                      child: 
                        (command.Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (lhs_expr.LhsName name:opt_filter spids:[335])
                              op: Equal
                              rhs: {(1)}
                              spids: [335]
                            )
                          ]
                          spids: [335]
                        )
                      terminator: <Op_Semi ';'>
                    )
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:filter spids:[339])
                          op: Equal
                          rhs: {(DQ ($ VSub_DollarName '$OPTARG') (' && '))}
                          spids: [339]
                        )
                      ]
                      spids: [339]
                    )
                  ]
                  spids: [332 333 345 16777215]
                )
                (case_arm
                  pat_list: [{(h)} {(Lit_Other '?')}]
                  action: [(C {(usage)})]
                  spids: [348 351 355 16777215]
                )
              ]
              spids: [284 288 358]
            )
          ]
          spids: [281 360]
        )
    )
    (C {(shift)} 
      {
        (word_part.ArithSubPart
          anode: 
            (arith_expr.ArithBinary
              op_id: Arith_Minus
              left: (arith_expr.ArithWord w:{($ VSub_DollarName '$OPTIND')})
              right: (arith_expr.ArithWord w:{(Lit_Digits 1)})
            )
          spids: [364 373]
        )
      }
    )
    (command.AndOr
      ops: [Op_DAmp]
      children: [
        (command.DParen
          child: 
            (arith_expr.ArithBinary
              op_id: Arith_Less
              left: (arith_expr.ArithWord w:{($ VSub_Pound '$#')})
              right: (arith_expr.ArithWord w:{(Lit_Digits 2)})
            )
          spids: [375 384]
        )
        (C {(usage)})
      ]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:tpoint spids:[390])
          op: Equal
          rhs: {($ VSub_Number '$1')}
          spids: [390]
        )
      ]
      spids: [390]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:var spids:[396])
          op: Equal
          rhs: {($ VSub_Number '$2')}
          spids: [396]
        )
      ]
      spids: [396]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:duration spids:[402])
          op: Equal
          rhs: {(${ VSub_Number 3)}
          spids: [402]
        )
      ]
      spids: [402]
    )
    (command.AndOr
      ops: [Op_DAmp]
      children: [
        (command.DParen
          child: 
            (arith_expr.ArithBinary
              op_id: Arith_DAmp
              left: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_buckets>)
              right: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_power>)
            )
          spids: [411 420]
        )
        (C {(die)} {(DQ ('ERROR: use either -b or -P'))})
      ]
    )
    (command.AndOr
      ops: [Op_DAmp]
      children: [
        (command.DParen
          child: 
            (arith_expr.ArithBinary
              op_id: Arith_DAmp
              left: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_power>)
              right: 
                (arith_expr.ArithBinary
                  op_id: Arith_Less
                  left: (arith_expr.ArithVarRef token:<Lit_ArithVarLike power>)
                  right: (arith_expr.ArithWord w:{(Lit_Digits 2)})
                )
            )
          spids: [430 443]
        )
        (C {(die)} {(DQ ('ERROR: -P power must be 2 or higher'))})
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Pipeline
              children: [
                (command.SimpleCommand
                  words: [
                    {(grep)}
                    {
                      (DQ ('^') ($ VSub_DollarName '$tpoint') 
                        (word_part.EscapedLiteralPart
                          token: <Lit_EscapedChar '\\$'>
                        )
                      )
                    }
                    {(/sys/kernel/debug/tracing/available_events)}
                  ]
                  redirects: [(redir.Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(/dev/null)})]
                )
              ]
              negated: T
            )
          ]
          action: [
            (command.SimpleCommand
              words: [
                {(echo)}
                {
                  (DQ ('ERROR: tracepoint ') 
                    (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_DollarName '$tpoint') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) 
                    (' not found. Exiting...')
                  )
                }
              ]
              redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})]
            )
            (command.AndOr
              ops: [Op_DAmp]
              children: [
                (command.DBracket
                  expr: 
                    (bool_expr.BoolBinary
                      op_id: BoolBinary_GlobNEqual
                      left: {(DQ ($ VSub_DollarName '$USER'))}
                      right: {(DQ (root))}
                    )
                )
                (command.SimpleCommand
                  words: [{(echo)} {(DQ ('Not root user?'))}]
                  redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})]
                )
              ]
            )
            (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
          ]
          spids: [16777215 475]
        )
      ]
      spids: [16777215 522]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (command.DParen
                  child: 
                    (arith_expr.ArithUnary
                      op_id: Arith_Bang
                      child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_buckets>)
                    )
                  spids: [530 536]
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:b spids:[542])
                  op: Equal
                  rhs: {(0)}
                  spids: [542]
                )
              ]
              spids: [542]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:s spids:[546])
                  op: Equal
                  rhs: {(1)}
                  spids: [546]
                )
              ]
              spids: [546]
            )
            (command.WhileUntil
              keyword: <KW_While while>
              cond: [
                (command.Sentence
                  child: 
                    (command.DParen
                      child: 
                        (arith_expr.ArithBinary
                          op_id: Arith_LessEqual
                          left: (arith_expr.ArithVarRef token:<Lit_ArithVarLike s>)
                          right: (arith_expr.ArithVarRef token:<Lit_ArithVarLike max>)
                        )
                      spids: [552 561]
                    )
                  terminator: <Op_Semi ';'>
                )
              ]
              body: 
                (command.DoGroup
                  children: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:b spids:[567])
                          op: Equal
                          rhs: {(DQ ($ VSub_DollarName '$b') (' ') ($ VSub_DollarName '$s'))}
                          spids: [567]
                        )
                      ]
                      spids: [567]
                    )
                    (command.DParen
                      child: 
                        (arith_expr.BinaryAssign
                          op_id: Arith_StarEqual
                          left: (lhs_expr.LhsName name:s spids:[577])
                          right: (arith_expr.ArithVarRef token:<Lit_ArithVarLike power>)
                        )
                      spids: [575 584]
                    )
                  ]
                  spids: [564 587]
                )
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:buckets spids:[590])
                  op: Equal
                  rhs: {(word_part.ArrayLiteralPart words:[{($ VSub_DollarName '$b')}])}
                  spids: [590]
                )
              ]
              spids: [590]
            )
          ]
          spids: [16777215 539]
        )
      ]
      spids: [16777215 595]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:max spids:[601])
          op: Equal
          rhs: 
            {
              (word_part.BracedVarSub
                token: <VSub_Name buckets>
                bracket_op: 
                  (bracket_op.ArrayIndex
                    expr: 
                      (arith_expr.ArithBinary
                        op_id: Arith_Minus
                        left: 
                          (arith_expr.ArithWord
                            w: 
                              {
                                (word_part.BracedVarSub
                                  token: <VSub_Name buckets>
                                  prefix_op: VSub_Pound
                                  bracket_op: (bracket_op.WholeArray op_id:Lit_At)
                                  spids: [605 611]
                                )
                              }
                          )
                        right: (arith_expr.ArithWord w:{(Lit_Digits 1)})
                      )
                  )
                spids: [602 617]
              )
            }
          spids: [601]
        )
      ]
      spids: [601]
    )
    (command.DParen
      child: 
        (arith_expr.BinaryAssign
          op_id: Arith_Equal
          left: (lhs_expr.LhsName name:max_i spids:[623])
          right: 
            (arith_expr.ArithBinary
              op_id: Arith_Minus
              left: 
                (arith_expr.ArithWord
                  w: 
                    {
                      (word_part.BracedVarSub
                        token: <VSub_Name buckets>
                        prefix_op: VSub_Pound
                        bracket_op: (bracket_op.WholeArray op_id:Arith_Star)
                        spids: [627 633]
                      )
                    }
                )
              right: (arith_expr.ArithWord w:{(Lit_Digits 1)})
            )
        )
      spids: [622 639]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:tpoints spids:[641])
          op: Equal
          rhs: 
            {
              (DQ ('-e ') ($ VSub_DollarName '$tpoint') (' --filter ') 
                (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_DollarName '$filter') (' ') ($ VSub_DollarName '$var') (' < ') 
                (word_part.BracedVarSub
                  token: <VSub_Name buckets>
                  bracket_op: (bracket_op.ArrayIndex expr:(arith_expr.ArithWord w:{(Lit_Digits 0)}))
                  spids: [651 656]
                ) (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>)
              )
            }
          spids: [641]
        )
      ]
      spids: [641]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:awkarray spids:[660])
          op: Equal
          rhs: (word.EmptyWord)
          spids: [660]
        )
      ]
      spids: [660]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(lhs_expr.LhsName name:i spids:[662]) op:Equal rhs:{(0)} spids:[662])]
      spids: [662]
    )
    (command.WhileUntil
      keyword: <KW_While while>
      cond: [
        (command.Sentence
          child: 
            (command.DParen
              child: 
                (arith_expr.ArithBinary
                  op_id: Arith_Less
                  left: (arith_expr.ArithVarRef token:<Lit_ArithVarLike i>)
                  right: (arith_expr.ArithVarRef token:<Lit_ArithVarLike max_i>)
                )
              spids: [667 676]
            )
          terminator: <Op_Semi ';'>
        )
      ]
      body: 
        (command.DoGroup
          children: [
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.DParen
                          child: 
                            (arith_expr.ArithBinary
                              op_id: Arith_DAmp
                              left: (arith_expr.ArithVarRef token:<Lit_ArithVarLike i>)
                              right: 
                                (arith_expr.ArithBinary
                                  op_id: Arith_LessEqual
                                  left: 
                                    (arith_expr.ArithWord
                                      w: 
                                        {
                                          (word_part.BracedVarSub
                                            token: <VSub_Name buckets>
                                            bracket_op: 
                                              (bracket_op.ArrayIndex
                                                expr: 
                                                  (arith_expr.ArithWord
                                                    w: {($ VSub_DollarName '$i')}
                                                  )
                                              )
                                            spids: [690 695]
                                          )
                                        }
                                    )
                                  right: 
                                    (arith_expr.ArithWord
                                      w: 
                                        {
                                          (word_part.BracedVarSub
                                            token: <VSub_Name buckets>
                                            bracket_op: 
                                              (bracket_op.ArrayIndex
                                                expr: 
                                                  (arith_expr.ArithBinary
                                                    op_id: Arith_Minus
                                                    left: 
                                                      (arith_expr.ArithWord
                                                        w: {($ VSub_DollarName '$i')}
                                                      )
                                                    right: (arith_expr.ArithWord w:{(Lit_Digits 1)})
                                                  )
                                              )
                                            spids: [699 708]
                                          )
                                        }
                                    )
                                )
                            )
                          spids: [684 711]
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [(C {(die)} {(DQ ('ERROR: bucket list must increase in size.'))})]
                  spids: [16777215 714]
                )
              ]
              spids: [16777215 724]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:tpoints spids:[727])
                  op: Equal
                  rhs: 
                    {
                      (DQ ($ VSub_DollarName '$tpoints') (' -e ') ($ VSub_DollarName '$tpoint') 
                        (' --filter ') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_DollarName '$filter') (' ') 
                        ($ VSub_DollarName '$var') (' >= ') 
                        (word_part.BracedVarSub
                          token: <VSub_Name buckets>
                          bracket_op: 
                            (bracket_op.ArrayIndex
                              expr: (arith_expr.ArithWord w:{($ VSub_DollarName '$i')})
                            )
                          spids: [738 743]
                        ) (' && ')
                      )
                    }
                  spids: [727]
                )
              ]
              spids: [727]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:tpoints spids:[748])
                  op: Equal
                  rhs: 
                    {
                      (DQ ($ VSub_DollarName '$tpoints') (' ') ($ VSub_DollarName '$var') (' < ') 
                        (word_part.BracedVarSub
                          token: <VSub_Name buckets>
                          bracket_op: 
                            (bracket_op.ArrayIndex
                              expr: 
                                (arith_expr.ArithBinary
                                  op_id: Arith_Plus
                                  left: (arith_expr.ArithWord w:{($ VSub_DollarName '$i')})
                                  right: (arith_expr.ArithWord w:{(Lit_Digits 1)})
                                )
                            )
                          spids: [754 763]
                        ) (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>)
                      )
                    }
                  spids: [748]
                )
              ]
              spids: [748]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:awkarray spids:[768])
                  op: Equal
                  rhs: 
                    {
                      (DQ ($ VSub_DollarName '$awkarray') (' buckets[') ($ VSub_DollarName '$i') (']=') 
                        (word_part.BracedVarSub
                          token: <VSub_Name buckets>
                          bracket_op: 
                            (bracket_op.ArrayIndex
                              expr: (arith_expr.ArithWord w:{($ VSub_DollarName '$i')})
                            )
                          spids: [774 779]
                        ) (';')
                      )
                    }
                  spids: [768]
                )
              ]
              spids: [768]
            )
            (command.DParen
              child: 
                (arith_expr.UnaryAssign
                  op_id: Node_PostDPlus
                  child: (lhs_expr.LhsName name:i spids:[786])
                )
              spids: [784 790]
            )
          ]
          spids: [679 792]
        )
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:awkarray spids:[794])
          op: Equal
          rhs: 
            {
              (DQ ($ VSub_DollarName '$awkarray') (' buckets[') ($ VSub_DollarName '$max_i') (']=') 
                (word_part.BracedVarSub
                  token: <VSub_Name buckets>
                  bracket_op: 
                    (bracket_op.ArrayIndex
                      expr: (arith_expr.ArithWord w:{($ VSub_DollarName '$max_i')})
                    )
                  spids: [800 805]
                ) (';')
              )
            }
          spids: [794]
        )
      ]
      spids: [794]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:tpoints spids:[809])
          op: Equal
          rhs: 
            {
              (DQ ($ VSub_DollarName '$tpoints') (' -e ') ($ VSub_DollarName '$tpoint') (' --filter ') 
                (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_DollarName '$filter') (' ') ($ VSub_DollarName '$var') (' >= ') 
                (word_part.BracedVarSub
                  token: <VSub_Name buckets>
                  bracket_op: 
                    (bracket_op.ArrayIndex
                      expr: (arith_expr.ArithWord w:{($ VSub_DollarName '$max_i')})
                    )
                  spids: [820 825]
                ) (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>)
              )
            }
          spids: [809]
        )
      ]
      spids: [809]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (command.DParen
                  child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike debug>)
                  spids: [832 837]
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (C {(echo)} {(buckets) (Lit_Other ':')} 
              {
                (word_part.BracedVarSub
                  token: <VSub_Name buckets>
                  bracket_op: (bracket_op.WholeArray op_id:Arith_Star)
                  spids: [848 853]
                )
              }
            )
            (C {(echo)} {(tracepoints) (Lit_Other ':')} {($ VSub_DollarName '$tpoints')})
            (C {(echo)} {(awkarray) (Lit_Other ':')} 
              {
                (word_part.BracedVarSub
                  token: <VSub_Name awkarray>
                  bracket_op: (bracket_op.WholeArray op_id:Arith_Star)
                  spids: [869 874]
                )
              }
            )
          ]
          spids: [16777215 840]
        )
      ]
      spids: [16777215 876]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (command.DParen
                  child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike duration>)
                  spids: [884 889]
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:etext spids:[895])
                  op: Equal
                  rhs: {(DQ ('for ') ($ VSub_DollarName '$duration') (' seconds'))}
                  spids: [895]
                )
              ]
              spids: [895]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:cmd spids:[903])
                  op: Equal
                  rhs: {(DQ ('sleep ') ($ VSub_DollarName '$duration'))}
                  spids: [903]
                )
              ]
              spids: [903]
            )
          ]
          spids: [16777215 892]
        )
      ]
      else_action: [
        (command.Assignment
          keyword: Assign_None
          pairs: [
            (assign_pair
              lhs: (lhs_expr.LhsName name:etext spids:[912])
              op: Equal
              rhs: {(DQ ('until Ctrl-C'))}
              spids: [912]
            )
          ]
          spids: [912]
        )
        (command.Assignment
          keyword: Assign_None
          pairs: [
            (assign_pair
              lhs: (lhs_expr.LhsName name:cmd spids:[918])
              op: Equal
              rhs: {(DQ ('sleep 999999'))}
              spids: [918]
            )
          ]
          spids: [918]
        )
      ]
      spids: [909 923]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:p_tpoint spids:[926])
          op: Equal
          rhs: {($ VSub_DollarName '$tpoint')}
          spids: [926]
        )
      ]
      spids: [926]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_DollarName '$filter'))} {(Lit_Other ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:p_tpoint spids:[946])
                  op: Equal
                  rhs: 
                    {
                      (DQ ($ VSub_DollarName '$tpoint') (' (Filter: ') 
                        (word_part.BracedVarSub
                          token: <VSub_Name filter>
                          suffix_op: (suffix_op.StringUnary op_id:VOp1_Percent arg_word:{('????')})
                          spids: [950 954]
                        ) (')')
                      )
                    }
                  spids: [946]
                )
              ]
              spids: [946]
            )
          ]
          spids: [16777215 942]
        )
      ]
      spids: [16777215 958]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (command.DParen
                  child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike opt_buckets>)
                  spids: [963 968]
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (C {(echo)} 
              {
                (DQ ('Tracing ') ($ VSub_DollarName '$p_tpoint') (', specified buckets, ') 
                  ($ VSub_DollarName '$etext') (...)
                )
              }
            )
          ]
          spids: [16777215 971]
        )
      ]
      else_action: [
        (C {(echo)} 
          {
            (DQ ('Tracing ') ($ VSub_DollarName '$p_tpoint') (', power-of-') 
              ($ VSub_DollarName '$power') (', max ') ($ VSub_DollarName '$max') (', ') ($ VSub_DollarName '$etext') (...)
            )
          }
        )
      ]
      spids: [984 1001]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:out spids:[1007])
          op: Equal
          rhs: {(DQ ('-o /dev/stdout'))}
          spids: [1007]
        )
      ]
      spids: [1007]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:stat spids:[1015])
          op: Equal
          rhs: 
            {
              (word_part.CommandSubPart
                command_list: 
                  (command.CommandList
                    children: [
                      (command.SimpleCommand
                        words: [
                          {(eval)}
                          {(perf)}
                          {(stat)}
                          {($ VSub_DollarName '$tpoints')}
                          {(-a)}
                          {($ VSub_DollarName '$out')}
                          {($ VSub_DollarName '$cmd')}
                        ]
                        redirects: [(redir.Redir op:<Redir_GreatAnd '2>&'> fd:2 arg_word:{(1)})]
                      )
                    ]
                  )
                left_token: <Left_CommandSub '$('>
                spids: [1016 1033]
              )
            }
          spids: [1015]
        )
      ]
      spids: [1015]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (command.DParen
                  child: 
                    (arith_expr.ArithBinary
                      op_id: Arith_NEqual
                      left: (arith_expr.ArithWord w:{($ VSub_QMark '$?')})
                      right: (arith_expr.ArithWord w:{(Lit_Digits 0)})
                    )
                  spids: [1037 1046]
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (command.SimpleCommand
              words: [{(echo)} {(DQ ('ERROR running perf:'))}]
              redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})]
            )
            (command.SimpleCommand
              words: [{(echo)} {(DQ ($ VSub_DollarName '$stat'))}]
              redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})]
            )
            (command.ControlFlow token:<ControlFlow_Exit exit>)
          ]
          spids: [16777215 1049]
        )
      ]
      spids: [16777215 1074]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (command.DParen
                  child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike debug>)
                  spids: [1079 1084]
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (C {(echo)} {(raw)} {(output) (Lit_Other ':')})
            (C {(echo)} {(DQ ($ VSub_DollarName '$stat'))})
            (C {(echo)})
          ]
          spids: [16777215 1087]
        )
      ]
      spids: [16777215 1107]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:most spids:[1113])
          op: Equal
          rhs: 
            {
              (word_part.CommandSubPart
                command_list: 
                  (command.CommandList
                    children: [
                      (command.Pipeline
                        children: [
                          (C {(echo)} {(DQ ($ VSub_DollarName '$stat'))})
                          (C {(awk)} {(-v)} {(Lit_VarLike 'tpoint=') ($ VSub_DollarName '$tpoint')} 
                            {
                              (SQ <'\n'> 
                                <'\t$2 == tpoint { gsub(/,/, ""); if ($1 > m) { m = $1 } }\n'> <'\tEND { print m }'>
                              )
                            }
                          )
                        ]
                        negated: F
                      )
                    ]
                  )
                left_token: <Left_CommandSub '$('>
                spids: [1114 1136]
              )
            }
          spids: [1113]
        )
      ]
      spids: [1113]
    )
    (C {(echo)})
    (command.Pipeline
      children: [
        (C {(echo)} {(DQ ($ VSub_DollarName '$stat'))})
        (C {(awk)} {(-v)} {(Lit_VarLike 'tpoint=') ($ VSub_DollarName '$tpoint')} {(-v)} 
          {(Lit_VarLike 'max_i=') ($ VSub_DollarName '$max_i')} {(-v)} {(Lit_VarLike 'most=') ($ VSub_DollarName '$most')} 
          {
            (SQ <'\n'> <'\tfunction star(sval, smax, swidth) {\n'> <'\t\tstars = ""\n'> 
              <'\t\tif (smax == 0) return ""\n'> <'\t\tfor (si = 0; si < (swidth * sval / smax); si++) {\n'> <'\t\t\tstars = stars "#"\n'> <'\t\t}\n'> 
              <'\t\treturn stars\n'> <'\t}\n'> <'\tBEGIN {\n'> <'\t\t'>
            ) (DQ ($ VSub_DollarName '$awkarray')) 
            (SQ <'\n'> <'\t\tprintf("            %-15s: %-8s %s\\n", "Range", "Count",\n'> 
              <'\t\t    "Distribution")\n'> <'\t}\n'> <'\t/Performance counter stats/ { i = -1 }\n'> 
              <'\t# reverse order of rule set is important\n'> <'\t{ ok = 0 }\n'> <'\t$2 == tpoint { num = $1; gsub(/,/, "", num); ok = 1 }\n'> 
              <'\tok && i >= max_i {\n'> <'\t\tprintf("   %10d -> %-10s: %-8s |%-38s|\\n", buckets[i],\n'> 
              <'\t\t    "", num, star(num, most, 38))\n'> <'\t\tnext\n'> <'\t}\n'> <'\tok && i >= 0 && i < max_i {\n'> 
              <'\t\tprintf("   %10d -> %-10d: %-8s |%-38s|\\n", buckets[i],\n'> <'\t\t    buckets[i+1] - 1, num, star(num, most, 38))\n'> <'\t\ti++\n'> <'\t\tnext\n'> <'\t}\n'> 
              <'\tok && i == -1 {\n'> <'\t\tprintf("   %10s -> %-10d: %-8s |%-38s|\\n", "",\n'> 
              <'\t\t    buckets[0] - 1, num, star(num, most, 38))\n'> <'\t\ti++\n'> <'\t}\n'>
            )
          }
        )
      ]
      negated: F
    )
  ]
)