X-Git-Url: https://git.lttng.org/?p=lttngtop.git;a=blobdiff_plain;f=lttngtop%2Fcommon.h;fp=lttngtop%2Fcommon.h;h=0000000000000000000000000000000000000000;hp=e81256c65915efa8c4248c580db42e0e98f46748;hb=37010c3c1a006bf7f3181a1746751c99645ad4bb;hpb=1fc22eb45fde328b82aa5a5e296fdc086e77a32e diff --git a/lttngtop/common.h b/lttngtop/common.h deleted file mode 100644 index e81256c..0000000 --- a/lttngtop/common.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2011 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 - * published by the Free Software Foundation; - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * 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. - */ - -#ifndef _COMMON_H -#define _COMMON_H - -#include -#include -#include "lttngtoptypes.h" -#include "cputop.h" - -#define NSEC_PER_USEC 1000 -#define NSEC_PER_SEC 1000000000L - -sem_t goodtodisplay, goodtoupdate, timer, pause_sem, end_trace_sem, bootstrap; - -GPtrArray *copies; /* struct lttngtop */ -pthread_mutex_t perf_list_mutex; - -struct lttngtop *data; - -struct processtop *find_process_tid(struct lttngtop *ctx, int pid, char *comm); -struct processtop* add_proc(struct lttngtop *ctx, int pid, char *comm, - unsigned long timestamp); -struct processtop* update_proc(struct processtop* proc, int pid, int tid, - int ppid, char *comm); -void add_thread(struct processtop *parent, struct processtop *thread); -struct processtop* get_proc(struct lttngtop *ctx, int tid, char *comm, - unsigned long timestamp); -void death_proc(struct lttngtop *ctx, int tid, char *comm, - unsigned long timestamp); -struct cputime* add_cpu(int cpu); -struct cputime* get_cpu(int cpu); -struct lttngtop* get_copy_lttngtop(unsigned long start, unsigned long end); -struct perfcounter *add_perf_counter(GPtrArray *perf, GQuark quark, - unsigned long count); -struct perfcounter *get_perf_counter(const char *name, struct processtop *proc, - struct cputime *cpu); - -#endif /* _COMMON_H */