File: latencytop.h

package info (click to toggle)
latencytop 0.5
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, squeeze, stretch, wheezy
  • size: 132 kB
  • ctags: 169
  • sloc: ansic: 1,751; makefile: 28
file content (58 lines) | stat: -rw-r--r-- 1,270 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#define VERSION "0.5"

struct latency_line;

struct latency_line {
	char reason[1024];
	char backtrace[4096];
	int count;
	double time;
	double max;
};

struct process {
	unsigned int pid;
	int kernelthread;
	char name[64];
	unsigned int max;
	GList *latencies;
	int used;
	int exists;
	/* scheduler stats */
        double maxdelay;
        double totaldelay;
        int delaycount;
};

extern GList *lines;
extern GList *procs;
extern GList *translations;
extern int total_time;
extern int total_count;

extern unsigned int pid_with_max;
extern unsigned int pidmax;
extern int noui;
extern int dump_unknown;
extern char *prefered_process;

#define PT_COLOR_DEFAULT    1
#define PT_COLOR_HEADER_BAR 2
#define PT_COLOR_ERROR      3
#define PT_COLOR_RED        4
#define PT_COLOR_YELLOW     5
#define PT_COLOR_GREEN      6
#define PT_COLOR_BRIGHT     7

extern int preinitialize_gtk_ui(int *argc, char ***argv);
extern void start_gtk_ui(void);

extern void preinitialize_text_ui(int *argc, char ***argv);
extern void start_text_ui(void);

extern char *translate(char *line);
extern void init_translations(char *filename);
extern int fsync_display(int duration);
extern int enable_fsync_tracer(void);
extern int disable_fsync_tracer(void);
extern void update_list(void);