X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon.h;h=1bde45cdc7814240fe5ac36dd334e33d7ca39068;hb=1a70b8acdfee3652b0295827825919d710c26486;hp=087b8ec1c1dc61c6199ed46fd93dfd8dfda2cd22;hpb=0d91c12a62aa85d1d1d8b5478e81d38e06f2cc00;p=lttngtop.git diff --git a/src/common.h b/src/common.h index 087b8ec..1bde45c 100644 --- a/src/common.h +++ b/src/common.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 @@ -31,6 +31,8 @@ sem_t goodtodisplay, goodtoupdate, timer, pause_sem, end_trace_sem, bootstrap; GPtrArray *copies; /* struct lttngtop */ GHashTable *global_perf_liszt; +extern int quit; + struct lttngtop *data; struct processtop *find_process_tid(struct lttngtop *ctx, int pid, char *comm); @@ -66,4 +68,6 @@ char *get_context_comm(const struct bt_ctf_event *event); enum bt_cb_ret handle_statedump_process_state(struct bt_ctf_event *call_data, void *private_data); +struct tm format_timestamp(uint64_t timestamp); + #endif /* _COMMON_H */