]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: FW tracer, parse traces and kernel tracing support
authorFeras Daoud <ferasda@mellanox.com>
Sun, 18 Feb 2018 08:06:35 +0000 (10:06 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 23 Jul 2018 22:01:11 +0000 (15:01 -0700)
commit4b1adef39da3260ab0d94a1cd5d2156295ab00b1
tree34b64f121ffd4dbbdf464bebdc884d514cddc29c
parent0abf0e008e4179f939b0b9a87e59f31ff9a46a4d
net/mlx5: FW tracer, parse traces and kernel tracing support

For each message the driver should do the following:
1- Find the message string in the strings database
2- Count the param number of each message
3- Wait for the param events and accumulate them
4- Calculate the event timestamp using the local event timestamp
and the first timestamp event following it.
5- Print message to trace log

Enable the tracing by:
echo 1 > /sys/kernel/debug/tracing/events/mlx5/mlx5_fw/enable

Read traces by:
cat /sys/kernel/debug/tracing/trace

Signed-off-by: Feras Daoud <ferasda@mellanox.com>
Signed-off-by: Erez Shitrit <erezsh@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
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer_tracepoint.h [new file with mode: 0644]