Permalink
Commits on Apr 28, 2017
  1. Merge pull request #1140 from iovisor/llvm_alloca_irbuilder_fix

    frontend/b: fixes for LLVM 4.0 API change
    4ast committed on GitHub Apr 28, 2017
Commits on Apr 27, 2017
  1. frontend/b: fixes for LLVM 4.0 API change

    Upstream LLVM added a new parameter to the AllocaInst constructor, which
    breaks compilation. Fix it by using the IRBuilder method.
    
    Signed-off-by: Brenden Blanco <bblanco@gmail.com>
    drzaeus77 committed Apr 27, 2017
  2. Merge pull request #1129 from palmtenor/nowarning

    Add default -Wno-address-of-packed-membe to Clang loader
    drzaeus77 committed on GitHub Apr 27, 2017
  3. Merge pull request #1135 from palmtenor/unsigned_addr

    Use uintptr_t for addresses in C++ API
    4ast committed on GitHub Apr 27, 2017
Commits on Apr 26, 2017
  1. Merge pull request #1104 from mauriciovasquezbernal/bpf_table_string

    [RFC]: Extend table API with string support
    drzaeus77 committed on GitHub Apr 26, 2017
  2. allow accesing table using strings

    This commit exposes functions to convert between key and value from/to
    strings, additionally it implements the BPFTable class that allows
    accessing tables using strings.
    
    Signed-off-by: Mauricio Vasquez B <mauricio.vasquez@polito.it>
    mauriciovasquezbernal committed Apr 18, 2017
Commits on Apr 21, 2017
  1. test_clang: initialize format string arg on stack

    With local LLVM (4.0ish), inline strings in this test case would
    segfault. Fix the crash by constructing explicitly on the stack.
    
    Signed-off-by: Brenden Blanco <bblanco@gmail.com>
    drzaeus77 committed with goldshtn Apr 21, 2017
  2. Reduce the sslsniff data size slightly to pass verifier

    Possibly due to local LLVM differences, this change was needed for
    sslsniff code to pass the verifier.
    
    Signed-off-by: Brenden Blanco <bblanco@gmail.com>
    drzaeus77 committed with goldshtn Apr 20, 2017
  3. Fix for verifier failure in wakeuptime

    On my system, the manually unrolled stack walker fails the verifier, due
    to what seems to me like an incorrect return statement. Setting bp = 0
    has no effect, seems that the intent was to return 0 instead.
    
    Not sure why others haven't hit this, but the fix contained here seems
    reasonable.
    
    Signed-off-by: Brenden Blanco <bblanco@gmail.com>
    drzaeus77 committed with goldshtn Apr 20, 2017
Commits on Apr 20, 2017
  1. Merge pull request #656 from iovisor/non-static-functions

    Disable non-static function calls
    4ast committed on GitHub Apr 20, 2017
  2. Disable non-static function calls

    Compiled BPF programs must consist of a single contiguous code block,
    meaning trying to call other function entry points (besides the
    kernel-defined helpers) is not possible. The bcc frontend didn't
    explicitly prohibit this, even though the program would fail to
    compile/load. Add an explicit check and error message.
    
    Fixes: #653
    Signed-off-by: Brenden Blanco <bblanco@gmail.com>
    drzaeus77 committed Apr 20, 2017
  3. Sync snapcraft yaml with tools and ensure list is sorted alphabetically

    Minor sorting of the yaml tool list and sync it to the latest
    updates in tools
    
    Signed-off-by: Colin Ian King <colin.king@canonical.com>
    ColinIanKing committed with goldshtn Apr 20, 2017
  4. db*: Print the BPF program prior to loading it (in -v mode)

    Printing the BPF program after loading it means that if there is a
    load error, the program isn't printed, which sort of defeats the
    purpose of the whole thing.
    goldshtn committed Mar 31, 2017
