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 list_for_each_entry(event, &ftrace_events, list) {
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 list_for_each_entry(event, &ftrace_events, list) {
27 if (event->id == event_id)
28 return event->profile_disable(event);