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 | 83 |
1 files changed, 83 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..9eb1458baa --- /dev/null +++ b/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb | |||
@@ -0,0 +1,83 @@ | |||
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 | |||
21 | RRECOMMENDS_${PN} = "\ | ||
22 | perf \ | ||
23 | trace-cmd \ | ||
24 | kernel-module-oprofile \ | ||
25 | blktrace \ | ||
26 | ${PROFILE_TOOLS_X} \ | ||
27 | " | ||
28 | |||
29 | PROFILETOOLS = "\ | ||
30 | oprofile \ | ||
31 | oprofileui-server \ | ||
32 | powertop \ | ||
33 | latencytop \ | ||
34 | " | ||
35 | |||
36 | # systemtap needs elfutils which is not fully buildable on uclibc | ||
37 | # hence we exclude it from uclibc based builds | ||
38 | SYSTEMTAP = "systemtap" | ||
39 | SYSTEMTAP_libc-uclibc = "" | ||
40 | SYSTEMTAP_mips = "" | ||
41 | SYSTEMTAP_mips64 = "" | ||
42 | SYSTEMTAP_aarch64 = "" | ||
43 | |||
44 | # lttng-ust uses sched_getcpu() which is not there on uclibc | ||
45 | # for some of the architectures it can be patched to call the | ||
46 | # syscall directly but for x86_64 __NR_getcpu is a vsyscall | ||
47 | # which means we can not use syscall() to call it. So we ignore | ||
48 | # it for x86_64/uclibc | ||
49 | |||
50 | LTTNGUST = "lttng-ust" | ||
51 | LTTNGUST_libc-uclibc = "" | ||
52 | LTTNGUST_aarch64 = "" | ||
53 | |||
54 | LTTNGTOOLS = "lttng-tools" | ||
55 | LTTNGTOOLS_aarch64 = "" | ||
56 | |||
57 | LTTNGMODULES = "lttng-modules" | ||
58 | LTTNGMODULES_aarch64 = "" | ||
59 | |||
60 | BABELTRACE = "babeltrace" | ||
61 | BABELTRACE_aarch64 = "" | ||
62 | |||
63 | # valgrind does not work on mips | ||
64 | |||
65 | VALGRIND = "valgrind" | ||
66 | VALGRIND_libc-uclibc = "" | ||
67 | VALGRIND_mips = "" | ||
68 | VALGRIND_mips64 = "" | ||
69 | VALGRIND_arm = "" | ||
70 | VALGRIND_aarch64 = "" | ||
71 | |||
72 | # exmap-console | ||
73 | # exmap-server | ||
74 | |||
75 | RDEPENDS_${PN} = "\ | ||
76 | ${PROFILETOOLS} \ | ||
77 | ${LTTNGUST} \ | ||
78 | ${LTTNGTOOLS} \ | ||
79 | ${LTTNGMODULES} \ | ||
80 | ${BABELTRACE} \ | ||
81 | ${SYSTEMTAP} \ | ||
82 | ${VALGRIND} \ | ||
83 | " | ||