X-Git-Url: http://git.liburcu.org/?p=lttngtop.git;a=blobdiff_plain;f=src%2Flttngtoptypes.h;h=e01f804f19039a8004623f214c3ff5699fc7a96f;hp=480d122f57826e428900ca13d48e82b6b4997408;hb=30b646c4e7aab1e1bee8fef60619a61bd80bedad;hpb=d67167cde319ac9d257f5b59b5a4664e558f4cb4 diff --git a/src/lttngtoptypes.h b/src/lttngtoptypes.h index 480d122..e01f804 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 @@ -10,10 +10,9 @@ * 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 @@ -22,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; @@ -104,6 +103,7 @@ struct files { int oldfd; int device; int openmode; + int flag; unsigned long openedat; unsigned long closedat; unsigned long lastaccess; @@ -173,4 +173,12 @@ struct file_info { int status; }; +/* header for cputop display */ +struct header_view { + char *title; + int visible; + int sort; + int reverse; +}; + #endif /* LTTNGTOPTYPES_H */