Commits on Apr 19, 2017
  1. Execsnoop cli args matching (#1115)

    * adding args matching option
    
    * fixing typos
    
    * fixing merge artefacts
    
    * [execsnoop]: adding documentation on -l in man
    
    * [execsnoop][man]: fixing typo in commands name
    tehnerd committed with goldshtn Apr 19, 2017
  2. docs: add generic XDP to XDP compatible list (#1118)

    Add a link to the proposed generic XDP feature to the list of XDP features.
    tklauser committed with goldshtn Apr 19, 2017
  3. Merge pull request #1121 from shodoco/normalinlining

    Use normal inlining in clang loader
    4ast committed on GitHub Apr 19, 2017
  4. Use normal inlining in clang loader

    Huapeng Zhou committed Apr 19, 2017
Commits on Apr 18, 2017
  1. runqlat: add --pidnss option (#1117)

    Display pid namespace in summary histogram using a new `--pidnss` option.
    brendangregg committed with goldshtn Apr 18, 2017
Commits on Apr 17, 2017
  1. used the CheckCXXCompilerFlag module of Cmake to check the compiler w…

    …hether or not supporting c++11. (#1116)
    monadbobo committed with goldshtn Apr 17, 2017
Commits on Apr 16, 2017
  1. Merge pull request #1114 from shodoco/inline

    bcc: add __attribute__((always_inline)) to helper functions
    4ast committed on GitHub Apr 16, 2017
Commits on Apr 15, 2017
Commits on Apr 14, 2017
  1. Added the option(USINGISYSTEM) of Cmake for controling whether using …

    …-isystem. (#1064)
    
    When using Clang 3.9(compiled by GCC 6.x), bcc will used -isystem,
    because the GCC_VERSION(get the version of the Clang) is less 6.0.
    And then the compiler will compile failed.
    monadbobo committed with goldshtn Apr 14, 2017
  2. Fix delitem operation for PROG_ARRAYs (#1113)

    In bcc, ProgArray.__delitem__ defaults to ArrayBase.__delitem__
    which uses the bpf_update_elem helper to clear the item (override
    with a null value). However, eBPF doesn't offer a bpf_update_elem
    helper for prog arrays.
    
    This pull request overrides __delitem__ in ProgArray to use the
    bpf_delete_item helper.
    pchaigno committed with goldshtn Apr 14, 2017
Commits on Apr 13, 2017
  1. cc: Prefer external debuginfo files to the binary itself (#1111)

    On some distributions, the debuglink section in the binary will
    not have a .debug file extension. As a result, we will try to look
    for the debuginfo file in the binary itself, immediately find it,
    and abort looking for any other alternatives. This is not good,
    because the binary might contain stripped or partial symbols,
    which precludes certain tools from realizing their full potential.
    
    Fix by checking that the debuginfo file we're trying to use is
    not the same as the binary file. In any case, if external debuginfo
    can't be found, we will fall back to the symbols in the original
    binary file, if present, so this should not regress any existing
    scenario.
    goldshtn committed on GitHub Apr 13, 2017
Commits on Apr 12, 2017
  1. Merge pull request #1107 from Eichhoernchen/patch-1

    Fixed SEGFAULT due to perf buffer overflow if lost_cb unset
    4ast committed on GitHub Apr 12, 2017
  2. Fixes SEGFAUL in libbcc when actually setting a lost_cb

    When setting a lost_cb, the reference to the ctypes function is not retained like the regular callback,
    this leads to a SEGFAULT if the gc kills the lost_fn if a lost event occurs afterwards
    Eichhoernchen committed on GitHub Apr 12, 2017
  3. Fixed SEGFAULT due to perf buffer overflow if lost_cb unset

    This fixes a SEGFAULT in the underlying libbcc when no lost_cb is set.
    This occurs when the perf buffer is full and the lost_cb is called.
    libbcc expects a NULL pointer as lost_cb to trigger its internal lost message.
    This fixes the bug by providing an appropriate NULL pointer when lost_cb is unset.
    Eichhoernchen committed on GitHub Apr 12, 2017
Commits on Apr 11, 2017
Commits on Apr 8, 2017
  1. softirqs: Migrate to kernel tracepoints instead of kprobes (#1091)

    This commit migrates softirqs to use kernel tracepoints instead of
    kprobes. Because tracepoints only provide the vector number and not
    the function name, we use a conversion table, which is borrowed from
    kernel/softirq.c, to translate the vector number to a display name.
    This table is expected to be fairly stable. Notably, new names have
    not been added since approximately 2009, and the last rename (without
    adding or removing a name) was in 2014.
    
    Resolves #1031.
    goldshtn committed on GitHub Apr 8, 2017
  2. Merge pull request #1102 from palmtenor/fixwarning

    Fix compiler warning on redefined Macro
    4ast committed on GitHub Apr 8, 2017