blob: 1c68fea164c79c2b1290b46b62202e3e72013f5b (
plain)
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
|
/*
* Copyright (c) 1995 Silicon Graphics, Inc. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef PHOTPROC_H
#define PHOTPROC_H
#include "config.h"
/* main process node type */
typedef struct process_t {
pid_t pid;
/* refreshed data */
ulong_t r_vctx;
ulong_t r_ictx;
ulong_t r_syscalls;
ulong_t r_bread;
ulong_t r_gbread;
ulong_t r_bwrit;
ulong_t r_gbwrit;
float r_cpuburn;
double r_cputimestamp;
double r_cputime;
accum_t r_bwtime;
accum_t r_rwtime;
accum_t r_qwtime;
/* predicate values */
derived_pred_t preds;
} process_t;
process_t * lookup_curr_node(pid_t);
#endif
|