field = lttng_append_context(ctx);
if (!field)
return -ENOMEM;
+ if (lttng_find_context(*ctx, "ppid")) {
+ lttng_remove_context_field(ctx, field);
+ return -EEXIST;
+ }
field->event_field.name = "ppid";
field->event_field.type.atype = atype_integer;
field->event_field.type.u.basic.integer.size = sizeof(pid_t) * CHAR_BIT;