* Returns 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_kernel_probe_set_name(
+extern enum lttng_event_rule_status lttng_event_rule_kernel_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_kernel_probe_get_name(
+extern enum lttng_event_rule_status lttng_event_rule_kernel_probe_get_event_name(
const struct lttng_event_rule *rule, const char **name);
#ifdef __cplusplus
kernel_event_notifier->event.u.kprobe.symbol_name[LTTNG_KERNEL_SYM_NAME_LEN - 1] = '\0';
- status = lttng_event_rule_kernel_probe_get_name(rule, &name);
+ status = lttng_event_rule_kernel_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_kernel_probe_set_name(res.er, tracepoint_name);
+ event_rule_status = lttng_event_rule_kernel_probe_set_event_name(res.er, tracepoint_name);
if (event_rule_status != LTTNG_EVENT_RULE_STATUS_OK) {
ERR("Failed to set kprobe event rule's name to '%s'.", tracepoint_name);
goto error;
assert(lttng_event_rule_get_type(event_rule) == LTTNG_EVENT_RULE_TYPE_KERNEL_PROBE);
- event_rule_status = lttng_event_rule_kernel_probe_get_name(event_rule, &name);
+ event_rule_status = lttng_event_rule_kernel_probe_get_event_name(event_rule, &name);
if (event_rule_status != LTTNG_EVENT_RULE_STATUS_OK) {
ERR("Failed to get kprobe event rule's name.");
goto end;
/* Skip after the location */
offset += kprobe_comm->location_len;
- status = lttng_event_rule_kernel_probe_set_name(rule, name);
+ status = lttng_event_rule_kernel_probe_set_event_name(rule, name);
if (status != LTTNG_EVENT_RULE_STATUS_OK) {
ERR("Failed to set event rule kprobe name.");
ret = -1;
return status;
}
-enum lttng_event_rule_status lttng_event_rule_kernel_probe_set_name(
+enum lttng_event_rule_status lttng_event_rule_kernel_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_kernel_probe_get_name(
+enum lttng_event_rule_status lttng_event_rule_kernel_probe_get_event_name(
const struct lttng_event_rule *rule, const char **name)
{
struct lttng_event_rule_kernel_probe *kprobe;
ok(event_rule_status == LTTNG_EVENT_RULE_STATUS_OK,
"Setting kprobe event rule location: '%s'", symbol_name);
- event_rule_status = lttng_event_rule_kernel_probe_set_name(
+ event_rule_status = lttng_event_rule_kernel_probe_set_event_name(
event_rule, trigger_name);
ok(event_rule_status == LTTNG_EVENT_RULE_STATUS_OK,
"Setting kprobe event rule name: '%s'", trigger_name);
"Getting kprobe event rule location.");
ok(lttng_kernel_probe_location_is_equal(location, _location), "Locations are equal.");
- status = lttng_event_rule_kernel_probe_set_name(kprobe, probe_name);
+ status = lttng_event_rule_kernel_probe_set_event_name(kprobe, probe_name);
ok(status == LTTNG_EVENT_RULE_STATUS_OK,
"Setting kprobe event rule name: %s.", probe_name);
- status = lttng_event_rule_kernel_probe_get_name(kprobe, &tmp);
+ status = lttng_event_rule_kernel_probe_get_event_name(kprobe, &tmp);
ok(status == LTTNG_EVENT_RULE_STATUS_OK, "Getting kprobe name.");
ok(!strcmp(probe_name, tmp), "kprobe name are equal.");