Commit Graph

26 Commits (34bbbbf9c3b39e7b2d81df590aad5cdbd00280d6)

Author SHA1 Message Date
Florian Fainelli f50079985c 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@gmail.com>
7 years ago
Alexey Brodkin 5dc76a4258 perf: Disable perf for ARC770 only, enable for ARC HS38
Toolchain built for ARCv1 (read for ARC700 cores) by default has
disabled atomic ops (-mno-atomic). When we build Linux kernel for ARC770
which has LL/SC instructions and thus may handle normally atomic ops we
explicitly add "-matomic" in CFLAGS. But since user-space perf utility has
no way to extract CPU config options from Kconfig/defconfig it uses
compiler default settings.

In case of ARCv2 (read ARC HS38) atomics are enabled by default and so
perf builds perfectly fine thus reenabling perf for ARC HS38 (actually
for non-ARC700 targets).

Signed-off-by: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
7 years ago
Felix Fietkau c13f943d2a perf: disable build for ARC, it is currently broken
Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years ago
Mathias Kresin 66146a223e perf: fix build with kernel 4.9
The musl workaround isn't required anymore and causes build errors with
kernel 4.9 when applied.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years ago
Felix Fietkau 412e0bbf25 perf: avoid picking up a dependency on libunwind
Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years ago
Matthias Schiffer 376944c0ab
perf: fix build with musl on PowerPC
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
8 years ago
Ralph Sennhauser 012873074f perf: drop sched_getcpu wrapper
Current musl already provides sched_getcpu

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
8 years ago
Felix Fietkau 5e41c1d447 perf: prevent build from within the sdk and mark as nonshared
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 7eeb254cc4 treewide: replace nbd@openwrt.org with nbd@nbd.name
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Dirk Neukirchen f2220bc1fe perf: disable libcrypto dependency
upstream change: 8ee4646038e47d065d35703e3e343136c4cd42aa
fixes dependency w. Kernel 4.6

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
8 years ago
Felix Fietkau f60cc5df9c perf: add dependency on !LINUX_3_18 to fix builds
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48720
8 years ago
Felix Fietkau b046040bd6 perf: include asm/unistd.h instead of syscall.h to fix conflict with kernel headers
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48573
8 years ago
Felix Fietkau bd99318c82 perf: fix strerror_r override detection, apparently part of tools/ relies on non-GNU behavior
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48221
8 years ago
Felix Fietkau 10e6d3ade9 perf: fix build errors on x86 and other platforms
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48218
8 years ago
Felix Fietkau 92b56a9aa2 perf: drop @!USE_UCLIBC from depends
perf builds fine with uClibc too

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>

SVN-Revision: 48148
8 years ago
Felix Fietkau 6314c24a04 perf: select objdump instead of the full binutils package
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48071
8 years ago
Felix Fietkau 2004f415bb perf: add myself as a maintainer
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48068
8 years ago
Felix Fietkau 6467fef419 perf: fix musl compatibility
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48067
8 years ago
Felix Fietkau d3e233f02c perf: fix parallel build support, explicitly disable more library dependencies
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48066
8 years ago
Felix Fietkau 636a22cae2 perf: build in a copy of the source dir instead of relying on make clean
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48065
8 years ago
John Crispin 4f9fcd94bd package/devel/perf: fix build for kernel 4.1
This fix contains 2 parts:
 - kernel 4.1: backport upstream patch "perf build: Do not fail on missing Build file"
 - add NO_LZMA=1 to perf MAKE_FLAGS to disable LZMA support

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>

SVN-Revision: 47338
9 years ago
Nicolas Thill fe46689f10 packages: use $(LN) macro, make symlinks relative
Signed-off-by: Nicolas Thill <nico@openwrt.org>

SVN-Revision: 45250
9 years ago
John Crispin 2e15b95799 perf: don't error on warnings
There are some places where there is a redundant declaration of
strlcpy() that prevents building perf otherwise.

Signed-off-by: John Szakmeister <john@szakmeister.net>

SVN-Revision: 44926
9 years ago
Nicolas Thill 4b382a440b packages: some (e)glibc fixes after r44701
Signed-off-by: Nicolas Thill <nico@openwrt.org>

SVN-Revision: 44842
9 years ago
John Crispin f57b53e3b0 perf: this package fails to build for !eglibc
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43531
10 years ago
Florian Fainelli 6cc4c6a3a1 devel: import perf from oldpackages
perf was in the oldpackages repository, but it makes more sense to have
it part of the default package set since we build it from the Linux
kernel sources.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 43418
10 years ago