*/
#define _LGPL_SOURCE
+#include <stddef.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
#include <lttng/ringbuffer-config.h>
static
size_t procname_get_size(struct lttng_ctx_field *field, size_t offset)
{
- size_t size = 0;
-
- size += LTTNG_UST_PROCNAME_LEN;
- return size;
+ return LTTNG_UST_PROCNAME_LEN;
}
static
void procname_get_value(struct lttng_ctx_field *field,
struct lttng_ctx_value *value)
{
- char *procname;
-
- procname = wrapper_getprocname();
- value->u.str = procname;
+ value->u.str = wrapper_getprocname();
}
int lttng_add_procname_to_ctx(struct lttng_ctx **ctx)