projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unused variables in trace-kernel/ust.c
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
trace-kernel.h
diff --git
a/src/bin/lttng-sessiond/trace-kernel.h
b/src/bin/lttng-sessiond/trace-kernel.h
index bc4c0e763bfaa8c2b1694b0cebb956629ba48cfb..9050c4d044dad7185572bdec2f09430e41b15f2f 100644
(file)
--- a/
src/bin/lttng-sessiond/trace-kernel.h
+++ b/
src/bin/lttng-sessiond/trace-kernel.h
@@
-22,6
+22,8
@@
#include <lttng/lttng.h>
#include <common/lttng-kernel.h>
#include <lttng/lttng.h>
#include <common/lttng-kernel.h>
+#include <common/lttng-kernel-old.h>
+#include <common/defaults.h>
#include "consumer.h"
#include "consumer.h"
@@
-44,11
+46,6
@@
struct ltt_kernel_channel_list {
struct ltt_kernel_event {
int fd;
int enabled;
struct ltt_kernel_event {
int fd;
int enabled;
- /*
- * TODO: need internal representation to support more than a
- * single context.
- */
- struct lttng_kernel_context *ctx;
struct lttng_kernel_event *event;
struct cds_list_head list;
};
struct lttng_kernel_event *event;
struct cds_list_head list;
};
@@
-68,6
+65,8
@@
struct ltt_kernel_channel {
struct ltt_kernel_event_list events_list;
struct ltt_kernel_stream_list stream_list;
struct cds_list_head list;
struct ltt_kernel_event_list events_list;
struct ltt_kernel_stream_list stream_list;
struct cds_list_head list;
+ /* Session pointer which has a reference to this object. */
+ struct ltt_kernel_session *session;
};
/* Metadata */
};
/* Metadata */
@@
-81,7
+80,7
@@
struct ltt_kernel_stream {
int fd;
int state;
/* Format is %s_%d respectively channel name and CPU number. */
int fd;
int state;
/* Format is %s_%d respectively channel name and CPU number. */
- char name[
LTTNG_SYMBOL
_NAME_LEN];
+ char name[
DEFAULT_STREAM
_NAME_LEN];
struct cds_list_head list;
};
struct cds_list_head list;
};
@@
-90,7
+89,6
@@
struct ltt_kernel_session {
int fd;
int metadata_stream_fd;
int consumer_fds_sent;
int fd;
int metadata_stream_fd;
int consumer_fds_sent;
- int consumer_fd;
unsigned int channel_count;
unsigned int stream_count_global;
char *trace_path;
unsigned int channel_count;
unsigned int stream_count_global;
char *trace_path;
@@
-107,6
+105,10
@@
struct ltt_kernel_session {
*/
struct consumer_output *consumer;
struct consumer_output *tmp_consumer;
*/
struct consumer_output *consumer;
struct consumer_output *tmp_consumer;
+ /* Tracing session id */
+ unsigned int id;
+ /* Session is started and active */
+ unsigned int started;
};
/*
};
/*
@@
-121,9
+123,10
@@
struct ltt_kernel_channel *trace_kernel_get_channel_by_name(
* Create functions malloc() the data structure.
*/
struct ltt_kernel_session *trace_kernel_create_session(char *path);
* Create functions malloc() the data structure.
*/
struct ltt_kernel_session *trace_kernel_create_session(char *path);
-struct ltt_kernel_channel *trace_kernel_create_channel(struct lttng_channel *chan, char *path);
+struct ltt_kernel_channel *trace_kernel_create_channel(
+ struct lttng_channel *chan);
struct ltt_kernel_event *trace_kernel_create_event(struct lttng_event *ev);
struct ltt_kernel_event *trace_kernel_create_event(struct lttng_event *ev);
-struct ltt_kernel_metadata *trace_kernel_create_metadata(
char *path
);
+struct ltt_kernel_metadata *trace_kernel_create_metadata(
void
);
struct ltt_kernel_stream *trace_kernel_create_stream(const char *name,
unsigned int count);
struct ltt_kernel_stream *trace_kernel_create_stream(const char *name,
unsigned int count);
This page took
0.024456 seconds
and
4
git commands to generate.