diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
commit | 1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch) | |
tree | 0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-oe/recipes-devtools/bootchart | |
download | meta-openembedded-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-oe/recipes-devtools/bootchart')
3 files changed, 109 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/bootchart/bootchart/0001-svg-add-rudimentary-support-for-ARM-cpuinfo.patch b/meta-oe/recipes-devtools/bootchart/bootchart/0001-svg-add-rudimentary-support-for-ARM-cpuinfo.patch new file mode 100644 index 0000000000..4581ef25fc --- /dev/null +++ b/meta-oe/recipes-devtools/bootchart/bootchart/0001-svg-add-rudimentary-support-for-ARM-cpuinfo.patch | |||
@@ -0,0 +1,49 @@ | |||
1 | From 8d40b4c286e005e82fa50b66fbbbde22b7e65e15 Mon Sep 17 00:00:00 2001 | ||
2 | From: Koen Kooi <koen@dominion.thruhere.net> | ||
3 | Date: Sun, 20 May 2012 21:35:34 +0200 | ||
4 | Subject: [PATCH 1/2] svg: add rudimentary support for ARM cpuinfo | ||
5 | |||
6 | On ARM /proc/cpuinfo looks like this: | ||
7 | |||
8 | root@beagleboneA3-0428:~# cat /proc/cpuinfo | ||
9 | Processor : ARMv7 Processor rev 2 (v7l) | ||
10 | BogoMIPS : 498.89 | ||
11 | Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls | ||
12 | CPU implementer : 0x41 | ||
13 | CPU architecture: 7 | ||
14 | CPU variant : 0x3 | ||
15 | CPU part : 0xc08 | ||
16 | CPU revision : 2 | ||
17 | |||
18 | Hardware : am335xevm | ||
19 | Revision : 0000 | ||
20 | Serial : 0000000000000000 | ||
21 | |||
22 | So no real way to get the actual SoC name, TI AM3359, but a lot better than 'Unknown' | ||
23 | |||
24 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | ||
25 | --- | ||
26 | |||
27 | Upstream-Status: submitted | ||
28 | |||
29 | svg.c | 4 ++++ | ||
30 | 1 file changed, 4 insertions(+) | ||
31 | |||
32 | diff --git a/svg.c b/svg.c | ||
33 | index 80e0292..53724b2 100644 | ||
34 | --- a/svg.c | ||
35 | +++ b/svg.c | ||
36 | @@ -178,6 +178,10 @@ void svg_title(void) | ||
37 | strncpy(cpu, &buf[13], 255); | ||
38 | break; | ||
39 | } | ||
40 | + if (strstr(buf, "Processor")) { | ||
41 | + strncpy(cpu, &buf[12], 255); | ||
42 | + break; | ||
43 | + } | ||
44 | } | ||
45 | fclose(f); | ||
46 | } | ||
47 | -- | ||
48 | 1.7.10 | ||
49 | |||
diff --git a/meta-oe/recipes-devtools/bootchart/bootchart/0002-svg-open-etc-os-release-and-use-PRETTY_NAME-for-the-.patch b/meta-oe/recipes-devtools/bootchart/bootchart/0002-svg-open-etc-os-release-and-use-PRETTY_NAME-for-the-.patch new file mode 100644 index 0000000000..f63d98aee5 --- /dev/null +++ b/meta-oe/recipes-devtools/bootchart/bootchart/0002-svg-open-etc-os-release-and-use-PRETTY_NAME-for-the-.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From e3adb4c312c6ba3491b7c173559efac7a53e5abc Mon Sep 17 00:00:00 2001 | ||
2 | From: Koen Kooi <koen@dominion.thruhere.net> | ||
3 | Date: Sun, 20 May 2012 22:12:29 +0200 | ||
4 | Subject: [PATCH 2/2] svg: open /etc/os-release and use PRETTY_NAME for the | ||
5 | 'Build' name | ||
6 | |||
7 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | ||
8 | --- | ||
9 | |||
10 | Upstream-Status: Submitted | ||
11 | |||
12 | svg.c | 11 +++++++++++ | ||
13 | 1 file changed, 11 insertions(+) | ||
14 | |||
15 | diff --git a/svg.c b/svg.c | ||
16 | index 53724b2..c675d84 100644 | ||
17 | --- a/svg.c | ||
18 | +++ b/svg.c | ||
19 | @@ -194,6 +194,17 @@ void svg_title(void) | ||
20 | fclose(f); | ||
21 | } | ||
22 | |||
23 | + f = fopen("/etc/os-release", "r"); | ||
24 | + if(f) { | ||
25 | + while (fgets(buf, 255, f)) { | ||
26 | + if (strstr(buf, "PRETTY_NAME=")) { | ||
27 | + strncpy(build, &buf[12], 255); | ||
28 | + break; | ||
29 | + } | ||
30 | + } | ||
31 | + fclose(f); | ||
32 | + } | ||
33 | + | ||
34 | svg("<text class=\"t1\" x=\"0\" y=\"30\">Bootchart for %s - %s</text>\n", | ||
35 | uts.nodename, date); | ||
36 | svg("<text class=\"t2\" x=\"20\" y=\"50\">System: %s %s %s %s</text>\n", | ||
37 | -- | ||
38 | 1.7.10 | ||
39 | |||
diff --git a/meta-oe/recipes-devtools/bootchart/bootchart_git.bb b/meta-oe/recipes-devtools/bootchart/bootchart_git.bb new file mode 100644 index 0000000000..a8b81849f3 --- /dev/null +++ b/meta-oe/recipes-devtools/bootchart/bootchart_git.bb | |||
@@ -0,0 +1,21 @@ | |||
1 | DESCRIPTION = "Monitors where the system spends its time at start, creating a graph of all processes, disk utilization, and wait time." | ||
2 | HOMEPAGE = "http://meego.gitorious.org/meego-developer-tools/bootchart" | ||
3 | |||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=fcb02dc552a041dee27e4b85c7396067" | ||
6 | |||
7 | PV = "1.16" | ||
8 | PR = "r1" | ||
9 | PE = "1" | ||
10 | |||
11 | SRC_URI = "git://gitorious.org/meego-developer-tools/bootchart.git \ | ||
12 | file://0001-svg-add-rudimentary-support-for-ARM-cpuinfo.patch \ | ||
13 | file://0002-svg-open-etc-os-release-and-use-PRETTY_NAME-for-the-.patch \ | ||
14 | " | ||
15 | |||
16 | SRCREV = "872fb107028e377eef3c0c7c8a6e0f7c32b8ebb8" | ||
17 | |||
18 | S = "${WORKDIR}/git" | ||
19 | |||
20 | inherit autotools | ||
21 | |||