Package: bpftrace / 0.8+git60-gccac69c2239b-2

Metadata

Package Version Patches format
bpftrace 0.8+git60-gccac69c2239b-2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 Prevent empty trigger functions to be optimized away.patch | (download)

src/triggers.h | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 prevent empty trigger functions to be optimized away with -o2 (#218)

From the gcc manual: 'noinline - This function attribute prevents a
function from being considered for inlining. If the function does not
have side effects, there are optimizations other than inlining that
cause function calls to be optimized away, although the function call is
live. To keep such calls from being optimized away, put asm ("");'
(https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html)

0002 Detect kernel headers even if they are splitted into.patch | (download)

src/clang_parser.cpp | 53 43 + 10 - 0 !
src/utils.cpp | 23 12 + 11 - 0 !
src/utils.h | 3 2 + 1 - 0 !
3 files changed, 57 insertions(+), 22 deletions(-)

 detect kernel headers even if they are splitted into source/ and
 build/ directories

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: