X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng-kernel.h;fp=include%2Flttng-kernel.h;h=b8eb456725b6ee726bd4cf876c28ddc6d5e84476;hp=0000000000000000000000000000000000000000;hb=93128a92561c2964186015a7e075c607613e6e75;hpb=a55dd1367a35379b1208ddaf3212acb48e78004e diff --git a/include/lttng-kernel.h b/include/lttng-kernel.h new file mode 100644 index 000000000..b8eb45672 --- /dev/null +++ b/include/lttng-kernel.h @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2011 - Julien Desfossez + * Mathieu Desnoyers + * David Goulet + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * 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 _LTTNG_KERNEL_H +#define _LTTNG_KERNEL_H + +#include + +typedef uint64_t u64; + +/* + * LTTng DebugFS ABI structures. + */ +enum lttng_instrum_type { + INSTRUM_TRACEPOINTS, +}; + +struct lttng_channel { + int overwrite; /* 1: overwrite, 0: discard */ + u64 subbuf_size; + u64 num_subbuf; + unsigned int switch_timer_interval; + unsigned int read_timer_interval; +}; + +struct lttng_event { + enum lttng_instrum_type itype; + char name[]; +}; + +#endif /* _LTTNG_KERNEL_H */