1. 19 Sep, 2018 1 commit
    • Mark Drayton's avatar
      biolatency: Fix --disks bpf_probe_read() (#1980) · fc245dfe
      Mark Drayton authored
      bpf_probe_read()'s third argument is no longer rewritten. Instead, use a
      temporary variable (like #1973) to avoid a memory access error.
      
      Before:
      
      ```
      $ sudo biolatency -D 1
      bpf: Failed to load program: Permission denied
      0: (79) r1 = *(u64 *)(r1 +112)
      1: (7b) *(u64 *)(r10 -8) = r1
      [..]
      R1 invalid mem access 'inv'
      
      HINT: The invalid mem access 'inv' error can happen if you try to
      dereference memory without first using bpf_probe_read() to copy it to
      the BPF stack. Sometimes the bpf_probe_read is automatic by the bcc
      rewriter, other times you'll need to be explicit.
      ```
      
      After, works as expected.
      fc245dfe
  2. 20 Jan, 2018 1 commit
    • Nathan Scott's avatar
      Drop use of 'allow_abbrev' as its python 3.5 or later only · 1a197dbf
      Nathan Scott authored
      Use of this argparse constructor keyword is causing regression
      test failures, and its use was nice-to-have - this means the -e
      shorthand for --ebpf will be available iff its not been used in
      another add_argument call.  Neither -e/--ebpf are advertised in
      the usage message anyway.
      1a197dbf
  3. 16 Jan, 2018 2 commits
  4. 27 Jan, 2016 1 commit
    • Brenden Blanco's avatar
      Updates to use cmake GLOB and libbcc.so.0 in python init · 5bd0eb21
      Brenden Blanco authored
      
      In order not to miss some files in the tools and examples source
      directories, use cmake file(GLOB) to collect relevant files. To ease the
      implementation, move all tools to be .py suffixed in the source, but
      sans-suffix in the installation (same as before)
      
      In addition, to prevent future API breakage confusion (though of course
      that may still happen), use CDLL("libbcc.so.0") in the bcc __init__.py.
      
      Fixes: #317
      Signed-off-by: default avatarBrenden Blanco <bblanco@plumgrid.com>
      5bd0eb21
  5. 09 Jan, 2016 1 commit
  6. 25 Sep, 2015 1 commit
  7. 24 Sep, 2015 1 commit
    • Brenden Blanco's avatar
      Add BPF_HISTOGRAM type and print support · f0b15c49
      Brenden Blanco authored
      
      This adds support for a specialized histogram type, which underneath
      maps to an array or a hash table, depending on key type. With no
      arguments, it takes on the type `u64 table[64];`. The other current
      supported key type is `struct { int32|int64 bucket; int32|int64 slot }`.
      
      To print these automatically, print_log2_hist is underneath split into
      two types of printouts, one which prints the single histogram, and
      another which prints a histogram for each unique `bucket` value.
      
      See test_histogram.py for examples.
      
      Fixes: #144
      Signed-off-by: default avatarBrenden Blanco <bblanco@plumgrid.com>
      f0b15c49
  8. 21 Sep, 2015 1 commit