* Return LTTNG_EVENT_RULE_STATUS_OK on success, LTTNG_EVENT_RULE_STATUS_INVALID
* if invalid parameters are passed.
*/
-extern enum lttng_event_rule_status lttng_event_rule_userspace_probe_set_name(
+extern enum lttng_event_rule_status lttng_event_rule_userspace_probe_set_event_name(
struct lttng_event_rule *rule, const char *name);
/*
* success, LTTNG_EVENT_RULE_STATUS_INVALID if an invalid parameter is passed,
* or LTTNG_EVENT_RULE_STATUS_UNSET if a name was not set prior to this call.
*/
-extern enum lttng_event_rule_status lttng_event_rule_userspace_probe_get_name(
+extern enum lttng_event_rule_status lttng_event_rule_userspace_probe_get_event_name(
const struct lttng_event_rule *rule, const char **name);
#ifdef __cplusplus
abort();
}
- status = lttng_event_rule_userspace_probe_get_name(rule, &name);
+ status = lttng_event_rule_userspace_probe_get_event_name(
+ rule, &name);
assert(status == LTTNG_EVENT_RULE_STATUS_OK);
ret_code = LTTNG_OK;
break;
goto error;
}
- event_rule_status = lttng_event_rule_userspace_probe_set_name(
- res.er, tracepoint_name);
+ event_rule_status =
+ lttng_event_rule_userspace_probe_set_event_name(
+ res.er, tracepoint_name);
if (event_rule_status != LTTNG_EVENT_RULE_STATUS_OK) {
ERR("Failed to set user space probe event rule's name to '%s'.",
tracepoint_name);
assert(lttng_event_rule_get_type(event_rule) == LTTNG_EVENT_RULE_TYPE_USERSPACE_PROBE);
- event_rule_status = lttng_event_rule_userspace_probe_get_name(event_rule, &name);
+ event_rule_status = lttng_event_rule_userspace_probe_get_event_name(
+ event_rule, &name);
if (event_rule_status != LTTNG_EVENT_RULE_STATUS_OK) {
ERR("Failed to get uprobe event rule's name.");
goto end;
uprobe = container_of(rule, struct lttng_event_rule_userspace_probe, parent);
uprobe->location = location;
- status = lttng_event_rule_userspace_probe_set_name(rule, name);
+ status = lttng_event_rule_userspace_probe_set_event_name(rule, name);
if (status != LTTNG_EVENT_RULE_STATUS_OK) {
ret = -1;
goto end;
return uprobe->location;
}
-enum lttng_event_rule_status lttng_event_rule_userspace_probe_set_name(
+enum lttng_event_rule_status lttng_event_rule_userspace_probe_set_event_name(
struct lttng_event_rule *rule, const char *name)
{
char *name_copy = NULL;
return status;
}
-enum lttng_event_rule_status lttng_event_rule_userspace_probe_get_name(
+enum lttng_event_rule_status lttng_event_rule_userspace_probe_get_event_name(
const struct lttng_event_rule *rule, const char **name)
{
struct lttng_event_rule_userspace_probe *uprobe;
ok(event_rule_status == LTTNG_EVENT_RULE_STATUS_OK,
"Setting uprobe event rule location");
- event_rule_status = lttng_event_rule_userspace_probe_set_name(
+ event_rule_status = lttng_event_rule_userspace_probe_set_event_name(
event_rule, trigger_name);
ok(event_rule_status == LTTNG_EVENT_RULE_STATUS_OK,
"Setting uprobe event rule name: '%s'", trigger_name);
probe_location, probe_location_tmp),
"Location is equal.");
- status = lttng_event_rule_userspace_probe_set_name(uprobe, probe_name);
+ status = lttng_event_rule_userspace_probe_set_event_name(uprobe, probe_name);
ok(status == LTTNG_EVENT_RULE_STATUS_OK,
"Setting uprobe event rule name: %s.", probe_name);
- status = lttng_event_rule_userspace_probe_get_name(uprobe, &tmp);
+ status = lttng_event_rule_userspace_probe_get_event_name(uprobe, &tmp);
ok(status == LTTNG_EVENT_RULE_STATUS_OK, "Getting uprobe name.");
ok(!strcmp(probe_name, tmp), "Uprobe name are equal.");