Linux Kernel
3.7.1
|
#include <linux/latencytop.h>
#include <linux/kallsyms.h>
#include <linux/seq_file.h>
#include <linux/notifier.h>
#include <linux/spinlock.h>
#include <linux/proc_fs.h>
#include <linux/export.h>
#include <linux/sched.h>
#include <linux/list.h>
#include <linux/stacktrace.h>
Go to the source code of this file.
Macros | |
#define | MAXLR 128 |
Functions | |
void | clear_all_latency_tracing (struct task_struct *p) |
void __sched | __account_scheduler_latency (struct task_struct *tsk, int usecs, int inter) |
device_initcall (init_lstats_procfs) | |
Variables | |
int | latencytop_enabled |
#define MAXLR 128 |
Definition at line 63 of file latencytop.c.
__account_scheduler_latency - record an occurred latency - the task struct of the task hitting the latency - the duration of the latency in microseconds - 1 if the sleep was interruptible, 0 if uninterruptible
This function is the main entry point for recording latency entries as called by the scheduler.
This function has a few special cases to deal with normal 'non-latency' sleeps: specifically, interruptible sleep longer than 5 msec is skipped since this usually is caused by waiting for events via select() and co.
Negative latencies (caused by time going backwards) are also explicitly skipped.
Definition at line 172 of file latencytop.c.
void clear_all_latency_tracing | ( | struct task_struct * | p | ) |
Definition at line 68 of file latencytop.c.
device_initcall | ( | init_lstats_procfs | ) |
int latencytop_enabled |
Definition at line 66 of file latencytop.c.