From: David Goulet Date: Mon, 16 May 2011 16:43:08 +0000 (-0400) Subject: Add lttng-kernel header X-Git-Tag: v2.0-pre1~139 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=93128a92561c2964186015a7e075c607613e6e75;p=lttng-tools.git Add lttng-kernel header This header contains copied structure from the new LTTng kernel tree use by the tracer and the consumer. We are not exporting them to the public anymore thus the removal from lttng.h header file. Signed-off-by: David Goulet --- 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 */ diff --git a/include/lttng/lttng.h b/include/lttng/lttng.h index 957484f09..f4b368f1f 100644 --- a/include/lttng/lttng.h +++ b/include/lttng/lttng.h @@ -60,27 +60,6 @@ struct lttng_trace { enum lttng_trace_type type; }; -/* TODO: don't export these into system-installed headers. */ -/* - * 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[]; -}; - extern int lttng_create_session(char *name, uuid_t *session_id); extern int lttng_destroy_session(uuid_t *uuid); extern int lttng_connect_sessiond(void); diff --git a/libkernelctl/libkernelctl.h b/libkernelctl/libkernelctl.h index 048e0b0e0..2c03e1088 100644 --- a/libkernelctl/libkernelctl.h +++ b/libkernelctl/libkernelctl.h @@ -20,7 +20,7 @@ #ifndef _LTT_LIBKERNELCTL_H #define _LTT_LIBKERNELCTL_H -#include +#include "lttng-kernel.h" int kernctl_create_channel(int fd, struct lttng_channel *chops); int kernctl_create_event(int fd, struct lttng_event *ev);