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 GHashTable
*process_hash_table
; /* struct processtop */
25 GPtrArray
*process_table
; /* struct processtop */
26 GPtrArray
*files_table
; /* struct files */
27 GPtrArray
*cpu_table
; /* struct cputime */
28 GPtrArray
*kprobes_table
; /* struct kprobes */
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
;
55 GPtrArray
*process_files_table
;
56 struct file_history
*files_history
;
59 struct processtop
*threadparent
;
61 unsigned long totalfileread
;
62 unsigned long totalfilewrite
;
63 unsigned long fileread
;
64 unsigned long filewrite
;
65 struct syscalls
*syscall_info
;
66 unsigned long totalcpunsec
;
67 unsigned long threadstotalcpunsec
;
79 struct processtop
*current_task
;
80 unsigned long task_start
;
82 struct syscall
*current_syscall
;
86 * used for "relative seeks" (with fd, for example fs.lseek)
87 * and for "absolute seeks" (events occuring on a device without
88 * any link to a particular process)
101 struct processtop
*ref
;
109 unsigned long openedat
;
110 unsigned long closedat
;
111 unsigned long lastaccess
;
114 unsigned long nbpoll
;
115 unsigned long nbselect
;
116 unsigned long nbopen
;
117 unsigned long nbclose
;
118 //struct *seeks; /* relative seeks inside the file */
120 /* XXX : average wait time */
123 struct file_history
{
125 struct file_history
*next
;
130 int parent_fd
; /* on accept a new fd is created from the bound socket */
135 unsigned long openedat
;
136 unsigned long closedat
;
137 unsigned long bind_address
;
138 unsigned long remote_address
;
139 //struct *sock_options;
142 struct sock_options
{
152 char *description
; /* filename or description if possible (stack, heap) */
153 unsigned long page_faults
;
158 unsigned long ts_start
;
178 struct file_info
*next
;
184 /* header for cputop display */
205 #endif /* LTTNGTOPTYPES_H */
This page took 0.034006 seconds and 4 git commands to generate.