2 * trace event based perf counter profiling
4 * Copyright (C) 2009 Red Hat Inc, Peter Zijlstra <pzijlstr@redhat.com>
10 int ftrace_profile_enable(int event_id
)
12 struct ftrace_event_call
*event
;
14 for_each_event(event
) {
15 if (event
->id
== event_id
)
16 return event
->profile_enable(event
);
22 void ftrace_profile_disable(int event_id
)
24 struct ftrace_event_call
*event
;
26 for_each_event(event
) {
27 if (event
->id
== event_id
)
28 return event
->profile_disable(event
);