[PATCH 2/3] tracing/perf: Reimplement TP_perf_assign() logic

2013-08-05 Thread Oleg Nesterov
The next patch tries to avoid the costly perf_trace_buf_* calls when possible but there is a problem. We can only do this if __task == NULL, perf_tp_event(task != NULL) has the additional code for this case. Unfortunately, TP_perf_assign/__perf_xxx which changes the default values of

[PATCH 2/3] tracing/perf: Reimplement TP_perf_assign() logic

2013-08-05 Thread Oleg Nesterov
The next patch tries to avoid the costly perf_trace_buf_* calls when possible but there is a problem. We can only do this if __task == NULL, perf_tp_event(task != NULL) has the additional code for this case. Unfortunately, TP_perf_assign/__perf_xxx which changes the default values of

[PATCH 2/3] tracing/perf: reimplement TP_perf_assign() logic

2013-07-18 Thread Oleg Nesterov
The next patch tries to avoid the costly perf_trace_buf_* calls when possible but there is a problem. We can only do this if __task == NULL, perf_tp_event(task != NULL) has the additional code for this case. Unfortunately, TP_perf_assign/__perf_xxx which changes the default values of

[PATCH 2/3] tracing/perf: reimplement TP_perf_assign() logic

2013-07-18 Thread Oleg Nesterov
The next patch tries to avoid the costly perf_trace_buf_* calls when possible but there is a problem. We can only do this if __task == NULL, perf_tp_event(task != NULL) has the additional code for this case. Unfortunately, TP_perf_assign/__perf_xxx which changes the default values of

[PATCH 2/3] tracing/perf: reimplement TP_perf_assign() logic

2013-06-18 Thread Oleg Nesterov
TP_perf_assign/__perf_xxx is used to change the default values of __addr/__count/__task variables for perf_trace_buf_submit(). Unfortunately, TP_perf_assign() is called "too late", we want to have a fast-path "__task != NULL" check in perf_trace_##call() at the start. So this patch simply embeds

[PATCH 2/3] tracing/perf: reimplement TP_perf_assign() logic

2013-06-18 Thread Oleg Nesterov
TP_perf_assign/__perf_xxx is used to change the default values of __addr/__count/__task variables for perf_trace_buf_submit(). Unfortunately, TP_perf_assign() is called too late, we want to have a fast-path __task != NULL check in perf_trace_##call() at the start. So this patch simply embeds