X-Git-Url: https://git.lttng.org/?p=lttngtop.git;a=blobdiff_plain;f=src%2Flttngtoptypes.h;fp=src%2Flttngtoptypes.h;h=7e105f91a79dfca38692863413e141aeeff63f54;hp=7030b32f81ae253f871c13638a3f7f07ae399968;hb=b093de8aa1ac7555d20b3aa4227d4675b39ef008;hpb=45a6c62f2818a6911c64caa3241fb1b97bb30439 diff --git a/src/lttngtoptypes.h b/src/lttngtoptypes.h index 7030b32..7e105f9 100644 --- a/src/lttngtoptypes.h +++ b/src/lttngtoptypes.h @@ -51,16 +51,20 @@ struct processtop { 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 @@ -114,6 +118,11 @@ struct files { /* 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 */ @@ -145,9 +154,10 @@ struct vmas { struct syscalls { unsigned int id; unsigned long count; - unsigned int cpu_id; - unsigned int type; - unsigned int tid; + unsigned int cpu_id; + unsigned int type; + unsigned int tid; + unsigned int fd; }; struct signals { @@ -156,11 +166,11 @@ 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 */