| 585 | } |
| 586 | |
| 587 | int mlx5dr_debug_dump(struct mlx5dr_context *ctx, FILE *f) |
| 588 | { |
| 589 | int ret; |
| 590 | |
| 591 | if (!f || !ctx) { |
| 592 | rte_errno = EINVAL; |
| 593 | return -rte_errno; |
| 594 | } |
| 595 | |
| 596 | pthread_spin_lock(&ctx->ctrl_lock); |
| 597 | ret = mlx5dr_debug_dump_context(f, ctx); |
| 598 | pthread_spin_unlock(&ctx->ctrl_lock); |
| 599 | |
| 600 | return -ret; |
| 601 | } |
no test coverage detected