X-Git-Url: https://git.lttng.org/?p=lttngtop.git;a=blobdiff_plain;f=src%2Flttngtoptypes.h;h=59fb772b2e3b0c34b4a453db28dd36de7da6b1a2;hp=a4cb022252050fde7edc0df3abf472f5d1e95f47;hb=54645d5cab414bb3391837ef7acb919cf106c71f;hpb=3b15348ccad727f0d6232af738efa96b20ebc56a diff --git a/src/lttngtoptypes.h b/src/lttngtoptypes.h index a4cb022..59fb772 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,9 +21,11 @@ #include struct lttngtop { + GHashTable *process_hash_table; /* struct processtop */ GPtrArray *process_table; /* struct processtop */ GPtrArray *files_table; /* struct files */ GPtrArray *cpu_table; /* struct cputime */ + GPtrArray *kprobes_table; /* struct kprobes */ unsigned long start; unsigned long end; unsigned int nbproc; @@ -41,14 +43,14 @@ struct processtop { unsigned int puuid; int pid; char *comm; + struct host *host; 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; @@ -77,6 +79,7 @@ struct cputime { struct processtop *current_task; unsigned long task_start; GHashTable *perf; + struct syscall *current_syscall; }; /* @@ -150,6 +153,12 @@ struct vmas { unsigned long page_faults; }; +struct syscall { + char *name; + unsigned long ts_start; + uint64_t cpu_id; +}; + struct syscalls { unsigned int id; unsigned long count; @@ -173,11 +182,24 @@ struct file_info { }; /* header for cputop display */ -struct cputopview { +struct header_view { char *title; int visible; int sort; int reverse; }; +struct kprobes { + char *probe_name; + char *symbol_name; + int probe_addr; + int probe_offset; + int count; +}; + +struct host { + char *hostname; + int filter; +}; + #endif /* LTTNGTOPTYPES_H */