Home
last modified time | relevance | path

Searched refs:fmsg (Results 1 – 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/netdevsim/
Dhealth.c13 struct devlink_fmsg *fmsg, void *priv_ctx, in nsim_dev_empty_reporter_dump() argument
21 struct devlink_fmsg *fmsg, in nsim_dev_empty_reporter_diagnose() argument
63 static int nsim_dev_dummy_fmsg_put(struct devlink_fmsg *fmsg, u32 binary_len) in nsim_dev_dummy_fmsg_put() argument
69 err = devlink_fmsg_bool_pair_put(fmsg, "test_bool", true); in nsim_dev_dummy_fmsg_put()
72 err = devlink_fmsg_u8_pair_put(fmsg, "test_u8", 1); in nsim_dev_dummy_fmsg_put()
75 err = devlink_fmsg_u32_pair_put(fmsg, "test_u32", 3); in nsim_dev_dummy_fmsg_put()
78 err = devlink_fmsg_u64_pair_put(fmsg, "test_u64", 4); in nsim_dev_dummy_fmsg_put()
81 err = devlink_fmsg_string_pair_put(fmsg, "test_string", "somestring"); in nsim_dev_dummy_fmsg_put()
89 err = devlink_fmsg_binary_pair_put(fmsg, "test_binary", binary, binary_len); in nsim_dev_dummy_fmsg_put()
94 err = devlink_fmsg_pair_nest_start(fmsg, "test_nest"); in nsim_dev_dummy_fmsg_put()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Dreporter_rx.c181 struct devlink_fmsg *fmsg) in mlx5e_reporter_icosq_diagnose() argument
185 err = mlx5e_health_fmsg_named_obj_nest_start(fmsg, "ICOSQ"); in mlx5e_reporter_icosq_diagnose()
189 err = devlink_fmsg_u32_pair_put(fmsg, "sqn", icosq->sqn); in mlx5e_reporter_icosq_diagnose()
193 err = devlink_fmsg_u8_pair_put(fmsg, "HW state", hw_state); in mlx5e_reporter_icosq_diagnose()
197 err = devlink_fmsg_u32_pair_put(fmsg, "cc", icosq->cc); in mlx5e_reporter_icosq_diagnose()
201 err = devlink_fmsg_u32_pair_put(fmsg, "pc", icosq->pc); in mlx5e_reporter_icosq_diagnose()
205 err = devlink_fmsg_u32_pair_put(fmsg, "WQE size", in mlx5e_reporter_icosq_diagnose()
210 err = mlx5e_health_fmsg_named_obj_nest_start(fmsg, "CQ"); in mlx5e_reporter_icosq_diagnose()
214 err = devlink_fmsg_u32_pair_put(fmsg, "cqn", icosq->cq.mcq.cqn); in mlx5e_reporter_icosq_diagnose()
218 err = devlink_fmsg_u32_pair_put(fmsg, "cc", icosq->cq.wq.cc); in mlx5e_reporter_icosq_diagnose()
[all …]
Dhealth.c8 int mlx5e_health_fmsg_named_obj_nest_start(struct devlink_fmsg *fmsg, char *name) in mlx5e_health_fmsg_named_obj_nest_start() argument
12 err = devlink_fmsg_pair_nest_start(fmsg, name); in mlx5e_health_fmsg_named_obj_nest_start()
16 err = devlink_fmsg_obj_nest_start(fmsg); in mlx5e_health_fmsg_named_obj_nest_start()
23 int mlx5e_health_fmsg_named_obj_nest_end(struct devlink_fmsg *fmsg) in mlx5e_health_fmsg_named_obj_nest_end() argument
27 err = devlink_fmsg_obj_nest_end(fmsg); in mlx5e_health_fmsg_named_obj_nest_end()
31 err = devlink_fmsg_pair_nest_end(fmsg); in mlx5e_health_fmsg_named_obj_nest_end()
38 int mlx5e_health_cq_diag_fmsg(struct mlx5e_cq *cq, struct devlink_fmsg *fmsg) in mlx5e_health_cq_diag_fmsg() argument
53 err = mlx5e_health_fmsg_named_obj_nest_start(fmsg, "CQ"); in mlx5e_health_cq_diag_fmsg()
57 err = devlink_fmsg_u32_pair_put(fmsg, "cqn", cq->mcq.cqn); in mlx5e_health_cq_diag_fmsg()
61 err = devlink_fmsg_u8_pair_put(fmsg, "HW status", hw_status); in mlx5e_health_cq_diag_fmsg()
[all …]
Dreporter_tx.c144 mlx5e_tx_reporter_build_diagnose_output(struct devlink_fmsg *fmsg, in mlx5e_tx_reporter_build_diagnose_output() argument
156 err = devlink_fmsg_obj_nest_start(fmsg); in mlx5e_tx_reporter_build_diagnose_output()
160 err = devlink_fmsg_u32_pair_put(fmsg, "channel ix", sq->ch_ix); in mlx5e_tx_reporter_build_diagnose_output()
164 err = devlink_fmsg_u32_pair_put(fmsg, "tc", tc); in mlx5e_tx_reporter_build_diagnose_output()
168 err = devlink_fmsg_u32_pair_put(fmsg, "txq ix", sq->txq_ix); in mlx5e_tx_reporter_build_diagnose_output()
172 err = devlink_fmsg_u32_pair_put(fmsg, "sqn", sq->sqn); in mlx5e_tx_reporter_build_diagnose_output()
176 err = devlink_fmsg_u8_pair_put(fmsg, "HW state", state); in mlx5e_tx_reporter_build_diagnose_output()
180 err = devlink_fmsg_bool_pair_put(fmsg, "stopped", stopped); in mlx5e_tx_reporter_build_diagnose_output()
184 err = devlink_fmsg_u32_pair_put(fmsg, "cc", sq->cc); in mlx5e_tx_reporter_build_diagnose_output()
188 err = devlink_fmsg_u32_pair_put(fmsg, "pc", sq->pc); in mlx5e_tx_reporter_build_diagnose_output()
[all …]
Dhealth.h24 int mlx5e_health_cq_diag_fmsg(struct mlx5e_cq *cq, struct devlink_fmsg *fmsg);
25 int mlx5e_health_cq_common_diag_fmsg(struct mlx5e_cq *cq, struct devlink_fmsg *fmsg);
26 int mlx5e_health_eq_diag_fmsg(struct mlx5_eq_comp *eq, struct devlink_fmsg *fmsg);
27 int mlx5e_health_fmsg_named_obj_nest_start(struct devlink_fmsg *fmsg, char *name);
28 int mlx5e_health_fmsg_named_obj_nest_end(struct devlink_fmsg *fmsg);
41 int (*dump)(struct mlx5e_priv *priv, struct devlink_fmsg *fmsg, void *ctx);
55 struct devlink_fmsg *fmsg);
56 int mlx5e_health_queue_dump(struct mlx5e_priv *priv, struct devlink_fmsg *fmsg,
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
Dhinic_devlink.c330 static int chip_fault_show(struct devlink_fmsg *fmsg, in chip_fault_show() argument
341 err = devlink_fmsg_u32_pair_put(fmsg, "Function level err func_id", in chip_fault_show()
347 err = devlink_fmsg_u8_pair_put(fmsg, "module_id", event->event.chip.node_id); in chip_fault_show()
351 err = devlink_fmsg_u32_pair_put(fmsg, "err_type", (u32)event->event.chip.err_type); in chip_fault_show()
355 err = devlink_fmsg_string_pair_put(fmsg, "err_level", level_str[fault_level]); in chip_fault_show()
359 err = devlink_fmsg_u32_pair_put(fmsg, "err_csr_addr", in chip_fault_show()
364 err = devlink_fmsg_u32_pair_put(fmsg, "err_csr_value", in chip_fault_show()
372 static int fault_report_show(struct devlink_fmsg *fmsg, in fault_report_show() argument
383 err = devlink_fmsg_string_pair_put(fmsg, "Fault type", type_str[fault_type]); in fault_report_show()
387 err = devlink_fmsg_binary_pair_put(fmsg, "Fault raw data", in fault_report_show()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Dhealth.c410 struct devlink_fmsg *fmsg, in mlx5_fw_reporter_diagnose() argument
420 err = devlink_fmsg_u8_pair_put(fmsg, "Syndrome", synd); in mlx5_fw_reporter_diagnose()
423 return devlink_fmsg_string_pair_put(fmsg, "Description", hsynd_str(synd)); in mlx5_fw_reporter_diagnose()
432 mlx5_fw_reporter_ctx_pairs_put(struct devlink_fmsg *fmsg, in mlx5_fw_reporter_ctx_pairs_put() argument
437 err = devlink_fmsg_u8_pair_put(fmsg, "syndrome", in mlx5_fw_reporter_ctx_pairs_put()
441 err = devlink_fmsg_u32_pair_put(fmsg, "fw_miss_counter", in mlx5_fw_reporter_ctx_pairs_put()
450 struct devlink_fmsg *fmsg) in mlx5_fw_reporter_heath_buffer_data_put() argument
460 err = devlink_fmsg_pair_nest_start(fmsg, "health buffer"); in mlx5_fw_reporter_heath_buffer_data_put()
463 err = devlink_fmsg_obj_nest_start(fmsg); in mlx5_fw_reporter_heath_buffer_data_put()
466 err = devlink_fmsg_arr_pair_nest_start(fmsg, "assert_var"); in mlx5_fw_reporter_heath_buffer_data_put()
[all …]
/kernel/linux/linux-5.10/include/net/
Ddevlink.h652 struct devlink_fmsg *fmsg, void *priv_ctx,
655 struct devlink_fmsg *fmsg,
1514 int devlink_fmsg_obj_nest_start(struct devlink_fmsg *fmsg);
1515 int devlink_fmsg_obj_nest_end(struct devlink_fmsg *fmsg);
1517 int devlink_fmsg_pair_nest_start(struct devlink_fmsg *fmsg, const char *name);
1518 int devlink_fmsg_pair_nest_end(struct devlink_fmsg *fmsg);
1520 int devlink_fmsg_arr_pair_nest_start(struct devlink_fmsg *fmsg,
1522 int devlink_fmsg_arr_pair_nest_end(struct devlink_fmsg *fmsg);
1523 int devlink_fmsg_binary_pair_nest_start(struct devlink_fmsg *fmsg,
1525 int devlink_fmsg_binary_pair_nest_end(struct devlink_fmsg *fmsg);
[all …]
/kernel/linux/linux-5.10/net/core/
Ddevlink.c5250 struct devlink_fmsg *fmsg; in devlink_fmsg_alloc() local
5252 fmsg = kzalloc(sizeof(*fmsg), GFP_KERNEL); in devlink_fmsg_alloc()
5253 if (!fmsg) in devlink_fmsg_alloc()
5256 INIT_LIST_HEAD(&fmsg->item_list); in devlink_fmsg_alloc()
5258 return fmsg; in devlink_fmsg_alloc()
5261 static void devlink_fmsg_free(struct devlink_fmsg *fmsg) in devlink_fmsg_free() argument
5265 list_for_each_entry_safe(item, tmp, &fmsg->item_list, list) { in devlink_fmsg_free()
5269 kfree(fmsg); in devlink_fmsg_free()
5272 static int devlink_fmsg_nest_common(struct devlink_fmsg *fmsg, in devlink_fmsg_nest_common() argument
5282 list_add_tail(&item->list, &fmsg->item_list); in devlink_fmsg_nest_common()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/diag/
Dfw_tracer.c865 mlx5_devlink_fmsg_fill_trace(struct devlink_fmsg *fmsg, in mlx5_devlink_fmsg_fill_trace() argument
870 err = devlink_fmsg_obj_nest_start(fmsg); in mlx5_devlink_fmsg_fill_trace()
874 err = devlink_fmsg_u64_pair_put(fmsg, "timestamp", trace_data->timestamp); in mlx5_devlink_fmsg_fill_trace()
878 err = devlink_fmsg_bool_pair_put(fmsg, "lost", trace_data->lost); in mlx5_devlink_fmsg_fill_trace()
882 err = devlink_fmsg_u8_pair_put(fmsg, "event_id", trace_data->event_id); in mlx5_devlink_fmsg_fill_trace()
886 err = devlink_fmsg_string_pair_put(fmsg, "msg", trace_data->msg); in mlx5_devlink_fmsg_fill_trace()
890 err = devlink_fmsg_obj_nest_end(fmsg); in mlx5_devlink_fmsg_fill_trace()
897 struct devlink_fmsg *fmsg) in mlx5_fw_tracer_get_saved_traces_objects() argument
915 err = devlink_fmsg_arr_pair_nest_start(fmsg, "dump fw traces"); in mlx5_fw_tracer_get_saved_traces_objects()
920 err = mlx5_devlink_fmsg_fill_trace(fmsg, &straces[index]); in mlx5_fw_tracer_get_saved_traces_objects()
[all …]
Dfw_tracer.h193 struct devlink_fmsg *fmsg);
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_devlink.c38 struct devlink_fmsg *fmsg, void *priv_ctx, in qed_fw_fatal_reporter_dump() argument
69 err = devlink_fmsg_binary_pair_put(fmsg, "dump_data", in qed_fw_fatal_reporter_dump()
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_devlink.c45 struct devlink_fmsg *fmsg, in bnxt_fw_reporter_diagnose() argument
59 rc = devlink_fmsg_string_pair_put(fmsg, "Description", in bnxt_fw_reporter_diagnose()
64 rc = devlink_fmsg_string_pair_put(fmsg, "Description", in bnxt_fw_reporter_diagnose()
71 rc = devlink_fmsg_u32_pair_put(fmsg, "Error code", val >> 16); in bnxt_fw_reporter_diagnose()
77 rc = devlink_fmsg_u32_pair_put(fmsg, "Reset count", val); in bnxt_fw_reporter_diagnose()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dcore.c1669 struct devlink_fmsg *fmsg, void *priv_ctx, in mlxsw_core_health_fw_fatal_dump() argument
1683 err = devlink_fmsg_u8_pair_put(fmsg, "irisc_id", val); in mlxsw_core_health_fw_fatal_dump()
1686 err = devlink_fmsg_arr_pair_nest_start(fmsg, "event"); in mlxsw_core_health_fw_fatal_dump()
1691 err = devlink_fmsg_u8_pair_put(fmsg, "id", event_id); in mlxsw_core_health_fw_fatal_dump()
1705 err = devlink_fmsg_string_pair_put(fmsg, "desc", val_str); in mlxsw_core_health_fw_fatal_dump()
1709 err = devlink_fmsg_arr_pair_nest_end(fmsg); in mlxsw_core_health_fw_fatal_dump()
1725 err = devlink_fmsg_string_pair_put(fmsg, "method", val_str); in mlxsw_core_health_fw_fatal_dump()
1731 err = devlink_fmsg_bool_pair_put(fmsg, "long_process", val); in mlxsw_core_health_fw_fatal_dump()
1750 err = devlink_fmsg_string_pair_put(fmsg, "command_type", val_str); in mlxsw_core_health_fw_fatal_dump()
1756 err = devlink_fmsg_u32_pair_put(fmsg, "reg_attr_id", val); in mlxsw_core_health_fw_fatal_dump()
[all …]