-
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.
Merge branch 'tracing/ftrace' into tracing/core
- Loading branch information
Showing
31 changed files
with
1,155 additions
and
432 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
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
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
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,9 @@ | ||
#ifndef _TRACE_LOCKDEP_H | ||
#define _TRACE_LOCKDEP_H | ||
|
||
#include <linux/lockdep.h> | ||
#include <linux/tracepoint.h> | ||
|
||
#include <trace/lockdep_event_types.h> | ||
|
||
#endif |
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,44 @@ | ||
|
||
#ifndef TRACE_EVENT_FORMAT | ||
# error Do not include this file directly. | ||
# error Unless you know what you are doing. | ||
#endif | ||
|
||
#undef TRACE_SYSTEM | ||
#define TRACE_SYSTEM lock | ||
|
||
#ifdef CONFIG_LOCKDEP | ||
|
||
TRACE_FORMAT(lock_acquire, | ||
TPPROTO(struct lockdep_map *lock, unsigned int subclass, | ||
int trylock, int read, int check, | ||
struct lockdep_map *next_lock, unsigned long ip), | ||
TPARGS(lock, subclass, trylock, read, check, next_lock, ip), | ||
TPFMT("%s%s%s", trylock ? "try " : "", | ||
read ? "read " : "", lock->name) | ||
); | ||
|
||
TRACE_FORMAT(lock_release, | ||
TPPROTO(struct lockdep_map *lock, int nested, unsigned long ip), | ||
TPARGS(lock, nested, ip), | ||
TPFMT("%s", lock->name) | ||
); | ||
|
||
#ifdef CONFIG_LOCK_STAT | ||
|
||
TRACE_FORMAT(lock_contended, | ||
TPPROTO(struct lockdep_map *lock, unsigned long ip), | ||
TPARGS(lock, ip), | ||
TPFMT("%s", lock->name) | ||
); | ||
|
||
TRACE_FORMAT(lock_acquired, | ||
TPPROTO(struct lockdep_map *lock, unsigned long ip), | ||
TPARGS(lock, ip), | ||
TPFMT("%s", lock->name) | ||
); | ||
|
||
#endif | ||
#endif | ||
|
||
#undef TRACE_SYSTEM |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
|
||
#include <trace/sched_event_types.h> | ||
#include <trace/irq_event_types.h> | ||
#include <trace/lockdep_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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
|
||
#include <trace/sched.h> | ||
#include <trace/irq.h> | ||
#include <trace/lockdep.h> |
Oops, something went wrong.