updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / sreadahead / sreadahead_trace_options.patch
blob56f0bc4db9a181121d83ec9276414f89b4384605
1 --- sreadahead.c.orig 2009-01-27 13:51:46.000000000 -0600
2 +++ sreadahead.c 2009-03-28 20:31:06.000000000 -0500
3 @@ -417,6 +417,23 @@
4 exit(EXIT_FAILURE);
7 + /* Set to print out info - AW - 20090201 */
8 + /* Updated for changes in ftrace in 2.6.29 - JB - 20090328 */
9 + file = fopen("tracing/iter_ctrl", "w");
10 + if (!file) {
11 + file =fopen("tracing/trace_options", "w");
12 + if(!file) {
13 + perror("Unable to set trace options\n");
14 + /* non-fatal */
15 + } else {
16 + fprintf(file, "ftrace_printk");
17 + fclose(file);
18 + }
19 + } else {
20 + fprintf(file, "ftrace_printk");
21 + fclose(file);
22 + }
24 file = fopen("tracing/tracing_enabled", "w");
25 if (!file) {
26 perror("Unable to enable tracing\n");