chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update TODO
[elogind.git]
/
src
/
bootchart
/
bootchart.h
diff --git
a/src/bootchart/bootchart.h
b/src/bootchart/bootchart.h
index 6b11fd8b8e00cf1574bc9592de4d219ec8ff8813..a9541caf4a09f2bfd1ca88891827d463f4ea5eff 100644
(file)
--- a/
src/bootchart/bootchart.h
+++ b/
src/bootchart/bootchart.h
@@
-1,5
+1,9
@@
+/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
+
+#pragma once
+
/***
/***
- bootchart.h - This file is part of systemd-bootchart
+ This file is part of systemd.
Copyright (C) 2009-2013 Intel Coproration
Copyright (C) 2009-2013 Intel Coproration
@@
-18,15
+22,15
@@
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
-
***/
+***/
#include <dirent.h>
#include <dirent.h>
+#include <stdbool.h>
#define MAXCPUS 16
#define MAXPIDS 65535
#define MAXSAMPLES 8192
#define MAXCPUS 16
#define MAXPIDS 65535
#define MAXSAMPLES 8192
-
struct block_stat_struct {
/* /proc/vmstat pgpgin & pgpgout */
int bi;
struct block_stat_struct {
/* /proc/vmstat pgpgin & pgpgout */
int bi;
@@
-60,7
+64,7
@@
struct ps_struct {
struct ps_struct *next; /* siblings */
/* must match - otherwise it's a new process with same PID */
struct ps_struct *next; /* siblings */
/* must match - otherwise it's a new process with same PID */
- char name[
1
6];
+ char name[
25
6];
int pid;
int ppid;
int pid;
int ppid;
@@
-98,30
+102,23
@@
extern struct ps_struct *ps_first;
extern struct block_stat_struct blockstat[];
extern struct cpu_stat_struct cpustat[];
extern int pscount;
extern struct block_stat_struct blockstat[];
extern struct cpu_stat_struct cpustat[];
extern int pscount;
-extern int relative;
-extern int filter;
-extern int pss;
-extern int entropy;
-extern int initcall;
+extern bool arg_relative;
+extern bool arg_filter;
+extern bool arg_show_cmdline;
+extern bool arg_pss;
+extern bool arg_entropy;
+extern bool initcall;
extern int samples;
extern int cpus;
extern int samples;
extern int cpus;
-extern int len;
-extern double hz;
-extern double scale_x;
-extern double scale_y;
+extern int
arg_samples_
len;
+extern double
arg_
hz;
+extern double
arg_
scale_x;
+extern double
arg_
scale_y;
extern int overrun;
extern double interval;
extern int overrun;
extern double interval;
-extern char output_path[PATH_MAX];
-extern char init_path[PATH_MAX];
+extern char
arg_
output_path[PATH_MAX];
+extern char
arg_
init_path[PATH_MAX];
extern FILE *of;
extern FILE *of;
-extern DIR *proc;
-extern int procfd;
extern int sysfd;
extern int sysfd;
-
-extern double gettime_ns(void);
-extern void log_uptime(void);
-extern void log_sample(int sample);
-
-extern void svg_do(void);