iovisor / bcc

BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use `-Werror=undef` when compiling bcc to catch issues when a macro is not defined.

chantra opened this issue · comments

A macro which is not defined will default to 0, this can make it challenging to debug issues as the compiler will happily go ahead and treat an undefined macro to 0.

Here is an example case where it caught an issue: bpftrace/bpftrace@a0eefb6

cc @yonghong-song as we were discussing this f2f.