2 * Copyright (C) 2011-2012 Julien Desfossez
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License Version 2 as
6 * published by the Free Software Foundation;
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 #ifndef LTTNGTOPTYPES_H
19 #define LTTNGTOPTYPES_H
24 GPtrArray
*process_table
; /* struct processtop */
25 GPtrArray
*files_table
; /* struct files */
26 GPtrArray
*cpu_table
; /* struct cputime */
30 unsigned int nbnewproc
;
31 unsigned int nbdeadproc
;
32 unsigned int nbthreads
;
33 unsigned int nbnewthreads
;
34 unsigned int nbdeadthreads
;
36 unsigned int nbnewfiles
;
37 unsigned int nbclosedfiles
;
51 unsigned long lastactivity
;
53 GPtrArray
*process_files_table
;
54 struct file_history
*files_history
;
57 struct processtop
*threadparent
;
59 unsigned long totalfileread
;
60 unsigned long totalfilewrite
;
61 unsigned long fileread
;
62 unsigned long filewrite
;
63 struct syscalls
*syscall_info
;
64 unsigned long totalcpunsec
;
65 unsigned long threadstotalcpunsec
;
77 struct processtop
*current_task
;
78 unsigned long task_start
;
83 * used for "relative seeks" (with fd, for example fs.lseek)
84 * and for "absolute seeks" (events occuring on a device without
85 * any link to a particular process)
98 struct processtop
*ref
;
106 unsigned long openedat
;
107 unsigned long closedat
;
108 unsigned long lastaccess
;
111 unsigned long nbpoll
;
112 unsigned long nbselect
;
113 unsigned long nbopen
;
114 unsigned long nbclose
;
115 //struct *seeks; /* relative seeks inside the file */
117 /* XXX : average wait time */
120 struct file_history
{
122 struct file_history
*next
;
127 int parent_fd
; /* on accept a new fd is created from the bound socket */
132 unsigned long openedat
;
133 unsigned long closedat
;
134 unsigned long bind_address
;
135 unsigned long remote_address
;
136 //struct *sock_options;
139 struct sock_options
{
149 char *description
; /* filename or description if possible (stack, heap) */
150 unsigned long page_faults
;
169 struct file_info
*next
;
175 /* header for cputop display */
183 #endif /* LTTNGTOPTYPES_H */
This page took 0.03532 seconds and 4 git commands to generate.