break;
}
break;
+ case LTTNG_KERNEL_EVENT_TYPE_COUNTER:
+ break;
default:
break;
}
break;
}
break;
+ case LTTNG_KERNEL_EVENT_TYPE_COUNTER:
+ break;
default:
break;
}
bool match_event_key(struct lttng_kernel_event_common *event, const char *key_string)
{
switch (event->type) {
- case LTTNG_KERNEL_EVENT_TYPE_RECORDER: /* Fall-through */
+ case LTTNG_KERNEL_EVENT_TYPE_RECORDER:
+ lttng_fallthrough;
case LTTNG_KERNEL_EVENT_TYPE_NOTIFIER:
return true;
case LTTNG_KERNEL_ABI_KRETPROBE:
switch (event->type) {
case LTTNG_KERNEL_EVENT_TYPE_RECORDER:
+ lttng_fallthrough;
case LTTNG_KERNEL_EVENT_TYPE_COUNTER:
lttng_kretprobes_unregister(event);
ret = 0;
case LTTNG_KERNEL_ABI_NOOP:
switch (event->type) {
case LTTNG_KERNEL_EVENT_TYPE_RECORDER:
+ lttng_fallthrough;
case LTTNG_KERNEL_EVENT_TYPE_COUNTER:
ret = 0;
break;
{
switch (event->type) {
case LTTNG_KERNEL_EVENT_TYPE_RECORDER:
+ lttng_fallthrough;
+ case LTTNG_KERNEL_EVENT_TYPE_COUNTER:
break;
case LTTNG_KERNEL_EVENT_TYPE_NOTIFIER:
{
switch (event->type) {
case LTTNG_KERNEL_EVENT_TYPE_RECORDER:
+ lttng_fallthrough;
+ case LTTNG_KERNEL_EVENT_TYPE_COUNTER:
{
- struct lttng_kernel_event_recorder *event_recorder =
- container_of(event, struct lttng_kernel_event_recorder, parent);
+ struct lttng_kernel_event_session_common_private *event_session_common_priv =
+ container_of(event->priv, struct lttng_kernel_event_session_common_private, parent);
/*
* Enabled state is based on union of enablers, with
* intersection of session and channel transient enable
* states.
*/
- return enabled && event_recorder->chan->parent.session->priv->tstate && event_recorder->chan->priv->parent.tstate;
+ return enabled && event_session_common_priv->chan->session->priv->tstate && event_session_common_priv->chan->priv->tstate;
}
case LTTNG_KERNEL_EVENT_TYPE_NOTIFIER:
return enabled;