perf_record_ksymbol
struct perf_record_ksymbol ksymbol;
struct perf_record_ksymbol *ksymbol_event = &event->ksymbol;
*ksymbol_event = (struct perf_record_ksymbol) {
.size = offsetof(struct perf_record_ksymbol, name),
struct perf_record_ksymbol *ksymbol;
*ksymbol = (struct perf_record_ksymbol) {
.size = offsetof(struct perf_record_ksymbol, name),
if (event->header.size < offsetof(struct perf_record_ksymbol, name) + 2 ||
event->header.size - offsetof(struct perf_record_ksymbol, name)))
[PERF_RECORD_KSYMBOL] = offsetof(struct perf_record_ksymbol, name) + 1,