Patch "perf build: Add missing cflags when building with custom libtraceevent" has been added to the 6.12-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    perf build: Add missing cflags when building with custom libtraceevent

to the 6.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     perf-build-add-missing-cflags-when-building-with-cus.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit d58ceb4141a844912c665dfe1d1c964a974478c1
Author: Yicong Yang <yangyicong@xxxxxxxxxxxxx>
Date:   Thu Oct 24 21:32:36 2024 +0800

    perf build: Add missing cflags when building with custom libtraceevent
    
    [ Upstream commit d5a0a4ab4af4c27de097b78d6f1b7e7f7e31908f ]
    
    When building with custom libtraceevent, below errors occur:
    
      $ make -C tools/perf NO_LIBPYTHON=1 PKG_CONFIG_PATH=<custom libtraceevent>
      In file included from util/session.h:5,
                       from builtin-buildid-list.c:17:
      util/trace-event.h:153:10: fatal error: traceevent/event-parse.h: No such file or directory
        153 | #include <traceevent/event-parse.h>
            |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      <snip similar errors of missing headers>
    
    This is because the include path is missed in the cflags. Add it.
    
    Fixes: 0f0e1f445690 ("perf build: Use pkg-config for feature check for libtrace{event,fs}")
    Signed-off-by: Yicong Yang <yangyicong@xxxxxxxxxxxxx>
    Reviewed-by: Leo Yan <leo.yan@xxxxxxx>
    Reviewed-by: Guilherme Amadio <amadio@xxxxxxxxxx>
    Cc: linuxarm@xxxxxxxxxx
    Link: https://lore.kernel.org/r/20241024133236.31016-1-yangyicong@xxxxxxxxxx
    Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config
index d4332675babb7..2ce71d2e5fae0 100644
--- a/tools/perf/Makefile.config
+++ b/tools/perf/Makefile.config
@@ -1194,7 +1194,7 @@ endif
 ifneq ($(NO_LIBTRACEEVENT),1)
   $(call feature_check,libtraceevent)
   ifeq ($(feature-libtraceevent), 1)
-    CFLAGS += -DHAVE_LIBTRACEEVENT
+    CFLAGS += -DHAVE_LIBTRACEEVENT $(shell $(PKG_CONFIG) --cflags libtraceevent)
     LDFLAGS += $(shell $(PKG_CONFIG) --libs-only-L libtraceevent)
     EXTLIBS += $(shell $(PKG_CONFIG) --libs-only-l libtraceevent)
     LIBTRACEEVENT_VERSION := $(shell $(PKG_CONFIG) --modversion libtraceevent).0.0




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux