projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
relayd: track the live viewer worker thread's epoll fd
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
event.c
diff --git
a/src/bin/lttng-sessiond/event.c
b/src/bin/lttng-sessiond/event.c
index f4b976f3b7ec27dfefa45bed373c5d01fbf10736..96b0d2e7a25555310e3fb567bd2096d3081674ee 100644
(file)
--- a/
src/bin/lttng-sessiond/event.c
+++ b/
src/bin/lttng-sessiond/event.c
@@
-31,7
+31,8
@@
#include "event.h"
#include "kernel.h"
#include "lttng-sessiond.h"
#include "event.h"
#include "kernel.h"
#include "lttng-sessiond.h"
-#include "ust-ctl.h"
+#include "lttng-ust-ctl.h"
+#include "lttng-ust-error.h"
#include "ust-app.h"
#include "trace-kernel.h"
#include "trace-ust.h"
#include "ust-app.h"
#include "trace-kernel.h"
#include "trace-ust.h"
@@
-69,7
+70,7
@@
static void add_unique_ust_event(struct lttng_ht *ht,
* If event_name is NULL all events of the specified type are disabled.
*/
int event_kernel_disable_event(struct ltt_kernel_channel *kchan,
* If event_name is NULL all events of the specified type are disabled.
*/
int event_kernel_disable_event(struct ltt_kernel_channel *kchan,
- char *event_name, enum lttng_event_type type)
+ c
onst c
har *event_name, enum lttng_event_type type)
{
int ret, error = 0, found = 0;
struct ltt_kernel_event *kevent;
{
int ret, error = 0, found = 0;
struct ltt_kernel_event *kevent;
@@
-259,7
+260,7
@@
error:
* Disable UST tracepoint of a channel from a UST session.
*/
int event_ust_disable_tracepoint(struct ltt_ust_session *usess,
* Disable UST tracepoint of a channel from a UST session.
*/
int event_ust_disable_tracepoint(struct ltt_ust_session *usess,
- struct ltt_ust_channel *uchan, char *event_name)
+ struct ltt_ust_channel *uchan, c
onst c
har *event_name)
{
int ret;
struct ltt_ust_event *uevent;
{
int ret;
struct ltt_ust_event *uevent;
@@
-511,10
+512,12
@@
int event_agent_enable(struct ltt_ust_session *usess,
filter = NULL;
filter_expression = NULL;
created = 1;
filter = NULL;
filter_expression = NULL;
created = 1;
+ assert(!aevent->enabled);
}
}
- if (created && filter) {
- ret = add_filter_app_ctx(filter, filter_expression, agt);
+ if (created && aevent->filter) {
+ ret = add_filter_app_ctx(
+ aevent->filter, aevent->filter_expression, agt);
if (ret != LTTNG_OK) {
goto error;
}
if (ret != LTTNG_OK) {
goto error;
}
@@
-672,7
+675,7
@@
error:
* Return LTTNG_OK on success or else a LTTNG_ERR* code.
*/
int event_agent_disable(struct ltt_ust_session *usess, struct agent *agt,
* Return LTTNG_OK on success or else a LTTNG_ERR* code.
*/
int event_agent_disable(struct ltt_ust_session *usess, struct agent *agt,
- char *event_name)
+ c
onst c
har *event_name)
{
int ret = LTTNG_OK;
struct agent_event *aevent;
{
int ret = LTTNG_OK;
struct agent_event *aevent;
This page took
0.039643 seconds
and
5
git commands to generate.