forked from torvalds/linux
-
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.
LatencyTOP kernel infrastructure; it measures latencies in the scheduler and tracks it system wide and per process. Signed-off-by: Arjan van de Ven <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
- Loading branch information
Showing
11 changed files
with
429 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
* latencytop.h: Infrastructure for displaying latency | ||
* | ||
* (C) Copyright 2008 Intel Corporation | ||
* Author: Arjan van de Ven <[email protected]> | ||
* | ||
*/ | ||
|
||
#ifndef _INCLUDE_GUARD_LATENCYTOP_H_ | ||
#define _INCLUDE_GUARD_LATENCYTOP_H_ | ||
|
||
#ifdef CONFIG_LATENCYTOP | ||
|
||
#define LT_SAVECOUNT 32 | ||
#define LT_BACKTRACEDEPTH 12 | ||
|
||
struct latency_record { | ||
unsigned long backtrace[LT_BACKTRACEDEPTH]; | ||
unsigned int count; | ||
unsigned long time; | ||
unsigned long max; | ||
}; | ||
|
||
|
||
struct task_struct; | ||
|
||
void account_scheduler_latency(struct task_struct *task, int usecs, int inter); | ||
|
||
void clear_all_latency_tracing(struct task_struct *p); | ||
|
||
#else | ||
|
||
static inline void | ||
account_scheduler_latency(struct task_struct *task, int usecs, int inter) | ||
{ | ||
} | ||
|
||
static inline void clear_all_latency_tracing(struct task_struct *p) | ||
{ | ||
} | ||
|
||
#endif | ||
|
||
#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
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 |
---|---|---|
|
@@ -62,6 +62,7 @@ obj-$(CONFIG_SYSCTL) += utsname_sysctl.o | |
obj-$(CONFIG_TASK_DELAY_ACCT) += delayacct.o | ||
obj-$(CONFIG_TASKSTATS) += taskstats.o tsacct.o | ||
obj-$(CONFIG_MARKERS) += marker.o | ||
obj-$(CONFIG_LATENCYTOP) += latencytop.o | ||
|
||
ifneq ($(CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER),y) | ||
# According to Alan Modra <[email protected]>, the -fno-omit-frame-pointer is | ||
|
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
Oops, something went wrong.