/*
- * 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
* 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
#include <glib.h>
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;
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;
int oldfd;
int device;
int openmode;
+ int flag;
unsigned long openedat;
unsigned long closedat;
unsigned long lastaccess;
int status;
};
+/* header for cputop display */
+struct header_view {
+ char *title;
+ int visible;
+ int sort;
+ int reverse;
+};
+
#endif /* LTTNGTOPTYPES_H */