Commit Graph

9 Commits

Author SHA1 Message Date
Khem Raj b67a20e35a perfetto: Fix build on musl again
Update to 0.31 broke build on musl. New dependencies mean additional
fixes

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-06 20:48:39 -08:00
Khem Raj 71d152d23c perfetto: Add missing dependencies.
Latest release 0.31 needs some more bits during build. Add them
at right SHA checkouts, from

tools/install-build-deps

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-05 09:55:10 -08:00
Khem Raj 1b7fd40fb3 perfetto: Fix build with gcc13
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-01 09:11:49 -08:00
Khem Raj 71d2adfc5f perfetto: Upgrade to 31.0 release
Forward port pc file patch to 0.31 release

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-01 09:11:49 -08:00
Khem Raj 7f456b1f00 perfetto: Disable ccache
It does not build with ccache for some reason, loses the compiler name

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-29 21:09:39 -08:00
Khem Raj 90ea68fc11 perfetto: Do not pass TUNE_CCARGS to native/host compiler
TUNE_CCARGS are meant to be passed to target compilers only. This fixes
build failures seen on qemux6

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Markus Volk <f_l_k@t-online.de>
2022-12-08 17:10:48 -08:00
Markus Volk c23bde86d0 perfetto: pass TUNE_CCARGS to use machine tune
We already tried to pass -mfloat-abi=hard if the machine can use it, but since
no floating-point-unit was defined it got stubbed out and the result was, that
only arm targets configured for softfp were able to build perfetto.

Simplify by passing ${TUNE_CCARGS} to ensure, we always use the features, the
machine was configured for.

Also, do not use sed to remove the hardcoded -mfpu=neon entry. If this really
turns out to be problematic, we need to patch it out to avoid not having a
floating-point-unit again.

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-12-05 09:16:24 -08:00
Markus Volk a067e1ba94 perfetto: build libperfetto
- Mesa has support for perfetto, but the libperfetto library is needed
- Only v27 seems to be supported for now. Update perfetto accordingly
- Make sure perfetto and libperfetto share the same codebase
- Patch meson.build to allow shared build
  - Add a version number to avoid having a non symlink so file packaged into dev package
  - Create a PC file for libperfetto to allow mesa to find it using pkgconfig
  - Install needed header file
- Add -latomic to LDFLAGS for some arch where the compiler doesn't provide it

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-10-18 16:25:44 -07:00
Sui Chen 8073ec2275 Add recipe for Perfetto
Perfetto (https://perfetto.dev/) is a system profiling, app tracing
and trace analysis framework.

We started using Perfetto for studying a few performance-related
problems for OpenBMC-based systems (both the BMC and the host)
and we feel it would be good if Perfetto is included into
OpenEmbedded, since embedded systems are usually expected to have
predictable performance characteristics, and having a good set of
performance analysis tools would make this work easier.

Tested: bitbake compile, devtool extract and override

Signed-off-by: Sui Chen <suichen6@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-10-18 11:49:35 -07:00