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
;
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
;
85 * used for "relative seeks" (with fd, for example fs.lseek)
86 * and for "absolute seeks" (events occuring on a device without
87 * any link to a particular process)
100 struct processtop
*ref
;
107 unsigned long openedat
;
108 unsigned long closedat
;
109 unsigned long lastaccess
;
112 unsigned long nbpoll
;
113 unsigned long nbselect
;
114 unsigned long nbopen
;
115 unsigned long nbclose
;
116 //struct *seeks; /* relative seeks inside the file */
118 /* XXX : average wait time */
121 struct file_history
{
123 struct file_history
*next
;
128 int parent_fd
; /* on accept a new fd is created from the bound socket */
133 unsigned long openedat
;
134 unsigned long closedat
;
135 unsigned long bind_address
;
136 unsigned long remote_address
;
137 //struct *sock_options;
140 struct sock_options
{
150 char *description
; /* filename or description if possible (stack, heap) */
151 unsigned long page_faults
;
170 struct file_info
*next
;
176 #endif /* LTTNGTOPTYPES_H */
This page took 0.033481 seconds and 5 git commands to generate.