|
Lines 417-422
Link Here
|
| 417 |
exit(EXIT_FAILURE); |
417 |
exit(EXIT_FAILURE); |
| 418 |
} |
418 |
} |
| 419 |
|
419 |
|
|
|
420 |
/* Set to print out info - AW - 20090201 */ |
| 421 |
/* Updated for changes in ftrace in 2.6.29 - JB - 20090328 */ |
| 422 |
file = fopen("tracing/iter_ctrl", "w"); |
| 423 |
if (!file) { |
| 424 |
file =fopen("tracing/trace_options", "w"); |
| 425 |
if(!file) { |
| 426 |
perror("Unable to set trace options\n"); |
| 427 |
/* non-fatal */ |
| 428 |
} else { |
| 429 |
fprintf(file, "ftrace_printk"); |
| 430 |
fclose(file); |
| 431 |
} |
| 432 |
} else { |
| 433 |
fprintf(file, "ftrace_printk"); |
| 434 |
fclose(file); |
| 435 |
} |
| 436 |
|
| 420 |
file = fopen("tracing/tracing_enabled", "w"); |
437 |
file = fopen("tracing/tracing_enabled", "w"); |
| 421 |
if (!file) { |
438 |
if (!file) { |
| 422 |
perror("Unable to enable tracing\n"); |
439 |
perror("Unable to enable tracing\n"); |