Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
debug.c File Reference
#include <linux/proc_fs.h>
#include <linux/sched.h>
#include <linux/seq_file.h>
#include <linux/kallsyms.h>
#include <linux/utsname.h>
#include "sched.h"

Go to the source code of this file.

Macros

#define SEQ_printf(m, x...)
 
#define SPLIT_NS(x)   nsec_high(x), nsec_low(x)
 
#define P(x)   SEQ_printf(m, " .%-30s: %Ld\n", #x, (long long)(rt_rq->x))
 
#define PN(x)   SEQ_printf(m, " .%-30s: %Ld.%06ld\n", #x, SPLIT_NS(rt_rq->x))
 
#define P(x)
 
#define PN(x)   SEQ_printf(m, " .%-30s: %Ld.%06ld\n", #x, SPLIT_NS(rq->x))
 
#define P(x)   SEQ_printf(m, "%-40s: %Ld\n", #x, (long long)(x))
 
#define PN(x)   SEQ_printf(m, "%-40s: %Ld.%06ld\n", #x, SPLIT_NS(x))
 
#define P(x)   SEQ_printf(m, " .%-40s: %Ld\n", #x, (long long)(x))
 
#define PN(x)   SEQ_printf(m, " .%-40s: %Ld.%06ld\n", #x, SPLIT_NS(x))
 
#define __P(F)   SEQ_printf(m, "%-35s:%21Ld\n", #F, (long long)F)
 
#define P(F)   SEQ_printf(m, "%-35s:%21Ld\n", #F, (long long)p->F)
 
#define __PN(F)   SEQ_printf(m, "%-35s:%14Ld.%06ld\n", #F, SPLIT_NS((long long)F))
 
#define PN(F)   SEQ_printf(m, "%-35s:%14Ld.%06ld\n", #F, SPLIT_NS((long long)p->F))
 

Functions

void print_cfs_rq (struct seq_file *m, int cpu, struct cfs_rq *cfs_rq)
 
void print_rt_rq (struct seq_file *m, int cpu, struct rt_rq *rt_rq)
 
void sysrq_sched_debug_show (void)
 
 __initcall (init_sched_debug_procfs)
 
void proc_sched_show_task (struct task_struct *p, struct seq_file *m)
 
void proc_sched_set_task (struct task_struct *p)
 

Variables

__read_mostly int sched_clock_running
 

Macro Definition Documentation

#define __P (   F)    SEQ_printf(m, "%-35s:%21Ld\n", #F, (long long)F)
#define __PN (   F)    SEQ_printf(m, "%-35s:%14Ld.%06ld\n", #F, SPLIT_NS((long long)F))
#define P (   x)    SEQ_printf(m, " .%-30s: %Ld\n", #x, (long long)(rt_rq->x))
#define P (   x)
Value:
do { \
if (sizeof(rq->x) == 4) \
SEQ_printf(m, " .%-30s: %ld\n", #x, (long)(rq->x)); \
SEQ_printf(m, " .%-30s: %Ld\n", #x, (long long)(rq->x));\
} while (0)
#define P (   x)    SEQ_printf(m, "%-40s: %Ld\n", #x, (long long)(x))
#define P (   x)    SEQ_printf(m, " .%-40s: %Ld\n", #x, (long long)(x))
#define P (   F)    SEQ_printf(m, "%-35s:%21Ld\n", #F, (long long)p->F)
#define PN (   x)    SEQ_printf(m, " .%-30s: %Ld.%06ld\n", #x, SPLIT_NS(rt_rq->x))
#define PN (   x)    SEQ_printf(m, " .%-30s: %Ld.%06ld\n", #x, SPLIT_NS(rq->x))
#define PN (   x)    SEQ_printf(m, "%-40s: %Ld.%06ld\n", #x, SPLIT_NS(x))
#define PN (   x)    SEQ_printf(m, " .%-40s: %Ld.%06ld\n", #x, SPLIT_NS(x))
#define PN (   F)    SEQ_printf(m, "%-35s:%14Ld.%06ld\n", #F, SPLIT_NS((long long)p->F))
#define SEQ_printf (   m,
  x... 
)
Value:
do { \
if (m) \
seq_printf(m, x); \
} while (0)

Definition at line 27 of file debug.c.

#define SPLIT_NS (   x)    nsec_high(x), nsec_low(x)

Definition at line 58 of file debug.c.

Function Documentation

__initcall ( init_sched_debug_procfs  )
void print_cfs_rq ( struct seq_file m,
int  cpu,
struct cfs_rq cfs_rq 
)

Definition at line 166 of file debug.c.

void print_rt_rq ( struct seq_file m,
int  cpu,
struct rt_rq rt_rq 
)

Definition at line 223 of file debug.c.

void proc_sched_set_task ( struct task_struct p)

Definition at line 510 of file debug.c.

void proc_sched_show_task ( struct task_struct p,
struct seq_file m 
)

Definition at line 412 of file debug.c.

void sysrq_sched_debug_show ( void  )

Definition at line 383 of file debug.c.

Variable Documentation

__read_mostly int sched_clock_running

Definition at line 82 of file clock.c.