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>
Showing
- drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c 233 additions, 2 deletionsdrivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c
- drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.h 22 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.h
- drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer_tracepoint.h 78 additions, 0 deletions...t/ethernet/mellanox/mlx5/core/diag/fw_tracer_tracepoint.h
Please register or sign in to comment