1. 25 Aug, 2017 4 commits
  2. 24 Aug, 2017 2 commits
    • Brendan Gregg's avatar
      funccount: add -d for duration · b03d9eb2
      Brendan Gregg authored
      b03d9eb2
    • Yonghong Song's avatar
      fix lua-bcc build issue with cmake try_compile · 75e2f379
      Yonghong Song authored
      Certain versions of recent gcc (e.g., gcc 6.3.0 on ubuntu17.04)
      has pie enabled by default at linker (collect2) stage.
      The compilation flag "-no-pie" is available to negate
      this linker option.
      
      Add -no-pie to compilation flag only if it is available.
      Earlier gcc compiler may not have this option but it does
      not have linker pie on-by-default either.
      
      Tested with ubuntu 17.04 and my local gcc 4.8.5 (not accepting -no-pie).
      Signed-off-by: default avatarYonghong Song <yhs@fb.com>
      75e2f379
  3. 23 Aug, 2017 6 commits
  4. 22 Aug, 2017 5 commits
  5. 20 Aug, 2017 1 commit
    • Mark Drayton's avatar
      bcc-lua: --no-pie, not -no-pie · 007d28c5
      Mark Drayton authored
      Some versions of GCC don't accept `-no-pie`. For instance, on a GCC 5 build I
      have here:
      
      ```
      $ gcc -no-pie
      gcc: error: unrecognized command line option ‘-no-pie’
      gcc: fatal error: no input files
      ```
      
      5.4 from Xenial will take `-no-pie`, as will versions of 4, 6 and 7 that I
      tried. The issue may be related to
      https://www.mail-archive.com/gcc-patches@gcc.gnu.org/msg170818.html but I'm not
      certain.
      
      A workaround for this is to use `--no-pie`, which is accepted by all versions
      of GCC 4, 5, 6 and 7 that I tried.
      007d28c5
  6. 19 Aug, 2017 1 commit
  7. 17 Aug, 2017 3 commits
    • Pavel Safronov's avatar
      Fixes for debian and ubuntu docker build · eb819caf
      Pavel Safronov authored
      * Fixed build for debian and ubuntu
      * Bumped debian and ubuntu versions (fix some build-dependency issues)
      * Make debian and ubuntu Dockerfiles use the same build script
      * Build-dependencies now installing automatically via pbuilder
      eb819caf
    • 4ast's avatar
      Merge pull request #1294 from iovisor/yhs_dev · 9de830ae
      4ast authored
      avoid large map memory allocation in userspace
      9de830ae
    • Yonghong Song's avatar
      avoid large map memory allocation in userspace · 067219b2
      Yonghong Song authored
      In bcc, internal BPF_F_TABLE defines a structure to
      contain all the table information for later easy
      extraction. A global structure will be defined
      with this type. Note that this structure will be
      allocated by LLVM during compilation.
      
      In the table structure, one of field is:
         _leaf_type data[_max_entries]
      
      If the _leaf_type and _max_entries are big,
      significant memory will be consumed. A big
      _leaf_type size example is for BPF_STACK_TRACE map
      with 127*8=1016 bytes. If max_entries is bigger
      as well, significant amount of memory will be
      consumed by LLVM.
      
      This patch replaces
        _leaf_type data[_max_entries]
      to
        unsigned ing max_entries
      
      The detail of a test example can be found in issue #1291.
      For the example in #1291, without this patch, for a
      BPF_STACK_TRACE map with 1M entries, the RSS is roughly
      3GB (roughly 3KB per entry). With this patch, it is 5.8MB.
      Signed-off-by: default avatarYonghong Song <yhs@fb.com>
      067219b2
  8. 16 Aug, 2017 5 commits
  9. 15 Aug, 2017 1 commit
  10. 11 Aug, 2017 10 commits
  11. 06 Aug, 2017 2 commits