* will stay invariant for the rest of the session.
*/
event = lttng_kernel_event_create(&event_enabler->parent.parent, NULL, NULL);
- WARN_ON_ONCE(IS_ERR(event));
lttng_event_enabler_destroy(&event_enabler->parent.parent);
if (IS_ERR(event)) {
ret = PTR_ERR(event);
* will stay invariant for the rest of the session.
*/
event[0] = lttng_kernel_event_create(&event_enabler->parent.parent, NULL, &event_pair);
- WARN_ON_ONCE(IS_ERR(event[0]));
if (IS_ERR(event[0])) {
lttng_event_enabler_destroy(&event_enabler->parent.parent);
ret = PTR_ERR(event[0]);
strcpy(event_pair.name, event_param->name);
strcat(event_pair.name, "_exit");
event[1] = lttng_kernel_event_create(&event_enabler->parent.parent, NULL, &event_pair);
- WARN_ON_ONCE(IS_ERR(event[1]));
-
lttng_event_enabler_destroy(&event_enabler->parent.parent);
if (IS_ERR(event[1])) {
ret = PTR_ERR(event[1]);
* will stay invariant for the rest of the session.
*/
event = lttng_kernel_event_create(&event_enabler->parent.parent, NULL, NULL);
- WARN_ON_ONCE(IS_ERR(event));
lttng_event_enabler_destroy(&event_enabler->parent.parent);
if (IS_ERR(event)) {
ret = PTR_ERR(event);
* will stay invariant for the rest of the session.
*/
event[0] = lttng_kernel_event_create(&event_enabler->parent.parent, NULL, &event_pair);
- WARN_ON_ONCE(IS_ERR(event[0]));
if (IS_ERR(event[0])) {
lttng_event_enabler_destroy(&event_enabler->parent.parent);
ret = PTR_ERR(event[0]);
strcpy(event_pair.name, event_param->name);
strcat(event_pair.name, "_exit");
event[1] = lttng_kernel_event_create(&event_enabler->parent.parent, NULL, &event_pair);
- WARN_ON_ONCE(IS_ERR(event[1]));
-
lttng_event_enabler_destroy(&event_enabler->parent.parent);
if (IS_ERR(event[1])) {
ret = PTR_ERR(event[1]);
goto event_notifier_error;
}
event = lttng_kernel_event_create(&event_notifier_enabler->parent, NULL, NULL);
- WARN_ON_ONCE(IS_ERR(event));
lttng_event_enabler_destroy(&event_notifier_enabler->parent);
if (IS_ERR(event)) {
ret = PTR_ERR(event);