Tomáš Glozar

Results 110 comments of Tomáš Glozar

There are still some limitations to the implementation, the biggest of which is that bpftrace functions are directly converted into BPF subprograms. That means you are not able to pass...

> Is it possible to pass strings as arguments and if so, how? In the current implementation, no, since arguments are passed in BPF registers and thus are limited to...

I think we could even do both `clear_all_maps` and a config option/command line switch. The config option way seems more natural to me, since it is not an actual bpftrace...

Since LLVM is built for performance, it usually just segfaults when something goes wrong, one needs to extensively use GDB :D

The best solution I currently have is skipping the compilation of other sources when a definition in a non-header file is found. This however causes some problem with finding sources...

This now seems to also affect the compare phase (after the implementation of using the kernel directory to look for missing definitions).

Using Cython should be possible, it seems to work: ```bash $ cython --embed diffkemp/building/cc_wrapper.py $ gcc -I/usr/include/python3.12 diffkemp/building/cc_wrapper.c -lpython3.12 -o build/cc_wrapper-c $ build/cc_wrapper-c cc_wrapper: fatal error: missing environmental variable ```...

Good idea, that shouldn't be too hard to implement and would improve the debugging experience.

Another approach would be to patch the kernel to compile under GCC 8+. I've attached an example patch for 3.10.0-514.el7 (it doesn't work on other kernel versions, a more flexible...

> The solution must consider the fact that `asmValueMap` created in `FunctionAbstractionsGenerator` is used for displaying differences in the macros. Just to make this a little bit clearer - asmValueMap...