__attribute__((unused)))
{
/* Unsupported. */
- return NULL;
+ return nullptr;
}
static const struct lttng_bytecode *
__attribute__((unused)))
{
/* Unsupported. */
- return NULL;
+ return nullptr;
}
static enum lttng_event_rule_generate_exclusions_status
struct lttng_event_exclusion **exclusions)
{
/* Unsupported. */
- *exclusions = NULL;
+ *exclusions = nullptr;
return LTTNG_EVENT_RULE_GENERATE_EXCLUSIONS_STATUS_NONE;
}
const struct lttng_userspace_probe_location *location)
{
int ret;
- struct lttng_userspace_probe_location *location_copy = NULL;
+ struct lttng_userspace_probe_location *location_copy = nullptr;
if (!uprobe || !location || uprobe->location) {
ret = -1;
}
uprobe->location = location_copy;
- location_copy = NULL;
+ location_copy = nullptr;
ret = 0;
end:
lttng_userspace_probe_location_destroy(location_copy);
int ret;
enum lttng_error_code ret_code;
enum lttng_event_rule_status status;
- const char *event_name = NULL;
- const struct lttng_userspace_probe_location *location = NULL;
+ const char *event_name = nullptr;
+ const struct lttng_userspace_probe_location *location = nullptr;
LTTNG_ASSERT(rule);
LTTNG_ASSERT(writer);
struct lttng_event_rule *
lttng_event_rule_kernel_uprobe_create(const struct lttng_userspace_probe_location *location)
{
- struct lttng_event_rule *rule = NULL;
+ struct lttng_event_rule *rule = nullptr;
struct lttng_event_rule_kernel_uprobe *urule;
urule = zmalloc<lttng_event_rule_kernel_uprobe>();
if (userspace_probe_set_location(urule, location)) {
lttng_event_rule_destroy(rule);
- rule = NULL;
+ rule = nullptr;
}
end:
const struct lttng_event_rule_kernel_uprobe_comm *uprobe_comm;
const char *name;
struct lttng_buffer_view current_buffer_view;
- struct lttng_event_rule *rule = NULL;
- struct lttng_userspace_probe_location *location = NULL;
+ struct lttng_event_rule *rule = nullptr;
+ struct lttng_userspace_probe_location *location = nullptr;
enum lttng_event_rule_status status;
if (!_event_rule) {
}
*_event_rule = rule;
- rule = NULL;
+ rule = nullptr;
ret = offset;
end:
lttng_userspace_probe_location_destroy(location);
enum lttng_event_rule_status
lttng_event_rule_kernel_uprobe_set_event_name(struct lttng_event_rule *rule, const char *name)
{
- char *name_copy = NULL;
+ char *name_copy = nullptr;
struct lttng_event_rule_kernel_uprobe *uprobe;
enum lttng_event_rule_status status = LTTNG_EVENT_RULE_STATUS_OK;
}
uprobe->name = name_copy;
- name_copy = NULL;
+ name_copy = nullptr;
end:
return status;
}