pevent_print_event() prints record.cpu; make sure it's initialized.
The cpu field from pthread_data is my best guess at a suitable value:
parse_ras_data() was already printing it separately.
Signed-off-by: Sergio Gelato <Sergio.Gelato@astro.su.se>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
record.size = kbuffer_event_size(kbuf);
record.data = data;
record.offset = kbuffer_curr_offset(kbuf);
+ record.cpu = pdata->cpu;
/* note offset is just offset in subbuffer */
record.missed_events = kbuffer_missed_events(kbuf);
/* TODO - logging */
trace_seq_init(&s);
- printf("cpu %02d:", pdata->cpu);
pevent_print_event(pdata->ras->pevent, &s, &record);
trace_seq_do_printf(&s);
printf("\n");