X-Git-Url: https://git.lttng.org/?p=lttngtop.git;a=blobdiff_plain;f=src%2Flttngtoptypes.h;h=66b2079ee834ac04cff87d528450fb7d03c909fc;hp=683bc302e1b8980e9daec4e78b6f4899ad92ac60;hb=1402044a1577c9b62b60f64fdb48ae9524be458c;hpb=71bd7ce14826a0d7067c45657f33080e546cd5dc diff --git a/src/lttngtoptypes.h b/src/lttngtoptypes.h index 683bc30..66b2079 100644 --- a/src/lttngtoptypes.h +++ b/src/lttngtoptypes.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 Julien Desfossez + * Copyright (C) 2011-2012 Julien Desfossez * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License Version 2 as @@ -21,10 +21,10 @@ #include struct lttngtop { + GHashTable *process_hash_table; /* struct processtop */ GPtrArray *process_table; /* struct processtop */ GPtrArray *files_table; /* struct files */ GPtrArray *cpu_table; /* struct cputime */ - GHashTable *perf_list; /* struct perfcounter */ unsigned long start; unsigned long end; unsigned int nbproc; @@ -44,12 +44,11 @@ struct processtop { char *comm; int tid; int ppid; - int oldpid; - int oldtid; - int oldppid; + int vpid; + int vtid; + int vppid; unsigned long birth; unsigned long death; - unsigned long lastactivity; /* Files managing */ GPtrArray *process_files_table; struct file_history *files_history; @@ -103,6 +102,7 @@ struct files { int oldfd; int device; int openmode; + int flag; unsigned long openedat; unsigned long closedat; unsigned long lastaccess; @@ -172,4 +172,12 @@ struct file_info { int status; }; +/* header for cputop display */ +struct header_view { + char *title; + int visible; + int sort; + int reverse; +}; + #endif /* LTTNGTOPTYPES_H */