OSDN Git Service

bnxt_en: extract coredump command line from current task
authorEdwin Peer <edwin.peer@broadcom.com>
Fri, 29 Oct 2021 07:47:51 +0000 (03:47 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Oct 2021 11:13:05 +0000 (12:13 +0100)
commit4e59f0600790cc205192203570a677375671d1d7
tree907195ab7c3adcb6c7da79e71b45ac8b98056083
parent80194db9f53bc8877468f96734133b7a8d28aa4c
bnxt_en: extract coredump command line from current task

Tools other than 'ethtool -w' may be used to produce a coredump. For
devlink health, such dumps could even be driver initiated in response
to a health event. In these cases, the kernel thread information will
be placed in the coredump record instead.

v2: use min_t() instead of min() to fix the mismatched type warning

Signed-off-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_coredump.c