diff options
Diffstat (limited to 'meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb')
-rw-r--r-- | meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb b/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb new file mode 100644 index 0000000000..80f3031ff5 --- /dev/null +++ b/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb | |||
@@ -0,0 +1,86 @@ | |||
1 | # | ||
2 | # Copyright (C) 2008 OpenedHand Ltd. | ||
3 | # | ||
4 | |||
5 | SUMMARY = "Profiling tools" | ||
6 | LICENSE = "MIT" | ||
7 | |||
8 | PR = "r3" | ||
9 | |||
10 | inherit packagegroup | ||
11 | |||
12 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
13 | |||
14 | # For backwards compatibility after rename | ||
15 | RPROVIDES_${PN} = "task-core-tools-profile" | ||
16 | RREPLACES_${PN} = "task-core-tools-profile" | ||
17 | RCONFLICTS_${PN} = "task-core-tools-profile" | ||
18 | |||
19 | PROFILE_TOOLS_X = "${@base_contains('DISTRO_FEATURES', 'x11', 'sysprof', '', d)}" | ||
20 | PROFILE_TOOLS_SYSTEMD = "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd-analyze', '', d)}" | ||
21 | |||
22 | RRECOMMENDS_${PN} = "\ | ||
23 | perf \ | ||
24 | trace-cmd \ | ||
25 | kernel-module-oprofile \ | ||
26 | blktrace \ | ||
27 | ${PROFILE_TOOLS_X} \ | ||
28 | ${PROFILE_TOOLS_SYSTEMD} \ | ||
29 | " | ||
30 | |||
31 | PROFILETOOLS = "\ | ||
32 | oprofile \ | ||
33 | oprofileui-server \ | ||
34 | powertop \ | ||
35 | latencytop \ | ||
36 | " | ||
37 | |||
38 | # systemtap needs elfutils which is not fully buildable on uclibc | ||
39 | # hence we exclude it from uclibc based builds | ||
40 | SYSTEMTAP = "systemtap" | ||
41 | SYSTEMTAP_libc-uclibc = "" | ||
42 | SYSTEMTAP_mips = "" | ||
43 | SYSTEMTAP_mips64 = "" | ||
44 | SYSTEMTAP_aarch64 = "" | ||
45 | |||
46 | # lttng-ust uses sched_getcpu() which is not there on uclibc | ||
47 | # for some of the architectures it can be patched to call the | ||
48 | # syscall directly but for x86_64 __NR_getcpu is a vsyscall | ||
49 | # which means we can not use syscall() to call it. So we ignore | ||
50 | # it for x86_64/uclibc | ||
51 | |||
52 | LTTNGUST = "lttng-ust" | ||
53 | LTTNGUST_libc-uclibc = "" | ||
54 | LTTNGUST_aarch64 = "" | ||
55 | |||
56 | LTTNGTOOLS = "lttng-tools" | ||
57 | LTTNGTOOLS_aarch64 = "" | ||
58 | |||
59 | LTTNGMODULES = "lttng-modules" | ||
60 | LTTNGMODULES_aarch64 = "" | ||
61 | LTTNGMODULES_arm = "" | ||
62 | |||
63 | BABELTRACE = "babeltrace" | ||
64 | BABELTRACE_aarch64 = "" | ||
65 | |||
66 | # valgrind does not work on mips | ||
67 | |||
68 | VALGRIND = "valgrind" | ||
69 | VALGRIND_libc-uclibc = "" | ||
70 | VALGRIND_mips = "" | ||
71 | VALGRIND_mips64 = "" | ||
72 | VALGRIND_arm = "" | ||
73 | VALGRIND_aarch64 = "" | ||
74 | |||
75 | # exmap-console | ||
76 | # exmap-server | ||
77 | |||
78 | RDEPENDS_${PN} = "\ | ||
79 | ${PROFILETOOLS} \ | ||
80 | ${LTTNGUST} \ | ||
81 | ${LTTNGTOOLS} \ | ||
82 | ${LTTNGMODULES} \ | ||
83 | ${BABELTRACE} \ | ||
84 | ${SYSTEMTAP} \ | ||
85 | ${VALGRIND} \ | ||
86 | " | ||