1. 19 May, 2017 2 commits
  2. 18 May, 2017 7 commits
  3. 17 May, 2017 2 commits
  4. 16 May, 2017 1 commit
  5. 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
  6. 12 May, 2017 1 commit
  7. 11 May, 2017 3 commits
  8. 10 May, 2017 8 commits
  9. 09 May, 2017 8 commits
  10. 05 May, 2017 3 commits
  11. 04 May, 2017 4 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
    • Brenden Blanco's avatar
      Merge pull request #1152 from palmtenor/pyfuture · 7761961d
      Brenden Blanco authored
      Add documentation to guide future scripts to be Python3-ready
      7761961d
    • Ulrich Drepper's avatar
      Make match_so_flags a bit mre robust · ce0981b0
      Ulrich Drepper authored
      I cannot say that I understand the purpose behind the match_so_flags
      function.  Is it supposed to be an exhaustive check?  Just a quick
      check?  Is it always required to find the DSO which would be used
      by the current process?  Should there be an overwrite?
      
      In any case, the current way seems to be wholly inadequate.  It
      somehow assumes a specific order of the DSO in the list read from
      the ld.so cache.  That's fragile at best.
      
      In the case of one of my machines, I run a x86-64 process and try
      to find a symbol in libc.  The first DSO returned in the cache
      matching "libc.so" is /libx32/libc.so.6 (i.e., the x32 version of
      libc).  Using the file works but the DSO is not used.
      
      I assume the idea behind the short form "c" for the module name
      is to use the DSO of the same type as the running process.  As is
      all platforms not matching the listed 64-bit platforms are blindly
      accepted.
      
      I suggest at the very least to check for the case of the non-64-bit
      DSO in the cache to check that the running program is also 32-bit.
      This patch does this.
      
      In the longer run a more robust check should be implemented which
      compares the current process' ELF header with that of the found DSO.
      If this is the desired direction let me know and I'll come up with
      a patch.
      ce0981b0