In trace-kernel.c, the path is not used anymore on channel creation.
Same goes for trace-ust.c for session creation, the domain pointer is
not used.
Signed-off-by: David Goulet <dgoulet@efficios.com>
}
/* Channel not found, creating it */
- ret = kernel_create_channel(ksession, attr, ksession->trace_path);
+ ret = kernel_create_channel(ksession, attr);
if (ret < 0) {
ret = LTTNG_ERR_KERN_CHAN_FAIL;
goto error;
* kernel session.
*/
int kernel_create_channel(struct ltt_kernel_session *session,
- struct lttng_channel *chan, char *path)
+ struct lttng_channel *chan)
{
int ret;
struct ltt_kernel_channel *lkc;
assert(session);
assert(chan);
- assert(path);
/* Allocate kernel channel */
- lkc = trace_kernel_create_channel(chan, path);
+ lkc = trace_kernel_create_channel(chan);
if (lkc == NULL) {
goto error;
}
- DBG3("Kernel create channel %s in %s with attr: %d, %" PRIu64 ", %" PRIu64 ", %u, %u, %d",
- chan->name, path, lkc->channel->attr.overwrite,
+ DBG3("Kernel create channel %s with attr: %d, %" PRIu64 ", %" PRIu64 ", %u, %u, %d",
+ chan->name, lkc->channel->attr.overwrite,
lkc->channel->attr.subbuf_size, lkc->channel->attr.num_subbuf,
lkc->channel->attr.switch_timer_interval, lkc->channel->attr.read_timer_interval,
lkc->channel->attr.output);
struct lttng_kernel_context *ctx);
int kernel_create_session(struct ltt_session *session, int tracer_fd);
int kernel_create_channel(struct ltt_kernel_session *session,
- struct lttng_channel *chan, char *path);
+ struct lttng_channel *chan);
int kernel_create_event(struct lttng_event *ev, struct ltt_kernel_channel *channel);
int kernel_disable_channel(struct ltt_kernel_channel *chan);
int kernel_disable_event(struct ltt_kernel_event *event);
DBG("Creating UST session");
- lus = trace_ust_create_session(session->path, session->id, domain);
+ lus = trace_ust_create_session(session->path, session->id);
if (lus == NULL) {
ret = LTTNG_ERR_UST_SESS_FAIL;
goto error;
* Return pointer to structure or NULL.
*/
struct ltt_kernel_channel *trace_kernel_create_channel(
- struct lttng_channel *chan, char *path)
+ struct lttng_channel *chan)
{
struct ltt_kernel_channel *lkc;
* 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_metadata *trace_kernel_create_metadata(void);
struct ltt_kernel_stream *trace_kernel_create_stream(const char *name,
* Return pointer to structure or NULL.
*/
struct ltt_ust_session *trace_ust_create_session(char *path,
- unsigned int session_id, struct lttng_domain *domain)
+ unsigned int session_id)
{
struct ltt_ust_session *lus;
* Create functions malloc() the data structure.
*/
struct ltt_ust_session *trace_ust_create_session(char *path,
- unsigned int session_id, struct lttng_domain *domain);
+ unsigned int session_id);
struct ltt_ust_channel *trace_ust_create_channel(struct lttng_channel *attr,
char *path);
struct ltt_ust_event *trace_ust_create_event(struct lttng_event *ev,
memset(&attr, 0, sizeof(attr));
printf("Creating kernel channel: ");
- chan = trace_kernel_create_channel(&attr, PATH1);
+ chan = trace_kernel_create_channel(&attr);
assert(chan != NULL);
PRINT_OK();
dom.type = LTTNG_DOMAIN_UST;
- usess = trace_ust_create_session(PATH1, 42, &dom);
+ usess = trace_ust_create_session(PATH1, 42);
assert(usess != NULL);
PRINT_OK();