mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 13:34:10 +08:00
75874b3d50
In the interest of converging on a common instrumentation infrastructure,
modernize the pr_debug() call sites added by commit 119bf81793
("IB/cm:
Add debug prints to ib_cm"). The new tracepoints appear in a new "ib_cma"
subsystem.
The conversion is somewhat mechanical. Someone more familiar with the
semantics of the recorded information might suggest additional data
capture.
Some benefits include:
- Tracepoints enable "always on" reporting of these errors
- The error records are structured and compact
- Tracepoints provide hooks for eBPF scripts
Sample output:
nfsd-1954 [003] 62.017901: icm_dreq_skipped: local_id=1998890974 remote_id=1129750393 state=DREQ_RCVD lap_state=LAP_UNINIT
Link: https://lore.kernel.org/r/159767239665.2968.10613294222688696646.stgit@klimt.1015granger.net
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
45 lines
1.5 KiB
Makefile
45 lines
1.5 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
infiniband-$(CONFIG_INFINIBAND_ADDR_TRANS) := rdma_cm.o
|
|
user_access-$(CONFIG_INFINIBAND_ADDR_TRANS) := rdma_ucm.o
|
|
|
|
obj-$(CONFIG_INFINIBAND) += ib_core.o ib_cm.o iw_cm.o \
|
|
$(infiniband-y)
|
|
obj-$(CONFIG_INFINIBAND_USER_MAD) += ib_umad.o
|
|
obj-$(CONFIG_INFINIBAND_USER_ACCESS) += ib_uverbs.o $(user_access-y)
|
|
|
|
ib_core-y := packer.o ud_header.o verbs.o cq.o rw.o sysfs.o \
|
|
device.o cache.o netlink.o \
|
|
roce_gid_mgmt.o mr_pool.o addr.o sa_query.o \
|
|
multicast.o mad.o smi.o agent.o mad_rmpp.o \
|
|
nldev.o restrack.o counters.o ib_core_uverbs.o \
|
|
trace.o lag.o
|
|
|
|
ib_core-$(CONFIG_SECURITY_INFINIBAND) += security.o
|
|
ib_core-$(CONFIG_CGROUP_RDMA) += cgroup.o
|
|
|
|
ib_cm-y := cm.o cm_trace.o
|
|
|
|
iw_cm-y := iwcm.o iwpm_util.o iwpm_msg.o
|
|
|
|
CFLAGS_cma_trace.o += -I$(src)
|
|
rdma_cm-y := cma.o cma_trace.o
|
|
|
|
rdma_cm-$(CONFIG_INFINIBAND_ADDR_TRANS_CONFIGFS) += cma_configfs.o
|
|
|
|
rdma_ucm-y := ucma.o
|
|
|
|
ib_umad-y := user_mad.o
|
|
|
|
ib_uverbs-y := uverbs_main.o uverbs_cmd.o uverbs_marshall.o \
|
|
rdma_core.o uverbs_std_types.o uverbs_ioctl.o \
|
|
uverbs_std_types_cq.o \
|
|
uverbs_std_types_flow_action.o uverbs_std_types_dm.o \
|
|
uverbs_std_types_mr.o uverbs_std_types_counters.o \
|
|
uverbs_uapi.o uverbs_std_types_device.o \
|
|
uverbs_std_types_async_fd.o \
|
|
uverbs_std_types_srq.o \
|
|
uverbs_std_types_wq.o \
|
|
uverbs_std_types_qp.o
|
|
ib_uverbs-$(CONFIG_INFINIBAND_USER_MEM) += umem.o
|
|
ib_uverbs-$(CONFIG_INFINIBAND_ON_DEMAND_PAGING) += umem_odp.o
|