1. 08 Feb, 2019 1 commit
    • Kirill Smelkov's avatar
      Detect kernel headers even if they are splitted into source/ and build/ directories · d1f6efda
      Kirill Smelkov authored
      Currently bpftrace uses only /lib/modules/`uname -r`/source/ if it
      exists. This however leads to failures Debian where generated kernel
      headers, such as include/generated/autoconf.h are put into a separate
      directory, for example:
      
      	---- 8< ---- (fuse_vs_mmapsem.bt)
      	#include <linux/path.h>
      	#include <linux/dcache.h>
      	#include <linux/sched.h>
      	#include <linux/mm_types.h>
      
      	kprobe:fuse_readpage,kprobe:fuse_readpages {
      	        printf("%s (%d) %s\n", probe, ((task_struct *)curtask)->mm->mmap_sem.count.counter, kstack);
      	}
      	---- 8< ----
      
      	# ./bpftrace fuse_vs_mmapsem.bt
      	/lib/modules/4.19.0-2-amd64/source/include/linux/kconfig.h:5:10: fatal error: 'generated/autoconf.h' file not found
      	Unknown struct/union: 'task_struct'
      
      Fix it by using both /lib/modules/`uname -r`/source/ and
      /lib/modules/`uname -r`/build/ if both are present.
      
      /cc @vincentbernat
      
      P.S. I was not using C++ for ages, so please forgive me in advance if I
      missed something.
      d1f6efda
  2. 07 Feb, 2019 6 commits
  3. 06 Feb, 2019 3 commits
  4. 05 Feb, 2019 3 commits
  5. 04 Feb, 2019 2 commits
  6. 29 Jan, 2019 1 commit
  7. 25 Jan, 2019 3 commits
  8. 23 Jan, 2019 1 commit
    • Dan Xu's avatar
      Fix alpine docker build (#372) · 2b83b671
      Dan Xu authored
      This patch fixes the docker builds (`./build.sh` and
      `./build-debug.sh`).
      
      Two main things were broken:
      * Alpine was missing a bcc-devel package. The temporary fix is to clone
        bcc, build, and install into the container
      * Static linking against bcc was broken. I've made some cmake config
        changes to support this.
      2b83b671
  9. 22 Jan, 2019 2 commits
  10. 21 Jan, 2019 1 commit
  11. 18 Jan, 2019 3 commits
  12. 17 Jan, 2019 11 commits
  13. 16 Jan, 2019 3 commits