]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: FW tracer, create trace buffer and copy strings database
authorFeras Daoud <ferasda@mellanox.com>
Tue, 6 Feb 2018 15:45:57 +0000 (17:45 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 23 Jul 2018 22:01:11 +0000 (15:01 -0700)
commitabd7336475485fda5cd7150490d87099816b779d
tree7a279622bd3720be9d7608dd5da4a9ae59cb39fb
parent73b82f23f168886d32fc9edba1ff1934227023ee
net/mlx5: FW tracer, create trace buffer and copy strings database

For each PF do the following:
1- Allocate memory for the tracer strings database and read the
strings from the FW to the SW. These strings will be used later for
parsing traces.
2- Allocate and dma map tracer buffers.

Traces that will be written into the buffer will be parsed as a group
of one or more traces, referred to as trace message. The trace message
represents a C-like printf string.
First trace of a message holds the pointer to the correct string in
strings database. The following traces holds the variables of the
message.

Signed-off-by: Feras Daoud <ferasda@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.h