Description of problem: #include <tracefs/tracefs.h> errors out on sub #include <event-parse.h> . Version-Release number of selected component (if applicable): RHEL 9.2 libtracefs-devel-1.3.1-1.el9 libtraceevent-devel-1.5.3-3.el9 (dependency) How reproducible: always Steps to Reproduce: Prepare tracefs.c: ========== #include <tracefs/tracefs.h> ========== (yes, only 1 line) $ cc -c tracefs.c Actual results: In file included from tracefs.c:2: /usr/include/tracefs/tracefs.h:11:10: fatal error: event-parse.h: No such file or directory 11 | #include <event-parse.h> | ^~~~~~~~~~~~~~~ compilation terminated. Expected results: No error Additional info: This came evident when compiling custom kernel and compiling tools/tracing/rtls/ tree failed. In /usr/include/tracefs/tracefs.c, #include <event-parse.h> seems to be should be #include <traceevent/event-parse.h> . Please disregard if I was wrong.
Reproduced. Seems that you're right. However, upstream suffers from the same, so we'll discuss it upstream.
Steven Rostedt does not consider this a bug: ============================================================================== The pkgconfig for libtraceevent has: $ pkgconf --cflags libtraceevent -I/usr/local/include/traceevent Where it should include the path that includes "traceevent", as you should not need to add it specifically. ============================================================================== Using pkgconfig, the compilation should pass.