2 * Copyright (C) 2011 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
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
19 #ifndef LTTNGTOPTYPES_H
20 #define LTTNGTOPTYPES_H
25 GPtrArray
*process_table
; /* struct processtop */
26 GPtrArray
*files_table
; /* struct files */
27 GPtrArray
*cpu_table
; /* struct cputime */
28 GHashTable
*perf_list
; /* struct perfcounter */
32 unsigned int nbnewproc
;
33 unsigned int nbdeadproc
;
34 unsigned int nbthreads
;
35 unsigned int nbnewthreads
;
36 unsigned int nbdeadthreads
;
38 unsigned int nbnewfiles
;
39 unsigned int nbclosedfiles
;
53 unsigned long lastactivity
;
54 GPtrArray
*process_files_table
;
57 struct processtop
*threadparent
;
58 unsigned long totalfileread
;
59 unsigned long totalfilewrite
;
60 unsigned long totalcpunsec
;
61 unsigned long threadstotalcpunsec
;
62 /* IO speed for this process */
63 struct iostream
*iostream
;
75 struct processtop
*current_task
;
76 unsigned long task_start
;
81 * used for "relative seeks" (with fd, for example fs.lseek)
82 * and for "absolute seeks" (events occuring on a device without
83 * any link to a particular process)
96 struct processtop
*ref
;
103 unsigned long openedat
;
104 unsigned long closedat
;
105 unsigned long lastaccess
;
108 unsigned long nbpoll
;
109 unsigned long nbselect
;
110 unsigned long nbopen
;
111 unsigned long nbclose
;
112 //struct *seeks; /* relative seeks inside the file */
114 /* XXX : average wait time */
119 int parent_fd
; /* on accept a new fd is created from the bound socket */
124 unsigned long openedat
;
125 unsigned long closedat
;
126 unsigned long bind_address
;
127 unsigned long remote_address
;
128 //struct *sock_options;
131 struct sock_options
{
141 char *description
; /* filename or description if possible (stack, heap) */
142 unsigned long page_faults
;
160 struct syscalls
*syscall_info
; /* NULL if there is no waiting for an exit_syscall */
161 unsigned long ret_read
; /* value returned by an I/O syscall_exit for a sys_read*/
162 unsigned long ret_write
; /* value returned by an I/O syscall_exit for a sys_write*/
163 unsigned long ret_total
;
166 #endif /* LTTNGTOPTYPES_H */
This page took 0.032612 seconds and 5 git commands to generate.