Messages in this thread Patch in this message | | | Date | Sat, 19 Oct 2013 15:34:01 +0200 | From | Oleg Nesterov <> | Subject | Re: [PATCH] tracing: fix referencing after memory freeing and refactors code |
| |
Steven, et all, sorry for off-topic...
You probably know that kernel/trace/ is not trivial ;) and the fact that cscope doesn't shows the callers in kernel/trace/trace_events.c doesn't really help.
Fixed by the patch below, but I am not sure it is fine to uglify the code to help the buggy tools. Is there any other way?
Oleg. ---
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index 368a4d5..087fff1 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c @@ -68,6 +68,9 @@ static int system_refcount_dec(struct event_subsystem *system) struct ftrace_event_file *___n; \ list_for_each_entry_safe(file, ___n, &tr->events, list) +/* Yes. Twice to not confuse csope */ +#define while_for_each_event_file() \ + } #define while_for_each_event_file() \ }
| |