1. 20 May, 2017 3 commits
    • Teng Qin's avatar
      Fix bcc_resolve_symname memory leak on error · 36e7d545
      Teng Qin authored
      `bcc_resolve_symname` should free `sym->module` on error. Also remove
      unused `sym_search_t`
      36e7d545
    • Teng Qin's avatar
      Use bcc_symbol_option in bcc_foreach_function_symbol · fcb2ed8e
      Teng Qin authored
      This commit changes `bcc_foreach_symbol` to use the new `bcc_symbol_option` to
      control it only wants function symbols. Also renamed it to
      bcc_foreach_function_symbol and added comments for better information.
      
      This commit maintained current behavior of the function to prefer use
      debug file and check debug file CRC. We could add option to configure
      that behavior in the future if needed.
      fcb2ed8e
    • Teng Qin's avatar
      Add option to control bcc_elf_foreach_sym behavior · 0336a290
      Teng Qin authored
      This commit adds a `bcc_symbol_option` to configure various symboling
      behaviors. Currently added options for reading debug file, and what type
      of symbols are wanted.
      
      This commit also makes bcc_elf_foreach_sym take a `bcc_symbol_option`
      parameter and repect the specified configurations.
      0336a290
  2. 19 May, 2017 1 commit
  3. 18 May, 2017 7 commits
  4. 17 May, 2017 2 commits
  5. 16 May, 2017 1 commit
  6. 15 May, 2017 1 commit
    • Brenden Blanco's avatar
      Enable recursive scanf support for char[] as string · daee97e4
      Brenden Blanco authored
      When a bpf table contains i8[] in one of its keys/leaves, use "" to
      enclose the value, rather than [ %i %i %i ... ] format. This simplifies
      the code that is generated for cases such as #1154, and brings it back
      under ~200ms code generation, instead of >30s. This change of format is
      not particularly robust (it doesn't handle escaping the doublequote
      character itself), but it should make more sense for the common case,
      such as tracing files and pathnames.
      
      The test case included tests both the functionality of the format string
      handling as well as the compile time, since test_clang already has an
      implicit 10second timeout limit.
      
      Fixes: #1154
      Signed-off-by: default avatarBrenden Blanco <bblanco@gmail.com>
      daee97e4
  7. 12 May, 2017 1 commit
  8. 11 May, 2017 3 commits
  9. 10 May, 2017 8 commits
  10. 09 May, 2017 8 commits
  11. 05 May, 2017 3 commits
  12. 04 May, 2017 2 commits
    • Ulrich Drepper's avatar
      Merge pull request #1 from drepper/fedora-compile-2 · e674174e
      Ulrich Drepper authored
      Fix computation of LUAJIT_INCLUDE_DIR
      e674174e
    • drepper@gmail.com's avatar
      Fix computation of LUAJIT_INCLUDE_DIR · 1af7a1ca
      drepper@gmail.com authored
      I don't think the current way cmake uses to locate the correct lua.h
      works.  Entries like "include/foo.h" cause cmake to look for a file
      like "/usr/include/include/foo.h".  I.e., the include/ prefix for
      all the entries is wrong as is adding "include" at the end.
      
      This patch removes the prefix.  With it bcc finally compiles on
      Fedora.
      
      If this change causes a problem there is something seriously wrong
      with cmake.
      1af7a1ca