projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change the UST event hash table match function
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
cmd.c
diff --git
a/src/bin/lttng-sessiond/cmd.c
b/src/bin/lttng-sessiond/cmd.c
index 37a803b05ff12d399bb9d6de6a1c8bafe9fb2b2f..eab52342cc2f60ce32d87add0e60e350d8dbe680 100644
(file)
--- a/
src/bin/lttng-sessiond/cmd.c
+++ b/
src/bin/lttng-sessiond/cmd.c
@@
-826,9
+826,6
@@
int cmd_enable_channel(struct ltt_session *session,
{
struct ltt_kernel_channel *kchan;
{
struct ltt_kernel_channel *kchan;
- /* Mandatory for a kernel channel. */
- assert(wpipe > 0);
-
kchan = trace_kernel_get_channel_by_name(attr->name,
session->kernel_session);
if (kchan == NULL) {
kchan = trace_kernel_get_channel_by_name(attr->name,
session->kernel_session);
if (kchan == NULL) {
@@
-1038,8
+1035,7
@@
error:
* Command LTTNG_ADD_CONTEXT processed by the client thread.
*/
int cmd_add_context(struct ltt_session *session, int domain,
* Command LTTNG_ADD_CONTEXT processed by the client thread.
*/
int cmd_add_context(struct ltt_session *session, int domain,
- char *channel_name, char *event_name, struct lttng_event_context *ctx,
- int kwpipe)
+ char *channel_name, struct lttng_event_context *ctx, int kwpipe)
{
int ret;
{
int ret;
@@
-1056,8
+1052,7
@@
int cmd_add_context(struct ltt_session *session, int domain,
}
/* Add kernel context to kernel tracer */
}
/* Add kernel context to kernel tracer */
- ret = context_kernel_add(session->kernel_session, ctx,
- event_name, channel_name);
+ ret = context_kernel_add(session->kernel_session, ctx, channel_name);
if (ret != LTTNG_OK) {
goto error;
}
if (ret != LTTNG_OK) {
goto error;
}
@@
-1086,8
+1081,7
@@
int cmd_add_context(struct ltt_session *session, int domain,
free(attr);
}
free(attr);
}
-
- ret = context_ust_add(usess, domain, ctx, event_name, channel_name);
+ ret = context_ust_add(usess, domain, ctx, channel_name);
if (ret != LTTNG_OK) {
goto error;
}
if (ret != LTTNG_OK) {
goto error;
}
@@
-1113,7
+1107,7
@@
error:
* Command LTTNG_SET_FILTER processed by the client thread.
*/
int cmd_set_filter(struct ltt_session *session, int domain,
* Command LTTNG_SET_FILTER processed by the client thread.
*/
int cmd_set_filter(struct ltt_session *session, int domain,
- char *channel_name,
char *event_name
,
+ char *channel_name,
struct lttng_event *event
,
struct lttng_filter_bytecode *bytecode)
{
int ret;
struct lttng_filter_bytecode *bytecode)
{
int ret;
@@
-1126,7
+1120,7
@@
int cmd_set_filter(struct ltt_session *session, int domain,
{
struct ltt_ust_session *usess = session->ust_session;
{
struct ltt_ust_session *usess = session->ust_session;
- ret = filter_ust_set(usess, domain, bytecode, event
_name
, channel_name);
+ ret = filter_ust_set(usess, domain, bytecode, event, channel_name);
if (ret != LTTNG_OK) {
goto error;
}
if (ret != LTTNG_OK) {
goto error;
}
This page took
0.026251 seconds
and
4
git commands to generate.