[source] perf: Depend on KERNEL_PERF_EVENTS

LEDE Commits lede-commits at lists.infradead.org
Mon Jun 5 12:30:32 PDT 2017


florian pushed a commit to source.git, branch master:
https://git.lede-project.org/f50079985c97404d62a208f2937ad6afd3f07f0f

commit f50079985c97404d62a208f2937ad6afd3f07f0f
Author: Florian Fainelli <f.fainelli at gmail.com>
AuthorDate: Mon May 22 16:50:47 2017 -0700

    perf: Depend on KERNEL_PERF_EVENTS
    
    The kernel needs to have PERF_EVENTS built otherwise we will run into
    the following:
    
    root@(none):/# perf top
    perf_event_open(..., PERF_FLAG_FD_CLOEXEC) failed with unexpected error
    89 (Function not implemented)
    perf_event_open(..., 0) failed unexpectedly with error 89 (Function not
    implemented)
    Error:
    The sys_perf_event_open() syscall returned with 89 (Function not
    implemented) for event (cycles).
    /bin/dmesg may provide additional information.
    No CONFIG_PERF_EVENTS=y kernel support configured?
    
    Make sure this functional dependency is captured.
    
    Signed-off-by: Florian Fainelli <f.fainelli at gmail.com>
---
 package/devel/perf/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/devel/perf/Makefile b/package/devel/perf/Makefile
index 361e422..5bfcaa6 100644
--- a/package/devel/perf/Makefile
+++ b/package/devel/perf/Makefile
@@ -26,7 +26,7 @@ include $(INCLUDE_DIR)/package.mk
 define Package/perf
   SECTION:=devel
   CATEGORY:=Development
-  DEPENDS:= +libelf1 +libdw +libpthread +librt +objdump @!LINUX_3_18 @!IN_SDK @!TARGET_arc770
+  DEPENDS:= +libelf1 +libdw +libpthread +librt +objdump @!LINUX_3_18 @!IN_SDK @!TARGET_arc770 @KERNEL_PERF_EVENTS
   TITLE:=Linux performance monitoring tool
   VERSION:=$(LINUX_VERSION)-$(PKG_RELEASE)
   URL:=http://www.kernel.org



More information about the lede-commits mailing list