* 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., 59 Temple Place - Suite 330, Boston,
- * MA 02111-1307, USA.
+ * 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 LTTNGTOPTYPES_H
unsigned long birth;
unsigned long death;
unsigned long lastactivity;
+ /* Files managing */
GPtrArray *process_files_table;
+ struct file_history *files_history;
GPtrArray *threads;
GHashTable *perf;
struct processtop *threadparent;
+ /* IO calculting */
unsigned long totalfileread;
unsigned long totalfilewrite;
+ unsigned long fileread;
+ unsigned long filewrite;
+ struct syscalls *syscall_info;
unsigned long totalcpunsec;
unsigned long threadstotalcpunsec;
- /* IO speed for this process */
- struct iostream *iostream;
};
struct perfcounter
int oldfd;
int device;
int openmode;
+ int flag;
unsigned long openedat;
unsigned long closedat;
unsigned long lastaccess;
/* XXX : average wait time */
};
+struct file_history {
+ struct files *file;
+ struct file_history *next;
+};
+
struct sockets {
int fd;
int parent_fd; /* on accept a new fd is created from the bound socket */
struct syscalls {
unsigned int id;
unsigned long count;
- unsigned int cpu_id;
- unsigned int type;
- unsigned int tid;
+ uint64_t cpu_id;
+ unsigned int type;
+ unsigned int tid;
+ unsigned int fd;
};
struct signals {
unsigned long count;
};
-struct iostream {
- struct syscalls *syscall_info; /* NULL if there is no waiting for an exit_syscall */
- unsigned long ret_read; /* value returned by an I/O syscall_exit for a sys_read*/
- unsigned long ret_write; /* value returned by an I/O syscall_exit for a sys_write*/
- unsigned long ret_total;
+struct file_info {
+ struct file_info *next;
+ char *name;
+ int fd;
+ int status;
};
#endif /* LTTNGTOPTYPES_H */