Revert "add macros offsetof and container_of"
This reverts commit cda7acdb. This will tigger ugly compilation macro redefined warnings: $ sudo ./biolatency.py In file included from /virtual/main.c:3: In file included from include/linux/blkdev.h:5: In file included from include/linux/sched.h:12: In file included from arch/x86/include/asm/current.h:6: In file included from arch/x86/include/asm/percpu.h:45: include/linux/kernel.h:992:9: warning: 'container_of' macro redefined [-Wmacro-redefined] #define container_of(ptr, type, member) ({ \ ^ /virtual/include/bcc/helpers.h:48:9: note: previous definition is here #define container_of(ptr, type, member) \ ^ 1 warning generated. Tracing block device I/O... Hit Ctrl-C to end. Revert now and let us design how to support it better. For example, may create a different header file to put common kernel macros there to be used by the program. Signed-off-by:Yonghong Song <yhs@fb.com>
Please register or sign in to comment