[PATCH 1/9] tracing: Introduce trace_create_cpu_file() and tracing_get_cpu()

2013-07-26 Thread Steven Rostedt
From: Oleg Nesterov Every "file_operations" used by tracing_init_debugfs_percpu is buggy. f_op->open/etc does: 1. struct trace_cpu *tc = inode->i_private; struct trace_array *tr = tc->tr; 2. trace_array_get(tr) or fail; 3. do_something(tc); But tc (and tr) c

[for-next-3.11][PATCH 1/9] tracing: Introduce trace_create_cpu_file() and tracing_get_cpu()

2013-07-24 Thread Steven Rostedt
From: Oleg Nesterov Every "file_operations" used by tracing_init_debugfs_percpu is buggy. f_op->open/etc does: 1. struct trace_cpu *tc = inode->i_private; struct trace_array *tr = tc->tr; 2. trace_array_get(tr) or fail; 3. do_something(tc); But tc (and tr) c