projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Abstract base `lttng_enabler` to support other types of enablers
[lttng-ust.git]
/
liblttng-ust
/
lttng-filter.c
diff --git
a/liblttng-ust/lttng-filter.c
b/liblttng-ust/lttng-filter.c
index 7dbe6f26e85c38667e872b7da94064ea06c94555..e9774b489acfe4672270cbd1ff952827f9292558 100644
(file)
--- a/
liblttng-ust/lttng-filter.c
+++ b/
liblttng-ust/lttng-filter.c
@@
-31,6
+31,7
@@
#include <urcu/rculist.h>
#include "lttng-filter.h"
#include <urcu/rculist.h>
#include "lttng-filter.h"
+#include "ust-events-internal.h"
static const char *opnames[] = {
[ FILTER_OP_UNKNOWN ] = "UNKNOWN",
static const char *opnames[] = {
[ FILTER_OP_UNKNOWN ] = "UNKNOWN",
@@
-508,17
+509,18
@@
void lttng_filter_sync_state(struct lttng_bytecode_runtime *runtime)
/*
* Link bytecode for all enablers referenced by an event.
*/
/*
* Link bytecode for all enablers referenced by an event.
*/
-void lttng_e
nabler_event
_link_bytecode(struct lttng_event *event,
- struct lttng_e
nabler *
enabler)
+void lttng_e
vent_enabler
_link_bytecode(struct lttng_event *event,
+ struct lttng_e
vent_enabler *event_
enabler)
{
struct lttng_ust_filter_bytecode_node *bc;
struct lttng_bytecode_runtime *runtime;
{
struct lttng_ust_filter_bytecode_node *bc;
struct lttng_bytecode_runtime *runtime;
+ struct lttng_enabler *base_enabler = lttng_event_enabler_as_enabler(event_enabler);
/* Can only be called for events with desc attached */
assert(event->desc);
/* Link each bytecode. */
/* Can only be called for events with desc attached */
assert(event->desc);
/* Link each bytecode. */
- cds_list_for_each_entry(bc, &enabler->filter_bytecode_head, node) {
+ cds_list_for_each_entry(bc, &
base_
enabler->filter_bytecode_head, node) {
int found = 0, ret;
struct cds_list_head *insert_loc;
int found = 0, ret;
struct cds_list_head *insert_loc;
This page took
0.02363 seconds
and
4
git commands to generate.