@@ -221,7 +221,7 @@ static int cxl_event_parse(struct tep_event *event, struct tep_record *record,
if (event_ctx->parse_event)
return event_ctx->parse_event(event, record,
- &event_ctx->jlist_head);
+ event_ctx->private_ctx);
return cxl_event_to_json(event, record, &event_ctx->jlist_head);
}
@@ -16,8 +16,9 @@ struct event_ctx {
struct list_head jlist_head;
const char *event_name; /* optional */
int event_pid; /* optional */
+ void *private_ctx; /* required with parse_event() */
int (*parse_event)(struct tep_event *event, struct tep_record *record,
- struct list_head *jlist_head); /* optional */
+ void *private_ctx);/* optional */
};
int cxl_parse_events(struct tracefs_instance *inst, struct event_ctx *ectx);