Message ID | 20250228-netcons_current-v2-4-f53ff79a0db2@debian.org |
---|---|
State | New |
Headers | show |
Series | netconsole: Add taskname sysdata support | expand |
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c index 96153fd01f46e..f46a0edf9c11e 100644 --- a/drivers/net/netconsole.c +++ b/drivers/net/netconsole.c @@ -104,6 +104,8 @@ struct netconsole_target_stats { enum sysdata_feature { /* Populate the CPU that sends the message */ SYSDATA_CPU_NR = BIT(0), + /* Populate the task name (as in current->comm) in sysdata */ + SYSDATA_TASKNAME = BIT(1), }; /** @@ -701,6 +703,8 @@ static size_t count_extradata_entries(struct netconsole_target *nt) /* Plus sysdata entries */ if (nt->sysdata_fields & SYSDATA_CPU_NR) entries += 1; + if (nt->sysdata_fields & SYSDATA_TASKNAME) + entries += 1; return entries; }