Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
latencytop.c File Reference
#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
 

Macro Definition Documentation

#define MAXLR   128

Definition at line 63 of file latencytop.c.

Function Documentation

void __sched __account_scheduler_latency ( struct task_struct tsk,
int  usecs,
int  inter 
)

__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  )

Variable Documentation

int latencytop_enabled

Definition at line 66 of file latencytop.c.