static void vpid_get_value(struct lttng_ctx_field *field, union lttng_ctx_value *value) { pid_t pid; pid = wrapper_getpid(); value->s64 = pid; }
static void vpid_record(struct lttng_ctx_field *field, struct lttng_ust_lib_ring_buffer_ctx *ctx, struct ltt_channel *chan) { pid_t pid; pid = wrapper_getpid(); lib_ring_buffer_align_ctx(ctx, lttng_alignof(pid)); chan->ops->event_write(ctx, &pid, sizeof(pid)); }