diff options
author | Roy.Li <rongqing.li@windriver.com> | 2013-06-08 15:22:06 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-13 17:38:05 +0100 |
commit | 670c6514519f5497229719ddb32a2dbb57494f6c (patch) | |
tree | 39ca833ea1d063955bf89b2c4fc6087e32ca804f /meta/recipes-kernel | |
parent | 70cf6ee7c3ef5069b577253d0d4edf6190ea36d2 (diff) | |
download | poky-670c6514519f5497229719ddb32a2dbb57494f6c.tar.gz |
latencytop: Deprecate tracing_enabled for tracing_on
tracing_enabled should not be used, it is heavy weight and does not
do much in helping lower the overhead. see commmit (Deprecate
tracing_enabled for tracing_on 6752ab4a9c30d5411b2dfdb251a3f1cb18aae48)
in kernel
(From OE-Core rev: ee95048cf0c79dc52857dbc0e5da9363f2ad8b9b)
Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r-- | meta/recipes-kernel/latencytop/latencytop-0.5/latencytop-fsync.patch | 49 | ||||
-rw-r--r-- | meta/recipes-kernel/latencytop/latencytop_0.5.bb | 3 |
2 files changed, 51 insertions, 1 deletions
diff --git a/meta/recipes-kernel/latencytop/latencytop-0.5/latencytop-fsync.patch b/meta/recipes-kernel/latencytop/latencytop-0.5/latencytop-fsync.patch new file mode 100644 index 0000000000..9720cdb898 --- /dev/null +++ b/meta/recipes-kernel/latencytop/latencytop-0.5/latencytop-fsync.patch | |||
@@ -0,0 +1,49 @@ | |||
1 | linux: sysfs: use tracing_on as tracing_enabled is deprecated | ||
2 | |||
3 | tracing_enabled use in the kernel is being deprecated as per commit | ||
4 | 6752ab4a9c30 [tracing: Deprecate tracing_enabled for tracing_on] in | ||
5 | the linux mainline kernel. tracing_enabled use will generate a warning | ||
6 | and may no longer function as expected, therefore move to use tracing_on. | ||
7 | |||
8 | Upstream-status: Pending | ||
9 | |||
10 | Signed-off-by: Dennis Hall <dennis.hall@windriver.com> | ||
11 | |||
12 | Index: latencytop-0.5/fsync.c | ||
13 | =================================================================== | ||
14 | --- latencytop-0.5.orig/fsync.c 2012-08-03 10:45:49.000000000 -0400 | ||
15 | +++ latencytop-0.5/fsync.c 2012-08-03 10:48:39.000000000 -0400 | ||
16 | @@ -149,19 +149,19 @@ | ||
17 | * cd /sys/kernel/debug/tracing | ||
18 | * echo fsync > current_tracer | ||
19 | * echo ftrace_printk > iter_ctrl | ||
20 | - * echo 1 > tracing_enabled | ||
21 | + * echo 1 > tracing_on | ||
22 | */ | ||
23 | ret = system("/bin/mount -t debugfs none /sys/kernel/debug/"); | ||
24 | if (!ret) | ||
25 | return -1; | ||
26 | write_to_file("/sys/kernel/debug/tracing/current_tracer", "fsync"); | ||
27 | write_to_file("/sys/kernel/debug/tracing/iter_ctrl", "ftrace_printk"); | ||
28 | - write_to_file("/sys/kernel/debug/tracing/tracing_enabled", "1"); | ||
29 | + write_to_file("/sys/kernel/debug/tracing/tracing_on", "1"); | ||
30 | } | ||
31 | |||
32 | int disable_fsync_tracer(void) | ||
33 | { | ||
34 | - write_to_file("/sys/kernel/debug/tracing/tracing_enabled", "0"); | ||
35 | + write_to_file("/sys/kernel/debug/tracing/tracing_on", "0"); | ||
36 | } | ||
37 | |||
38 | |||
39 | @@ -339,8 +339,8 @@ | ||
40 | if (curduration > 5) | ||
41 | curduration = 5; | ||
42 | /* clear the ftrace buffer */ | ||
43 | - write_to_file("/sys/kernel/debug/tracing/tracing_enabled", "0"); | ||
44 | - write_to_file("/sys/kernel/debug/tracing/tracing_enabled", "1"); | ||
45 | + write_to_file("/sys/kernel/debug/tracing/tracing_on", "0"); | ||
46 | + write_to_file("/sys/kernel/debug/tracing/tracing_on", "1"); | ||
47 | key = select(1, &rfds, NULL, NULL, &end); | ||
48 | parse_ftrace(); | ||
49 | print_global_list(); | ||
diff --git a/meta/recipes-kernel/latencytop/latencytop_0.5.bb b/meta/recipes-kernel/latencytop/latencytop_0.5.bb index 3e35bf910d..dad05883ed 100644 --- a/meta/recipes-kernel/latencytop/latencytop_0.5.bb +++ b/meta/recipes-kernel/latencytop/latencytop_0.5.bb | |||
@@ -10,7 +10,8 @@ DEPENDS = "virtual/libintl ncurses glib-2.0 ${@base_contains('DISTRO_FEATURES', | |||
10 | PR = "r3" | 10 | PR = "r3" |
11 | 11 | ||
12 | SRC_URI = "http://www.latencytop.org/download/latencytop-${PV}.tar.gz \ | 12 | SRC_URI = "http://www.latencytop.org/download/latencytop-${PV}.tar.gz \ |
13 | file://latencytop-makefile.patch" | 13 | file://latencytop-makefile.patch \ |
14 | file://latencytop-fsync.patch" | ||
14 | 15 | ||
15 | SRC_URI[md5sum] = "73bb3371c6ee0b0e68e25289027e865c" | 16 | SRC_URI[md5sum] = "73bb3371c6ee0b0e68e25289027e865c" |
16 | SRC_URI[sha256sum] = "9e7f72fbea7bd918e71212a1eabaad8488d2c602205d2e3c95d62cd57e9203ef" | 17 | SRC_URI[sha256sum] = "9e7f72fbea7bd918e71212a1eabaad8488d2c602205d2e3c95d62cd57e9203ef" |