1. 23 Aug, 2017 4 commits
  2. 22 Aug, 2017 5 commits
  3. 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
  4. 19 Aug, 2017 1 commit
  5. 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
  6. 16 Aug, 2017 5 commits
  7. 15 Aug, 2017 1 commit
  8. 11 Aug, 2017 10 commits
  9. 06 Aug, 2017 3 commits
  10. 01 Aug, 2017 2 commits
  11. 31 Jul, 2017 2 commits
  12. 28 Jul, 2017 1 commit
  13. 27 Jul, 2017 2 commits
    • Brenden Blanco's avatar
      Merge pull request #1263 from iovisor/yhs_dev · 2cc96a8c
      Brenden Blanco authored
      permit multiple pids attaching to the same probe
      2cc96a8c
    • Yonghong Song's avatar
      permit multiple pids attaching to the same probe · 0ba15075
      Yonghong Song authored
      Currently, if more than one pid-associated USDT attaching to
      the same probe, usdt readarg code will be generated twice and
      the compiler will complain.
      
      This patch solves issue by preventing code duplication if
      a previous context with the same mnt point and exec binary
      has generated the code for the same probe. The event name is
      also changed to have pid embedded so different pid-associated
      uprobe event will have different names.
      
      This patch introduces an internal uprobe event name
      discrepency. It is a good idea to have event name
      generation in libbpf so that both C++ API and Python API
      will have consistent name conventions. This will be
      addressed in a subsequent commit as it is largely
      a different issue.
      Signed-off-by: default avatarYonghong Song <yhs@fb.com>
      0ba15075