-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Peter Zijlstra
authored and
Ingo Molnar
committed
Mar 20, 2009
1 parent
01cf2db
commit 70d487b
Showing
7 changed files
with
90 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 28bea271e58e429eccfad3d7ee2ad12d6ee015bf | ||
refs/heads/master: ac199db0189c091f2863312061c0575937f68810 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,3 @@ | |
#include "trace_events_stage_2.h" | ||
#include "trace_events_stage_3.h" | ||
|
||
#include <trace/trace_event_types.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* trace event based perf counter profiling | ||
* | ||
* Copyright (C) 2009 Red Hat Inc, Peter Zijlstra <pzijlstr@redhat.com> | ||
* | ||
*/ | ||
|
||
#include "trace.h" | ||
|
||
int ftrace_profile_enable(int event_id) | ||
{ | ||
struct ftrace_event_call *event; | ||
|
||
for_each_event(event) { | ||
if (event->id == event_id) | ||
return event->profile_enable(event); | ||
} | ||
|
||
return -EINVAL; | ||
} | ||
|
||
void ftrace_profile_disable(int event_id) | ||
{ | ||
struct ftrace_event_call *event; | ||
|
||
for_each_event(event) { | ||
if (event->id == event_id) | ||
return event->profile_disable(event); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters