]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
tracing/treewide: Remove second parameter of __assign_str()
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 16 May 2024 17:34:54 +0000 (13:34 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 23 May 2024 00:14:47 +0000 (20:14 -0400)
With the rework of how the __string() handles dynamic strings where it
saves off the source string in field in the helper structure[1], the
assignment of that value to the trace event field is stored in the helper
value and does not need to be passed in again.

This means that with:

  __string(field, mystring)

Which use to be assigned with __assign_str(field, mystring), no longer
needs the second parameter and it is unused. With this, __assign_str()
will now only get a single parameter.

There's over 700 users of __assign_str() and because coccinelle does not
handle the TRACE_EVENT() macro I ended up using the following sed script:

  git grep -l __assign_str | while read a ; do
      sed -e 's/\(__assign_str([^,]*[^ ,]\) *,[^;]*/\1)/' $a > /tmp/test-file;
      mv /tmp/test-file $a;
  done

I then searched for __assign_str() that did not end with ';' as those
were multi line assignments that the sed script above would fail to catch.

Note, the same updates will need to be done for:

  __assign_str_len()
  __assign_rel_str()
  __assign_rel_str_len()

I tested this with both an allmodconfig and an allyesconfig (build only for both).

[1] https://lore.kernel.org/linux-trace-kernel/20240222211442.634192653@goodmis.org/

Link: https://lore.kernel.org/linux-trace-kernel/20240516133454.681ba6a0@rorschach.local.home
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Julia Lawall <Julia.Lawall@inria.fr>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Christian König <christian.koenig@amd.com> for the amdgpu parts.
Acked-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> #for
Acked-by: Rafael J. Wysocki <rafael@kernel.org> # for thermal
Acked-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Darrick J. Wong <djwong@kernel.org> # xfs
Tested-by: Guenter Roeck <linux@roeck-us.net>
147 files changed:
arch/arm64/kernel/trace-events-emulation.h
arch/powerpc/include/asm/trace.h
arch/x86/kvm/trace.h
drivers/base/regmap/trace.h
drivers/base/trace.h
drivers/block/rnbd/rnbd-srv-trace.h
drivers/bus/mhi/host/trace.h
drivers/cxl/core/trace.h
drivers/dma-buf/sync_trace.h
drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h
drivers/gpu/drm/i915/display/intel_display_trace.h
drivers/gpu/drm/lima/lima_trace.h
drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h
drivers/gpu/drm/scheduler/gpu_scheduler_trace.h
drivers/gpu/drm/virtio/virtgpu_trace.h
drivers/infiniband/core/cma_trace.h
drivers/infiniband/hw/hfi1/hfi.h
drivers/infiniband/hw/hfi1/trace_dbg.h
drivers/infiniband/hw/hfi1/trace_rx.h
drivers/infiniband/hw/hfi1/trace_tid.h
drivers/infiniband/hw/hfi1/trace_tx.h
drivers/infiniband/sw/rdmavt/trace.h
drivers/infiniband/sw/rdmavt/trace_rvt.h
drivers/interconnect/trace.h
drivers/iommu/intel/trace.h
drivers/media/platform/nvidia/tegra-vde/trace.h
drivers/misc/mei/mei-trace.h
drivers/net/dsa/mv88e6xxx/trace.h
drivers/net/ethernet/freescale/dpaa/dpaa_eth_trace.h
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-trace.h
drivers/net/ethernet/fungible/funeth/funeth_trace.h
drivers/net/ethernet/hisilicon/hns3/hns3_trace.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_trace.h
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_trace.h
drivers/net/ethernet/intel/i40e/i40e_trace.h
drivers/net/ethernet/intel/iavf/iavf_trace.h
drivers/net/ethernet/intel/ice/ice_trace.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_trace.h
drivers/net/ethernet/mellanox/mlx5/core/diag/cmd_tracepoint.h
drivers/net/ethernet/mellanox/mlx5/core/diag/en_rep_tracepoint.h
drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.h
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer_tracepoint.h
drivers/net/ethernet/mellanox/mlx5/core/esw/diag/qos_tracepoint.h
drivers/net/ethernet/mellanox/mlx5/core/sf/dev/diag/dev_tracepoint.h
drivers/net/ethernet/mellanox/mlx5/core/sf/diag/sf_tracepoint.h
drivers/net/ethernet/mellanox/mlx5/core/sf/diag/vhca_tracepoint.h
drivers/net/fjes/fjes_trace.h
drivers/net/hyperv/netvsc_trace.h
drivers/net/wireless/ath/ath10k/trace.h
drivers/net/wireless/ath/ath11k/trace.h
drivers/net/wireless/ath/ath12k/trace.h
drivers/net/wireless/ath/ath6kl/trace.h
drivers/net/wireless/ath/trace.h
drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.h
drivers/net/wireless/broadcom/brcm80211/brcmsmac/brcms_trace_brcmsmac.h
drivers/net/wireless/broadcom/brcm80211/brcmsmac/brcms_trace_brcmsmac_msg.h
drivers/net/wireless/broadcom/brcm80211/brcmsmac/brcms_trace_brcmsmac_tx.h
drivers/net/wireless/intel/iwlwifi/iwl-devtrace-msg.h
drivers/net/wireless/intel/iwlwifi/iwl-devtrace.h
drivers/soc/qcom/pmic_pdcharger_ulog.h
drivers/soc/qcom/trace-aoss.h
drivers/soc/qcom/trace-rpmh.h
drivers/thermal/thermal_trace.h
drivers/usb/cdns3/cdns3-trace.h
drivers/usb/cdns3/cdnsp-trace.h
drivers/usb/chipidea/trace.h
drivers/usb/dwc3/trace.h
drivers/usb/gadget/udc/cdns2/cdns2-trace.h
drivers/usb/gadget/udc/trace.h
drivers/usb/mtu3/mtu3_trace.h
drivers/usb/musb/musb_trace.h
fs/bcachefs/trace.h
fs/nfs/nfs4trace.h
fs/nfs/nfstrace.h
fs/nfsd/trace.h
fs/ocfs2/ocfs2_trace.h
fs/smb/client/trace.h
fs/xfs/scrub/trace.h
fs/xfs/xfs_trace.h
include/ras/ras_event.h
include/trace/events/asoc.h
include/trace/events/avc.h
include/trace/events/bridge.h
include/trace/events/btrfs.h
include/trace/events/cgroup.h
include/trace/events/clk.h
include/trace/events/cma.h
include/trace/events/devfreq.h
include/trace/events/devlink.h
include/trace/events/dma_fence.h
include/trace/events/erofs.h
include/trace/events/f2fs.h
include/trace/events/habanalabs.h
include/trace/events/huge_memory.h
include/trace/events/hwmon.h
include/trace/events/initcall.h
include/trace/events/intel_ish.h
include/trace/events/io_uring.h
include/trace/events/iocost.h
include/trace/events/iommu.h
include/trace/events/irq.h
include/trace/events/iscsi.h
include/trace/events/kmem.h
include/trace/events/lock.h
include/trace/events/mmap_lock.h
include/trace/events/mmc.h
include/trace/events/module.h
include/trace/events/napi.h
include/trace/events/neigh.h
include/trace/events/net.h
include/trace/events/netlink.h
include/trace/events/oom.h
include/trace/events/osnoise.h
include/trace/events/power.h
include/trace/events/pwc.h
include/trace/events/qdisc.h
include/trace/events/qla.h
include/trace/events/qrtr.h
include/trace/events/regulator.h
include/trace/events/rpcgss.h
include/trace/events/rpcrdma.h
include/trace/events/rpm.h
include/trace/events/sched.h
include/trace/events/sof.h
include/trace/events/sof_intel.h
include/trace/events/sunrpc.h
include/trace/events/swiotlb.h
include/trace/events/target.h
include/trace/events/tegra_apb_dma.h
include/trace/events/ufs.h
include/trace/events/workqueue.h
include/trace/events/xdp.h
include/trace/stages/stage6_event_callback.h
kernel/trace/bpf_trace.h
net/batman-adv/trace.h
net/dsa/trace.h
net/ieee802154/trace.h
net/mac80211/trace.h
net/openvswitch/openvswitch_trace.h
net/smc/smc_tracepoint.h
net/tipc/trace.h
net/wireless/trace.h
samples/trace_events/trace-events-sample.h
sound/core/pcm_trace.h
sound/hda/trace.h
sound/soc/intel/avs/trace.h

index 6c40f58b844a3014ff6aed34f95dad0eaa61b941..c51b547b583e15946e237b5a6c043548ee6d711c 100644 (file)
@@ -18,7 +18,7 @@ TRACE_EVENT(instruction_emulation,
        ),
 
        TP_fast_assign(
-               __assign_str(instr, instr);
+               __assign_str(instr);
                __entry->addr = addr;
        ),
 
index d9ac3a4f46e1f86b0d0ec3ae6068de49f731217b..a7b69b25296b8b29d6bf47fffcafa6201227e0f1 100644 (file)
@@ -137,7 +137,7 @@ TRACE_EVENT(rtas_input,
 
        TP_fast_assign(
                __entry->nargs = be32_to_cpu(rtas_args->nargs);
-               __assign_str(name, name);
+               __assign_str(name);
                be32_to_cpu_array(__get_dynamic_array(inputs), rtas_args->args, __entry->nargs);
        ),
 
@@ -162,7 +162,7 @@ TRACE_EVENT(rtas_output,
        TP_fast_assign(
                __entry->nr_other = be32_to_cpu(rtas_args->nret) - 1;
                __entry->status = be32_to_cpu(rtas_args->rets[0]);
-               __assign_str(name, name);
+               __assign_str(name);
                be32_to_cpu_array(__get_dynamic_array(other_outputs),
                                  &rtas_args->rets[1], __entry->nr_other);
        ),
index 9d0b02ef307e27f1a7f06c1795cd02e138bf9541..e19fed438a670a1cc5e2aa4ddfd8969c9679179f 100644 (file)
@@ -1678,7 +1678,7 @@ TRACE_EVENT(kvm_nested_vmenter_failed,
        ),
 
        TP_fast_assign(
-               __assign_str(msg, msg);
+               __assign_str(msg);
                __entry->err = err;
        ),
 
index 704e106e5dbd090904595da8fa5e7b52aeef3a14..bcc5a8b226a6f49372e1b4a576009b7709c7360d 100644 (file)
@@ -27,7 +27,7 @@ DECLARE_EVENT_CLASS(regmap_reg,
        ),
 
        TP_fast_assign(
-               __assign_str(name, regmap_name(map));
+               __assign_str(name);
                __entry->reg = reg;
                __entry->val = val;
        ),
@@ -74,7 +74,7 @@ DECLARE_EVENT_CLASS(regmap_bulk,
        ),
 
        TP_fast_assign(
-               __assign_str(name, regmap_name(map));
+               __assign_str(name);
                __entry->reg = reg;
                __entry->val_len = val_len;
                memcpy(__get_dynamic_array(buf), val, val_len);
@@ -113,7 +113,7 @@ DECLARE_EVENT_CLASS(regmap_block,
        ),
 
        TP_fast_assign(
-               __assign_str(name, regmap_name(map));
+               __assign_str(name);
                __entry->reg = reg;
                __entry->count = count;
        ),
@@ -163,9 +163,9 @@ TRACE_EVENT(regcache_sync,
        ),
 
        TP_fast_assign(
-               __assign_str(name, regmap_name(map));
-               __assign_str(status, status);
-               __assign_str(type, type);
+               __assign_str(name);
+               __assign_str(status);
+               __assign_str(type);
        ),
 
        TP_printk("%s type=%s status=%s", __get_str(name),
@@ -184,7 +184,7 @@ DECLARE_EVENT_CLASS(regmap_bool,
        ),
 
        TP_fast_assign(
-               __assign_str(name, regmap_name(map));
+               __assign_str(name);
                __entry->flag = flag;
        ),
 
@@ -216,7 +216,7 @@ DECLARE_EVENT_CLASS(regmap_async,
        ),
 
        TP_fast_assign(
-               __assign_str(name, regmap_name(map));
+               __assign_str(name);
        ),
 
        TP_printk("%s", __get_str(name))
@@ -264,7 +264,7 @@ TRACE_EVENT(regcache_drop_region,
        ),
 
        TP_fast_assign(
-               __assign_str(name, regmap_name(map));
+               __assign_str(name);
                __entry->from = from;
                __entry->to = to;
        ),
index 3192e18f877ed00deb4bdd4f701d06d15aaeed95..e52b6eae060dde5ca793baa400c5706ca2a9936d 100644 (file)
@@ -28,7 +28,7 @@ DECLARE_EVENT_CLASS(devres,
                __field(size_t, size)
        ),
        TP_fast_assign(
-               __assign_str(devname, dev_name(dev));
+               __assign_str(devname);
                __entry->op = op;
                __entry->node = node;
                __entry->name = name;
index 8dedf73bdd281a20bb217600d55dc9bd15914ea1..89d0bcb1719582b0fdaf9521de38fef33f3ed001 100644 (file)
@@ -27,7 +27,7 @@ DECLARE_EVENT_CLASS(rnbd_srv_link_class,
 
        TP_fast_assign(
                __entry->qdepth = srv->queue_depth;
-               __assign_str(sessname, srv->sessname);
+               __assign_str(sessname);
        ),
 
        TP_printk("sessname: %s qdepth: %d",
@@ -85,7 +85,7 @@ TRACE_EVENT(process_rdma,
        ),
 
        TP_fast_assign(
-               __assign_str(sessname, srv->sessname);
+               __assign_str(sessname);
                __entry->dir = id->dir;
                __entry->ver = srv->ver;
                __entry->device_id = le32_to_cpu(msg->device_id);
@@ -130,7 +130,7 @@ TRACE_EVENT(process_msg_sess_info,
                __entry->proto_ver = srv->ver;
                __entry->clt_ver = msg->ver;
                __entry->srv_ver = RNBD_PROTO_VER_MAJOR;
-               __assign_str(sessname, srv->sessname);
+               __assign_str(sessname);
        ),
 
        TP_printk("Session %s using proto-ver %d (clt-ver: %d, srv-ver: %d)",
@@ -165,8 +165,8 @@ TRACE_EVENT(process_msg_open,
 
        TP_fast_assign(
                __entry->access_mode = msg->access_mode;
-               __assign_str(sessname, srv->sessname);
-               __assign_str(dev_name, msg->dev_name);
+               __assign_str(sessname);
+               __assign_str(dev_name);
        ),
 
        TP_printk("Open message received: session='%s' path='%s' access_mode=%s",
@@ -189,7 +189,7 @@ TRACE_EVENT(process_msg_close,
 
        TP_fast_assign(
                __entry->device_id = le32_to_cpu(msg->device_id);
-               __assign_str(sessname, srv->sessname);
+               __assign_str(sessname);
        ),
 
        TP_printk("Close message received: session='%s' device id='%d'",
index 368515dcb22d157db44c6458354390ad29ea1ffc..95613c8ebe0691724d2ea7f87a38874410a0a683 100644 (file)
@@ -103,7 +103,7 @@ TRACE_EVENT(mhi_gen_tre,
        ),
 
        TP_fast_assign(
-               __assign_str(name, mhi_cntrl->mhi_dev->name);
+               __assign_str(name);
                __entry->ch_num = mhi_chan->chan;
                __entry->wp = mhi_tre;
                __entry->tre_ptr = mhi_tre->ptr;
@@ -131,7 +131,7 @@ TRACE_EVENT(mhi_intvec_states,
        ),
 
        TP_fast_assign(
-               __assign_str(name, mhi_cntrl->mhi_dev->name);
+               __assign_str(name);
                __entry->local_ee = mhi_cntrl->ee;
                __entry->state = mhi_cntrl->dev_state;
                __entry->dev_ee = dev_ee;
@@ -158,7 +158,7 @@ TRACE_EVENT(mhi_tryset_pm_state,
        ),
 
        TP_fast_assign(
-               __assign_str(name, mhi_cntrl->mhi_dev->name);
+               __assign_str(name);
                if (pm_state)
                        pm_state = __fls(pm_state);
                __entry->pm_state = pm_state;
@@ -184,7 +184,7 @@ DECLARE_EVENT_CLASS(mhi_process_event_ring,
        ),
 
        TP_fast_assign(
-               __assign_str(name, mhi_cntrl->mhi_dev->name);
+               __assign_str(name);
                __entry->rp = rp;
                __entry->ptr = rp->ptr;
                __entry->dword0 = rp->dword[0];
@@ -226,7 +226,7 @@ DECLARE_EVENT_CLASS(mhi_update_channel_state,
        ),
 
        TP_fast_assign(
-               __assign_str(name, mhi_cntrl->mhi_dev->name);
+               __assign_str(name);
                __entry->ch_num = mhi_chan->chan;
                __entry->state = state;
                __entry->reason = reason;
@@ -265,7 +265,7 @@ TRACE_EVENT(mhi_pm_st_transition,
        ),
 
        TP_fast_assign(
-               __assign_str(name, mhi_cntrl->mhi_dev->name);
+               __assign_str(name);
                __entry->state = state;
        ),
 
index 07a0394b1d99edc6c54c5c186be54f808b2f8f0d..ee5cd4eb2f16ccfdb9163caa772eb91b3daf6caf 100644 (file)
@@ -60,8 +60,8 @@ TRACE_EVENT(cxl_aer_uncorrectable_error,
                __array(u32, header_log, CXL_HEADERLOG_SIZE_U32)
        ),
        TP_fast_assign(
-               __assign_str(memdev, dev_name(&cxlmd->dev));
-               __assign_str(host, dev_name(cxlmd->dev.parent));
+               __assign_str(memdev);
+               __assign_str(host);
                __entry->serial = cxlmd->cxlds->serial;
                __entry->status = status;
                __entry->first_error = fe;
@@ -106,8 +106,8 @@ TRACE_EVENT(cxl_aer_correctable_error,
                __field(u32, status)
        ),
        TP_fast_assign(
-               __assign_str(memdev, dev_name(&cxlmd->dev));
-               __assign_str(host, dev_name(cxlmd->dev.parent));
+               __assign_str(memdev);
+               __assign_str(host);
                __entry->serial = cxlmd->cxlds->serial;
                __entry->status = status;
        ),
@@ -142,8 +142,8 @@ TRACE_EVENT(cxl_overflow,
        ),
 
        TP_fast_assign(
-               __assign_str(memdev, dev_name(&cxlmd->dev));
-               __assign_str(host, dev_name(cxlmd->dev.parent));
+               __assign_str(memdev);
+               __assign_str(host);
                __entry->serial = cxlmd->cxlds->serial;
                __entry->log = log;
                __entry->count = le16_to_cpu(payload->overflow_err_count);
@@ -200,8 +200,8 @@ TRACE_EVENT(cxl_overflow,
        __field(u8, hdr_maint_op_class)
 
 #define CXL_EVT_TP_fast_assign(cxlmd, l, hdr)                                  \
-       __assign_str(memdev, dev_name(&(cxlmd)->dev));                          \
-       __assign_str(host, dev_name((cxlmd)->dev.parent));                      \
+       __assign_str(memdev);                           \
+       __assign_str(host);                     \
        __entry->log = (l);                                                     \
        __entry->serial = (cxlmd)->cxlds->serial;                               \
        __entry->hdr_length = (hdr).length;                                     \
@@ -359,10 +359,10 @@ TRACE_EVENT(cxl_general_media,
                __entry->validity_flags = get_unaligned_le16(&rec->validity_flags);
                __entry->hpa = hpa;
                if (cxlr) {
-                       __assign_str(region_name, dev_name(&cxlr->dev));
+                       __assign_str(region_name);
                        uuid_copy(&__entry->region_uuid, &cxlr->params.uuid);
                } else {
-                       __assign_str(region_name, "");
+                       __assign_str(region_name);
                        uuid_copy(&__entry->region_uuid, &uuid_null);
                }
        ),
@@ -462,10 +462,10 @@ TRACE_EVENT(cxl_dram,
                        CXL_EVENT_DER_CORRECTION_MASK_SIZE);
                __entry->hpa = hpa;
                if (cxlr) {
-                       __assign_str(region_name, dev_name(&cxlr->dev));
+                       __assign_str(region_name);
                        uuid_copy(&__entry->region_uuid, &cxlr->params.uuid);
                } else {
-                       __assign_str(region_name, "");
+                       __assign_str(region_name);
                        uuid_copy(&__entry->region_uuid, &uuid_null);
                }
        ),
@@ -692,8 +692,8 @@ TRACE_EVENT(cxl_poison,
            ),
 
        TP_fast_assign(
-               __assign_str(memdev, dev_name(&cxlmd->dev));
-               __assign_str(host, dev_name(cxlmd->dev.parent));
+               __assign_str(memdev);
+               __assign_str(host);
                __entry->serial = cxlmd->cxlds->serial;
                __entry->overflow_ts = cxl_poison_overflow(flags, overflow_ts);
                __entry->dpa = cxl_poison_record_dpa(record);
@@ -702,12 +702,12 @@ TRACE_EVENT(cxl_poison,
                __entry->trace_type = trace_type;
                __entry->flags = flags;
                if (cxlr) {
-                       __assign_str(region, dev_name(&cxlr->dev));
+                       __assign_str(region);
                        memcpy(__entry->uuid, &cxlr->params.uuid, 16);
                        __entry->hpa = cxl_trace_hpa(cxlr, cxlmd,
                                                     __entry->dpa);
                } else {
-                       __assign_str(region, "");
+                       __assign_str(region);
                        memset(__entry->uuid, 0, 16);
                        __entry->hpa = ULLONG_MAX;
                }
index 06e468a218ff81eb8a280c5375b7e394a9ae2662..d71dcf954b8dcf6d410f443e2c45d0efb314d6bc 100644 (file)
@@ -20,7 +20,7 @@ TRACE_EVENT(sync_timeline,
        ),
 
        TP_fast_assign(
-                       __assign_str(name, timeline->name);
+                       __assign_str(name);
                        __entry->value = timeline->value;
        ),
 
index f539b1d002343ea2a79af93595919a067da52742..7aafeb763e5dde1d51d6b0648cd8195ff9b57c07 100644 (file)
@@ -178,10 +178,10 @@ TRACE_EVENT(amdgpu_cs_ioctl,
 
            TP_fast_assign(
                           __entry->sched_job_id = job->base.id;
-                          __assign_str(timeline, AMDGPU_JOB_GET_TIMELINE_NAME(job));
+                          __assign_str(timeline);
                           __entry->context = job->base.s_fence->finished.context;
                           __entry->seqno = job->base.s_fence->finished.seqno;
-                          __assign_str(ring, to_amdgpu_ring(job->base.sched)->name);
+                          __assign_str(ring);
                           __entry->num_ibs = job->num_ibs;
                           ),
            TP_printk("sched_job=%llu, timeline=%s, context=%u, seqno=%u, ring_name=%s, num_ibs=%u",
@@ -203,10 +203,10 @@ TRACE_EVENT(amdgpu_sched_run_job,
 
            TP_fast_assign(
                           __entry->sched_job_id = job->base.id;
-                          __assign_str(timeline, AMDGPU_JOB_GET_TIMELINE_NAME(job));
+                          __assign_str(timeline);
                           __entry->context = job->base.s_fence->finished.context;
                           __entry->seqno = job->base.s_fence->finished.seqno;
-                          __assign_str(ring, to_amdgpu_ring(job->base.sched)->name);
+                          __assign_str(ring);
                           __entry->num_ibs = job->num_ibs;
                           ),
            TP_printk("sched_job=%llu, timeline=%s, context=%u, seqno=%u, ring_name=%s, num_ibs=%u",
@@ -231,7 +231,7 @@ TRACE_EVENT(amdgpu_vm_grab_id,
 
            TP_fast_assign(
                           __entry->pasid = vm->pasid;
-                          __assign_str(ring, ring->name);
+                          __assign_str(ring);
                           __entry->vmid = job->vmid;
                           __entry->vm_hub = ring->vm_hub,
                           __entry->pd_addr = job->vm_pd_addr;
@@ -425,7 +425,7 @@ TRACE_EVENT(amdgpu_vm_flush,
                             ),
 
            TP_fast_assign(
-                          __assign_str(ring, ring->name);
+                          __assign_str(ring);
                           __entry->vmid = vmid;
                           __entry->vm_hub = ring->vm_hub;
                           __entry->pd_addr = pd_addr;
@@ -526,7 +526,7 @@ TRACE_EVENT(amdgpu_ib_pipe_sync,
                             ),
 
            TP_fast_assign(
-                          __assign_str(ring, sched_job->base.sched->name);
+                          __assign_str(ring);
                           __entry->id = sched_job->base.id;
                           __entry->fence = fence;
                           __entry->ctx = fence->context;
@@ -563,7 +563,7 @@ TRACE_EVENT(amdgpu_runpm_reference_dumps,
                             ),
            TP_fast_assign(
                           __entry->index = index;
-                          __assign_str(func, func);
+                          __assign_str(func);
                           ),
            TP_printk("amdgpu runpm reference dump 0x%x: 0x%s\n",
                      __entry->index,
index 133af994a08c178bbdff1a60381703ecbbe34334..4686d4b0cbad29892f317eacafb130e88d843704 100644 (file)
@@ -87,7 +87,7 @@ TRACE_EVENT(amdgpu_dc_performance,
                        __entry->writes = write_count;
                        __entry->read_delta = read_count - *last_read;
                        __entry->write_delta = write_count - *last_write;
-                       __assign_str(func, func);
+                       __assign_str(func);
                        __entry->line = line;
                        *last_read = read_count;
                        *last_write = write_count;
index 7862e7cefe02785b828d0e5769c4b511913f67c9..49a5e6d9dc0d7f50e7f2f7d0acc8636d61aa207b 100644 (file)
@@ -34,7 +34,7 @@ TRACE_EVENT(intel_pipe_enable,
            TP_fast_assign(
                           struct drm_i915_private *dev_priv = to_i915(crtc->base.dev);
                           struct intel_crtc *it__;
-                          __assign_str(dev, __dev_name_kms(crtc));
+                          __assign_str(dev);
                           for_each_intel_crtc(&dev_priv->drm, it__) {
                                   __entry->frame[it__->pipe] = intel_crtc_get_vblank_counter(it__);
                                   __entry->scanline[it__->pipe] = intel_get_crtc_scanline(it__);
@@ -63,7 +63,7 @@ TRACE_EVENT(intel_pipe_disable,
            TP_fast_assign(
                           struct drm_i915_private *dev_priv = to_i915(crtc->base.dev);
                           struct intel_crtc *it__;
-                          __assign_str(dev, __dev_name_kms(crtc));
+                          __assign_str(dev);
                           for_each_intel_crtc(&dev_priv->drm, it__) {
                                   __entry->frame[it__->pipe] = intel_crtc_get_vblank_counter(it__);
                                   __entry->scanline[it__->pipe] = intel_get_crtc_scanline(it__);
@@ -91,7 +91,7 @@ TRACE_EVENT(intel_pipe_crc,
                             ),
 
            TP_fast_assign(
-                          __assign_str(dev, __dev_name_kms(crtc));
+                          __assign_str(dev);
                           __entry->pipe = crtc->pipe;
                           __entry->frame = intel_crtc_get_vblank_counter(crtc);
                           __entry->scanline = intel_get_crtc_scanline(crtc);
@@ -119,7 +119,7 @@ TRACE_EVENT(intel_cpu_fifo_underrun,
 
            TP_fast_assign(
                            struct intel_crtc *crtc = intel_crtc_for_pipe(dev_priv, pipe);
-                          __assign_str(dev, __dev_name_kms(crtc));
+                          __assign_str(dev);
                           __entry->pipe = pipe;
                           __entry->frame = intel_crtc_get_vblank_counter(crtc);
                           __entry->scanline = intel_get_crtc_scanline(crtc);
@@ -144,7 +144,7 @@ TRACE_EVENT(intel_pch_fifo_underrun,
            TP_fast_assign(
                           enum pipe pipe = pch_transcoder;
                           struct intel_crtc *crtc = intel_crtc_for_pipe(dev_priv, pipe);
-                          __assign_str(dev, __dev_name_i915(dev_priv));
+                          __assign_str(dev);
                           __entry->pipe = pipe;
                           __entry->frame = intel_crtc_get_vblank_counter(crtc);
                           __entry->scanline = intel_get_crtc_scanline(crtc);
@@ -169,7 +169,7 @@ TRACE_EVENT(intel_memory_cxsr,
 
            TP_fast_assign(
                           struct intel_crtc *crtc;
-                          __assign_str(dev, __dev_name_i915(dev_priv));
+                          __assign_str(dev);
                           for_each_intel_crtc(&dev_priv->drm, crtc) {
                                   __entry->frame[crtc->pipe] = intel_crtc_get_vblank_counter(crtc);
                                   __entry->scanline[crtc->pipe] = intel_get_crtc_scanline(crtc);
@@ -209,7 +209,7 @@ TRACE_EVENT(g4x_wm,
                             ),
 
            TP_fast_assign(
-                          __assign_str(dev, __dev_name_kms(crtc));
+                          __assign_str(dev);
                           __entry->pipe = crtc->pipe;
                           __entry->frame = intel_crtc_get_vblank_counter(crtc);
                           __entry->scanline = intel_get_crtc_scanline(crtc);
@@ -256,7 +256,7 @@ TRACE_EVENT(vlv_wm,
                             ),
 
            TP_fast_assign(
-                          __assign_str(dev, __dev_name_kms(crtc));
+                          __assign_str(dev);
                           __entry->pipe = crtc->pipe;
                           __entry->frame = intel_crtc_get_vblank_counter(crtc);
                           __entry->scanline = intel_get_crtc_scanline(crtc);
@@ -293,7 +293,7 @@ TRACE_EVENT(vlv_fifo_size,
                             ),
 
            TP_fast_assign(
-                          __assign_str(dev, __dev_name_kms(crtc));
+                          __assign_str(dev);
                           __entry->pipe = crtc->pipe;
                           __entry->frame = intel_crtc_get_vblank_counter(crtc);
                           __entry->scanline = intel_get_crtc_scanline(crtc);
@@ -323,8 +323,8 @@ TRACE_EVENT(intel_plane_update_noarm,
                             ),
 
            TP_fast_assign(
-                          __assign_str(dev, __dev_name_kms(plane));
-                          __assign_str(name, plane->base.name);
+                          __assign_str(dev);
+                          __assign_str(name);
                           __entry->pipe = crtc->pipe;
                           __entry->frame = intel_crtc_get_vblank_counter(crtc);
                           __entry->scanline = intel_get_crtc_scanline(crtc);
@@ -354,8 +354,8 @@ TRACE_EVENT(intel_plane_update_arm,
                             ),
 
            TP_fast_assign(
-                          __assign_str(dev, __dev_name_kms(plane));
-                          __assign_str(name, plane->base.name);
+                          __assign_str(dev);
+                          __assign_str(name);
                           __entry->pipe = crtc->pipe;
                           __entry->frame = intel_crtc_get_vblank_counter(crtc);
                           __entry->scanline = intel_get_crtc_scanline(crtc);
@@ -383,8 +383,8 @@ TRACE_EVENT(intel_plane_disable_arm,
                             ),
 
            TP_fast_assign(
-                          __assign_str(dev, __dev_name_kms(plane));
-                          __assign_str(name, plane->base.name);
+                          __assign_str(dev);
+                          __assign_str(name);
                           __entry->pipe = crtc->pipe;
                           __entry->frame = intel_crtc_get_vblank_counter(crtc);
                           __entry->scanline = intel_get_crtc_scanline(crtc);
@@ -410,8 +410,8 @@ TRACE_EVENT(intel_fbc_activate,
            TP_fast_assign(
                           struct intel_crtc *crtc = intel_crtc_for_pipe(to_i915(plane->base.dev),
                                                                         plane->pipe);
-                          __assign_str(dev, __dev_name_kms(plane));
-                          __assign_str(name, plane->base.name);
+                          __assign_str(dev);
+                          __assign_str(name);
                           __entry->pipe = crtc->pipe;
                           __entry->frame = intel_crtc_get_vblank_counter(crtc);
                           __entry->scanline = intel_get_crtc_scanline(crtc);
@@ -437,8 +437,8 @@ TRACE_EVENT(intel_fbc_deactivate,
            TP_fast_assign(
                           struct intel_crtc *crtc = intel_crtc_for_pipe(to_i915(plane->base.dev),
                                                                         plane->pipe);
-                          __assign_str(dev, __dev_name_kms(plane));
-                          __assign_str(name, plane->base.name);
+                          __assign_str(dev);
+                          __assign_str(name);
                           __entry->pipe = crtc->pipe;
                           __entry->frame = intel_crtc_get_vblank_counter(crtc);
                           __entry->scanline = intel_get_crtc_scanline(crtc);
@@ -464,8 +464,8 @@ TRACE_EVENT(intel_fbc_nuke,
            TP_fast_assign(
                           struct intel_crtc *crtc = intel_crtc_for_pipe(to_i915(plane->base.dev),
                                                                         plane->pipe);
-                          __assign_str(dev, __dev_name_kms(plane));
-                          __assign_str(name, plane->base.name);
+                          __assign_str(dev);
+                          __assign_str(name);
                           __entry->pipe = crtc->pipe;
                           __entry->frame = intel_crtc_get_vblank_counter(crtc);
                           __entry->scanline = intel_get_crtc_scanline(crtc);
@@ -488,7 +488,7 @@ TRACE_EVENT(intel_crtc_vblank_work_start,
                             ),
 
            TP_fast_assign(
-                          __assign_str(dev, __dev_name_kms(crtc));
+                          __assign_str(dev);
                           __entry->pipe = crtc->pipe;
                           __entry->frame = intel_crtc_get_vblank_counter(crtc);
                           __entry->scanline = intel_get_crtc_scanline(crtc);
@@ -511,7 +511,7 @@ TRACE_EVENT(intel_crtc_vblank_work_end,
                             ),
 
            TP_fast_assign(
-                          __assign_str(dev, __dev_name_kms(crtc));
+                          __assign_str(dev);
                           __entry->pipe = crtc->pipe;
                           __entry->frame = intel_crtc_get_vblank_counter(crtc);
                           __entry->scanline = intel_get_crtc_scanline(crtc);
@@ -536,7 +536,7 @@ TRACE_EVENT(intel_pipe_update_start,
                             ),
 
            TP_fast_assign(
-                          __assign_str(dev, __dev_name_kms(crtc));
+                          __assign_str(dev);
                           __entry->pipe = crtc->pipe;
                           __entry->frame = intel_crtc_get_vblank_counter(crtc);
                           __entry->scanline = intel_get_crtc_scanline(crtc);
@@ -564,7 +564,7 @@ TRACE_EVENT(intel_pipe_update_vblank_evaded,
                             ),
 
            TP_fast_assign(
-                          __assign_str(dev, __dev_name_kms(crtc));
+                          __assign_str(dev);
                           __entry->pipe = crtc->pipe;
                           __entry->frame = crtc->debug.start_vbl_count;
                           __entry->scanline = crtc->debug.scanline_start;
@@ -590,7 +590,7 @@ TRACE_EVENT(intel_pipe_update_end,
                             ),
 
            TP_fast_assign(
-                          __assign_str(dev, __dev_name_kms(crtc));
+                          __assign_str(dev);
                           __entry->pipe = crtc->pipe;
                           __entry->frame = frame;
                           __entry->scanline = scanline_end;
@@ -613,7 +613,7 @@ TRACE_EVENT(intel_frontbuffer_invalidate,
                             ),
 
            TP_fast_assign(
-                          __assign_str(dev, __dev_name_i915(i915));
+                          __assign_str(dev);
                           __entry->frontbuffer_bits = frontbuffer_bits;
                           __entry->origin = origin;
                           ),
@@ -634,7 +634,7 @@ TRACE_EVENT(intel_frontbuffer_flush,
                             ),
 
            TP_fast_assign(
-                          __assign_str(dev, __dev_name_i915(i915));
+                          __assign_str(dev);
                           __entry->frontbuffer_bits = frontbuffer_bits;
                           __entry->origin = origin;
                           ),
index 494b9790b1daf96e544403202acb979495bf6bd4..3a349d10304e76b9b4aefa8a1f06fe936bc65dfd 100644 (file)
@@ -24,7 +24,7 @@ DECLARE_EVENT_CLASS(lima_task,
                __entry->task_id = task->base.id;
                __entry->context = task->base.s_fence->finished.context;
                __entry->seqno = task->base.s_fence->finished.seqno;
-               __assign_str(pipe, task->base.sched->name);
+               __assign_str(pipe);
                ),
 
        TP_printk("task=%llu, context=%u seqno=%u pipe=%s",
index bd92fb2979aa22c4054c23701f765a66764db354..0fdd41162e4b3fc108dd0f07061007d060af187e 100644 (file)
@@ -113,7 +113,7 @@ TRACE_EVENT(tracing_mark_write,
        ),
        TP_fast_assign(
                        __entry->pid = pid;
-                       __assign_str(trace_name, name);
+                       __assign_str(trace_name);
                        __entry->trace_begin = trace_begin;
        ),
        TP_printk("%s|%d|%s", __entry->trace_begin ? "B" : "E",
@@ -130,7 +130,7 @@ TRACE_EVENT(dpu_trace_counter,
        ),
        TP_fast_assign(
                        __entry->pid = current->tgid;
-                       __assign_str(counter_name, name);
+                       __assign_str(counter_name);
                        __entry->value = value;
        ),
        TP_printk("%d|%s|%d", __entry->pid,
@@ -379,7 +379,7 @@ TRACE_EVENT(dpu_enc_rc,
                __entry->sw_event = sw_event;
                __entry->idle_pc_supported = idle_pc_supported;
                __entry->rc_state = rc_state;
-               __assign_str(stage_str, stage);
+               __assign_str(stage_str);
        ),
        TP_printk("%s: id:%u, sw_event:%d, idle_pc_supported:%s, rc_state:%d",
                  __get_str(stage_str), __entry->drm_id, __entry->sw_event,
@@ -401,7 +401,7 @@ TRACE_EVENT(dpu_enc_frame_done_cb_not_busy,
        TP_fast_assign(
                __entry->drm_id = drm_id;
                __entry->event = event;
-               __assign_str(intf_mode_str, intf_mode);
+               __assign_str(intf_mode_str);
                __entry->intf_idx = intf_idx;
                __entry->wb_idx = wb_idx;
        ),
@@ -446,7 +446,7 @@ TRACE_EVENT(dpu_enc_trigger_flush,
        ),
        TP_fast_assign(
                __entry->drm_id = drm_id;
-               __assign_str(intf_mode_str, intf_mode);
+               __assign_str(intf_mode_str);
                __entry->intf_idx = intf_idx;
                __entry->wb_idx = wb_idx;
                __entry->pending_kickoff_cnt = pending_kickoff_cnt;
@@ -946,7 +946,7 @@ TRACE_EVENT(dpu_core_perf_update_clk,
                __field(        u64,                    clk_rate        )
        ),
        TP_fast_assign(
-               __assign_str(dev_name, dev->unique);
+               __assign_str(dev_name);
                __entry->stop_req = stop_req;
                __entry->clk_rate = clk_rate;
        ),
index f8ed093b7356eb06065eef896e8771248c361268..c75302ca3427ce84d892056e3b40135d3922b878 100644 (file)
@@ -48,7 +48,7 @@ DECLARE_EVENT_CLASS(drm_sched_job,
                           __entry->entity = entity;
                           __entry->id = sched_job->id;
                           __entry->fence = &sched_job->s_fence->finished;
-                          __assign_str(name, sched_job->sched->name);
+                          __assign_str(name);
                           __entry->job_count = spsc_queue_count(&entity->job_queue);
                           __entry->hw_job_count = atomic_read(
                                   &sched_job->sched->credit_count);
@@ -94,7 +94,7 @@ TRACE_EVENT(drm_sched_job_wait_dep,
                             ),
 
            TP_fast_assign(
-                          __assign_str(name, sched_job->sched->name);
+                          __assign_str(name);
                           __entry->id = sched_job->id;
                           __entry->fence = fence;
                           __entry->ctx = fence->context;
index 031bc77689d5104b2d6e9882678c6984fd29b0e8..227bf0ae7ed53170febae9514f6163e3ea356c9b 100644 (file)
@@ -25,7 +25,7 @@ DECLARE_EVENT_CLASS(virtio_gpu_cmd,
        TP_fast_assign(
                       __entry->dev = vq->vdev->index;
                       __entry->vq = vq->index;
-                      __assign_str(name, vq->name);
+                      __assign_str(name);
                       __entry->type = le32_to_cpu(hdr->type);
                       __entry->flags = le32_to_cpu(hdr->flags);
                       __entry->fence_id = le64_to_cpu(hdr->fence_id);
index 47f3c6e4be8932affcd57d2e7e83fb0a97ec1e1c..dc622f3778be2bbe6d9aac1dd17c4a10ae339645 100644 (file)
@@ -84,7 +84,7 @@ TRACE_EVENT(cm_id_attach,
                       sizeof(struct sockaddr_in6));
                memcpy(__entry->dstaddr, &id_priv->id.route.addr.dst_addr,
                       sizeof(struct sockaddr_in6));
-               __assign_str(devname, device->name);
+               __assign_str(devname);
        ),
 
        TP_printk("cm.id=%u src=%pISpc dst=%pISpc device=%s",
@@ -334,7 +334,7 @@ DECLARE_EVENT_CLASS(cma_client_class,
        ),
 
        TP_fast_assign(
-               __assign_str(name, device->name);
+               __assign_str(name);
        ),
 
        TP_printk("device name=%s",
index 4b3f1cb125fce6a24aa2d502de5ea0098dca08d8..eb38f81aeeb1ee5ce3d45edc6d0143d46e25cbaf 100644 (file)
@@ -2425,7 +2425,7 @@ static inline bool hfi1_need_drop(struct hfi1_devdata *dd)
 int hfi1_tempsense_rd(struct hfi1_devdata *dd, struct hfi1_temp *temp);
 
 #define DD_DEV_ENTRY(dd)       __string(dev, dev_name(&(dd)->pcidev->dev))
-#define DD_DEV_ASSIGN(dd)      __assign_str(dev, dev_name(&(dd)->pcidev->dev))
+#define DD_DEV_ASSIGN(dd)      __assign_str(dev)
 
 static inline void hfi1_update_ah_attr(struct ib_device *ibdev,
                                       struct rdma_ah_attr *attr)
index 75599d5168db5cbe7e003090d9ea7b581591deca..58304b91380fcd6fe508c98f662a2a20f37e1dc4 100644 (file)
@@ -33,7 +33,7 @@ DECLARE_EVENT_CLASS(hfi1_trace_template,
                    TP_STRUCT__entry(__string(function, function)
                                     __vstring(msg, vaf->fmt, vaf->va)
                                     ),
-                   TP_fast_assign(__assign_str(function, function);
+                   TP_fast_assign(__assign_str(function);
                                   __assign_vstr(msg, vaf->fmt, vaf->va);
                                   ),
                    TP_printk("(%s) %s",
index e6904aa80c0013b4a24084630b286db346252689..8d5e12fe88a5c354cb3cf64314b34b9494e4eb13 100644 (file)
@@ -90,7 +90,7 @@ TRACE_EVENT(hfi1_mmu_invalidate,
            TP_fast_assign(
                        __entry->ctxt = ctxt;
                        __entry->subctxt = subctxt;
-                       __assign_str(type, type);
+                       __assign_str(type);
                        __entry->start = start;
                        __entry->end = end;
            ),
index d129b8195959972c48fd79ff58170454e9b0c9e9..e358f5b885fa064e8f369b7670414d85b3de8f2b 100644 (file)
@@ -358,7 +358,7 @@ DECLARE_EVENT_CLASS(/* msg */
        ),
        TP_fast_assign(/* assign */
                __entry->qpn = qp ? qp->ibqp.qp_num : 0;
-               __assign_str(msg, msg);
+               __assign_str(msg);
                __entry->more = more;
        ),
        TP_printk(/* print */
@@ -651,7 +651,7 @@ DECLARE_EVENT_CLASS(/* tid_node */
        TP_fast_assign(/* assign */
                DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device));
                __entry->qpn = qp->ibqp.qp_num;
-               __assign_str(msg, msg);
+               __assign_str(msg);
                __entry->index = index;
                __entry->base = base;
                __entry->map = map;
index c79856d4fdfb339bffee7fa175152bba9f653120..c0ba6b0a2c4e011a808e7803ce4bb06c3ef6d62a 100644 (file)
@@ -740,8 +740,8 @@ TRACE_EVENT(hfi1_sdma_state,
                __string(newstate, nstate)
            ),
            TP_fast_assign(DD_DEV_ASSIGN(sde->dd);
-               __assign_str(curstate, cstate);
-               __assign_str(newstate, nstate);
+               __assign_str(curstate);
+               __assign_str(newstate);
            ),
            TP_printk("[%s] current state %s new state %s",
                      __get_str(dev),
index 4341965a5ea76a13fcbf3ec6c2e4a24358adf3ef..bdb6b9326b6447651687988e22efdd3d5cd2460d 100644 (file)
@@ -4,7 +4,7 @@
  */
 
 #define RDI_DEV_ENTRY(rdi)   __string(dev, rvt_get_ibdev_name(rdi))
-#define RDI_DEV_ASSIGN(rdi)  __assign_str(dev, rvt_get_ibdev_name(rdi))
+#define RDI_DEV_ASSIGN(rdi)  __assign_str(dev)
 
 #include "trace_rvt.h"
 #include "trace_qp.h"
index df33c2ca9710899e46d60347c6845864b5c66c5a..a00489e66ddfd9344311b90af8f1c56b0dfb876b 100644 (file)
@@ -24,7 +24,7 @@ TRACE_EVENT(rvt_dbg,
        ),
        TP_fast_assign(
                RDI_DEV_ASSIGN(rdi);
-               __assign_str(msg, msg);
+               __assign_str(msg);
        ),
        TP_printk("[%s]: %s", __get_str(dev), __get_str(msg))
 );
index 3d668ff566bfe4f87f1f293b6fd90037641c0657..2063735465289faac2c3d3ab7011733d722e0d8d 100644 (file)
@@ -32,9 +32,9 @@ TRACE_EVENT(icc_set_bw,
        ),
 
        TP_fast_assign(
-               __assign_str(path_name, p->name);
-               __assign_str(dev, dev_name(p->reqs[i].dev));
-               __assign_str(node_name, n->name);
+               __assign_str(path_name);
+               __assign_str(dev);
+               __assign_str(node_name);
                __entry->avg_bw = avg_bw;
                __entry->peak_bw = peak_bw;
                __entry->node_avg_bw = n->avg_bw;
@@ -64,8 +64,8 @@ TRACE_EVENT(icc_set_bw_end,
        ),
 
        TP_fast_assign(
-               __assign_str(path_name, p->name);
-               __assign_str(dev, dev_name(p->reqs[0].dev));
+               __assign_str(path_name);
+               __assign_str(dev);
                __entry->ret = ret;
        ),
 
index 961ac1c1bc210eadd766261c0aaea83ebaeebdc6..9defdae6ebae8f08a0210690d4f2c3f1981a59d6 100644 (file)
@@ -32,7 +32,7 @@ TRACE_EVENT(qi_submit,
        ),
 
        TP_fast_assign(
-               __assign_str(iommu, iommu->name);
+               __assign_str(iommu);
                __entry->qw0 = qw0;
                __entry->qw1 = qw1;
                __entry->qw2 = qw2;
@@ -79,8 +79,8 @@ TRACE_EVENT(prq_report,
                __entry->dw2 = dw2;
                __entry->dw3 = dw3;
                __entry->seq = seq;
-               __assign_str(iommu, iommu->name);
-               __assign_str(dev, dev_name(dev));
+               __assign_str(iommu);
+               __assign_str(dev);
        ),
 
        TP_printk("%s/%s seq# %ld: %s",
@@ -102,8 +102,8 @@ DECLARE_EVENT_CLASS(cache_tag_log,
                __field(u32, users)
        ),
        TP_fast_assign(
-               __assign_str(iommu, tag->iommu->name);
-               __assign_str(dev, dev_name(tag->dev));
+               __assign_str(iommu);
+               __assign_str(dev);
                __entry->type = tag->type;
                __entry->domain_id = tag->domain_id;
                __entry->pasid = tag->pasid;
@@ -152,8 +152,8 @@ DECLARE_EVENT_CLASS(cache_tag_flush,
                __field(unsigned long, mask)
        ),
        TP_fast_assign(
-               __assign_str(iommu, tag->iommu->name);
-               __assign_str(dev, dev_name(tag->dev));
+               __assign_str(iommu);
+               __assign_str(dev);
                __entry->type = tag->type;
                __entry->domain_id = tag->domain_id;
                __entry->pasid = tag->pasid;
index 7853ab095ca402e398604972c9c6b0a5a0502a43..e8a75a7bd05d58bed5961796729d538c7eac6078 100644 (file)
@@ -20,7 +20,7 @@ DECLARE_EVENT_CLASS(register_access,
                __field(u32, value)
        ),
        TP_fast_assign(
-               __assign_str(hw_name, tegra_vde_reg_base_name(vde, base));
+               __assign_str(hw_name);
                __entry->offset = offset;
                __entry->value = value;
        ),
index fe46ff2b9d69f5d941e24be136967d3290ecb022..5312edbf5190d781b26e0966446533aef227343d 100644 (file)
@@ -26,7 +26,7 @@ TRACE_EVENT(mei_reg_read,
                __field(u32, val)
        ),
        TP_fast_assign(
-               __assign_str(dev, dev_name(dev));
+               __assign_str(dev);
                __entry->reg  = reg;
                __entry->offs = offs;
                __entry->val = val;
@@ -45,7 +45,7 @@ TRACE_EVENT(mei_reg_write,
                __field(u32, val)
        ),
        TP_fast_assign(
-               __assign_str(dev, dev_name(dev));
+               __assign_str(dev);
                __entry->reg = reg;
                __entry->offs = offs;
                __entry->val = val;
@@ -64,7 +64,7 @@ TRACE_EVENT(mei_pci_cfg_read,
                __field(u32, val)
        ),
        TP_fast_assign(
-               __assign_str(dev, dev_name(dev));
+               __assign_str(dev);
                __entry->reg  = reg;
                __entry->offs = offs;
                __entry->val = val;
index f59ca04768e7908737bbf5da40ba7ee195d60e9c..5bd015b2b97a5c223963d6927d57c3b0c3e14270 100644 (file)
@@ -28,7 +28,7 @@ DECLARE_EVENT_CLASS(mv88e6xxx_atu_violation,
        ),
 
        TP_fast_assign(
-               __assign_str(name, dev_name(dev));
+               __assign_str(name);
                __entry->spid = spid;
                __entry->portvec = portvec;
                memcpy(__entry->addr, addr, ETH_ALEN);
@@ -68,7 +68,7 @@ DECLARE_EVENT_CLASS(mv88e6xxx_vtu_violation,
        ),
 
        TP_fast_assign(
-               __assign_str(name, dev_name(dev));
+               __assign_str(name);
                __entry->spid = spid;
                __entry->vid = vid;
        ),
index 889f89df99301f8c64c8ecbd1deab0f807504894..6f0e58a2a58ad4085eb51249bb609f2e1510dfe5 100644 (file)
@@ -57,7 +57,7 @@ DECLARE_EVENT_CLASS(dpaa_eth_fd,
                __entry->fd_offset = qm_fd_get_offset(fd);
                __entry->fd_length = qm_fd_get_length(fd);
                __entry->fd_status = fd->status;
-               __assign_str(name, netdev->name);
+               __assign_str(name);
        ),
 
        /* This is what gets printed when the trace event is triggered */
index 9b43fadb9b11b80be32f99a479a65a6748dae40e..956767e0869c3cd847f97b4a4987a5b1d812941d 100644 (file)
@@ -48,7 +48,7 @@ DECLARE_EVENT_CLASS(dpaa2_eth_fd,
                                   __entry->fd_addr = dpaa2_fd_get_addr(fd);
                                   __entry->fd_len = dpaa2_fd_get_len(fd);
                                   __entry->fd_offset = dpaa2_fd_get_offset(fd);
-                                  __assign_str(name, netdev->name);
+                                  __assign_str(name);
                    ),
 
                    /* This is what gets printed when the trace event is
@@ -144,7 +144,7 @@ DECLARE_EVENT_CLASS(dpaa2_eth_buf,
                                   __entry->dma_addr = dma_addr;
                                   __entry->map_size = map_size;
                                   __entry->bpid = bpid;
-                                  __assign_str(name, netdev->name);
+                                  __assign_str(name);
                    ),
 
                    /* This is what gets printed when the trace event is
index 9e58dfec19d555df27387958260189aa8a3b4f7b..b9985900f30b3ba2c480e20f6cbe5b76717d5035 100644 (file)
@@ -32,7 +32,7 @@ TRACE_EVENT(funeth_tx,
                __entry->len = len;
                __entry->sqe_idx = sqe_idx;
                __entry->ngle = ngle;
-               __assign_str(devname, txq->netdev->name);
+               __assign_str(devname);
        ),
 
        TP_printk("%s: Txq %u, SQE idx %u, len %u, num GLEs %u",
@@ -62,7 +62,7 @@ TRACE_EVENT(funeth_tx_free,
                __entry->sqe_idx = sqe_idx;
                __entry->num_sqes = num_sqes;
                __entry->hw_head = hw_head;
-               __assign_str(devname, txq->netdev->name);
+               __assign_str(devname);
        ),
 
        TP_printk("%s: Txq %u, SQE idx %u, SQEs %u, HW head %u",
@@ -97,7 +97,7 @@ TRACE_EVENT(funeth_rx,
                __entry->len = pkt_len;
                __entry->hash = hash;
                __entry->cls_vec = cls_vec;
-               __assign_str(devname, rxq->netdev->name);
+               __assign_str(devname);
        ),
 
        TP_printk("%s: Rxq %u, CQ head %u, RQEs %u, len %u, hash %u, CV %#x",
index b8a1ecb4b8fbe844e6d09e983df03df99d2c42cf..3362b8d14d4fce92794476ac0fc1475194c4a80d 100644 (file)
@@ -84,7 +84,7 @@ TRACE_EVENT(hns3_tx_desc,
                __entry->desc_dma = ring->desc_dma_addr,
                memcpy(__entry->desc, &ring->desc[cur_ntu],
                       sizeof(struct hns3_desc));
-               __assign_str(devname, ring->tqp->handle->kinfo.netdev->name);
+               __assign_str(devname);
        ),
 
        TP_printk(
@@ -117,7 +117,7 @@ TRACE_EVENT(hns3_rx_desc,
                __entry->buf_dma = ring->desc_cb[ring->next_to_clean].dma;
                memcpy(__entry->desc, &ring->desc[ring->next_to_clean],
                       sizeof(struct hns3_desc));
-               __assign_str(devname, ring->tqp->handle->kinfo.netdev->name);
+               __assign_str(devname);
        ),
 
        TP_printk(
index 7e47f0c21d888c720e027ae797f75e3bf922ea9e..7103cf04bffcd485a817520b8523f375c2fcd427 100644 (file)
@@ -33,8 +33,8 @@ TRACE_EVENT(hclge_pf_mbx_get,
                __entry->vfid = req->mbx_src_vfid;
                __entry->code = req->msg.code;
                __entry->subcode = req->msg.subcode;
-               __assign_str(pciname, pci_name(hdev->pdev));
-               __assign_str(devname, hdev->vport[0].nic.kinfo.netdev->name);
+               __assign_str(pciname);
+               __assign_str(devname);
                memcpy(__entry->mbx_data, req,
                       sizeof(struct hclge_mbx_vf_to_pf_cmd));
        ),
@@ -64,8 +64,8 @@ TRACE_EVENT(hclge_pf_mbx_send,
        TP_fast_assign(
                __entry->vfid = req->dest_vfid;
                __entry->code = le16_to_cpu(req->msg.code);
-               __assign_str(pciname, pci_name(hdev->pdev));
-               __assign_str(devname, hdev->vport[0].nic.kinfo.netdev->name);
+               __assign_str(pciname);
+               __assign_str(devname);
                memcpy(__entry->mbx_data, req,
                       sizeof(struct hclge_mbx_pf_to_vf_cmd));
        ),
@@ -101,7 +101,7 @@ DECLARE_EVENT_CLASS(hclge_pf_cmd_template,
                        __entry->rsv = le16_to_cpu(desc->rsv);
                        __entry->index = index;
                        __entry->num = num;
-                       __assign_str(pciname, pci_name(hw->cmq.csq.pdev));
+                       __assign_str(pciname);
                        for (i = 0; i < HCLGE_DESC_DATA_LEN; i++)
                                __entry->data[i] = le32_to_cpu(desc->data[i]);),
 
@@ -144,7 +144,7 @@ DECLARE_EVENT_CLASS(hclge_pf_special_cmd_template,
                    TP_fast_assign(int i;
                        __entry->index = index;
                        __entry->num = num;
-                       __assign_str(pciname, pci_name(hw->cmq.csq.pdev));
+                       __assign_str(pciname);
                        for (i = 0; i < PF_DESC_LEN; i++)
                                __entry->data[i] = le32_to_cpu(data[i]);
                ),
index e2e3a2602b6adf169e48c34337d76b4bd568d546..66b084309c91b19acd88433dd3157798cff763e2 100644 (file)
@@ -30,8 +30,8 @@ TRACE_EVENT(hclge_vf_mbx_get,
        TP_fast_assign(
                __entry->vfid = req->dest_vfid;
                __entry->code = le16_to_cpu(req->msg.code);
-               __assign_str(pciname, pci_name(hdev->pdev));
-               __assign_str(devname, hdev->nic.kinfo.netdev->name);
+               __assign_str(pciname);
+               __assign_str(devname);
                memcpy(__entry->mbx_data, req,
                       sizeof(struct hclge_mbx_pf_to_vf_cmd));
        ),
@@ -63,8 +63,8 @@ TRACE_EVENT(hclge_vf_mbx_send,
                __entry->vfid = req->mbx_src_vfid;
                __entry->code = req->msg.code;
                __entry->subcode = req->msg.subcode;
-               __assign_str(pciname, pci_name(hdev->pdev));
-               __assign_str(devname, hdev->nic.kinfo.netdev->name);
+               __assign_str(pciname);
+               __assign_str(devname);
                memcpy(__entry->mbx_data, req,
                       sizeof(struct hclge_mbx_vf_to_pf_cmd));
        ),
@@ -101,7 +101,7 @@ DECLARE_EVENT_CLASS(hclge_vf_cmd_template,
                        __entry->rsv = le16_to_cpu(desc->rsv);
                        __entry->index = index;
                        __entry->num = num;
-                       __assign_str(pciname, pci_name(hw->cmq.csq.pdev));
+                       __assign_str(pciname);
                        for (i = 0; i < HCLGE_DESC_DATA_LEN; i++)
                                __entry->data[i] = le32_to_cpu(desc->data[i]);),
 
index 33b4e30f5e0045cf47e5650f50f1db820880a961..759f3d1c4c8f004810351c429e8faccd8a174aa0 100644 (file)
@@ -89,8 +89,8 @@ TRACE_EVENT(i40e_napi_poll,
                __entry->tx_clean_complete = tx_clean_complete;
                __entry->irq_num = q->irq_num;
                __entry->curr_cpu = get_cpu();
-               __assign_str(qname, q->name);
-               __assign_str(dev_name, napi->dev ? napi->dev->name : NO_DEV);
+               __assign_str(qname);
+               __assign_str(dev_name);
                __assign_bitmask(irq_affinity, cpumask_bits(&q->affinity_mask),
                                 nr_cpumask_bits);
        ),
@@ -132,7 +132,7 @@ DECLARE_EVENT_CLASS(
                __entry->ring = ring;
                __entry->desc = desc;
                __entry->buf = buf;
-               __assign_str(devname, ring->netdev->name);
+               __assign_str(devname);
        ),
 
        TP_printk(
@@ -177,7 +177,7 @@ DECLARE_EVENT_CLASS(
                __entry->ring = ring;
                __entry->desc = desc;
                __entry->xdp = xdp;
-               __assign_str(devname, ring->netdev->name);
+               __assign_str(devname);
        ),
 
        TP_printk(
@@ -219,7 +219,7 @@ DECLARE_EVENT_CLASS(
        TP_fast_assign(
                __entry->skb = skb;
                __entry->ring = ring;
-               __assign_str(devname, ring->netdev->name);
+               __assign_str(devname);
        ),
 
        TP_printk(
index 82fda6f5abf043499c2b32dea0b8bcc554776511..62212011c80706098777cd31d2f7760432f4e4d2 100644 (file)
@@ -83,7 +83,7 @@ DECLARE_EVENT_CLASS(
                __entry->ring = ring;
                __entry->desc = desc;
                __entry->buf = buf;
-               __assign_str(devname, ring->netdev->name);
+               __assign_str(devname);
        ),
 
        TP_printk(
@@ -128,7 +128,7 @@ DECLARE_EVENT_CLASS(
                __entry->ring = ring;
                __entry->desc = desc;
                __entry->skb = skb;
-               __assign_str(devname, ring->netdev->name);
+               __assign_str(devname);
        ),
 
        TP_printk(
@@ -170,7 +170,7 @@ DECLARE_EVENT_CLASS(
        TP_fast_assign(
                __entry->skb = skb;
                __entry->ring = ring;
-               __assign_str(devname, ring->netdev->name);
+               __assign_str(devname);
        ),
 
        TP_printk(
index b2f5c9fe01492d0147246989b34a44c7dab9b2d3..244cddd2a9eab340d52f44a67cfebcbc9fe3e847 100644 (file)
@@ -69,7 +69,7 @@ DECLARE_EVENT_CLASS(ice_rx_dim_template,
 
                    TP_fast_assign(__entry->q_vector = q_vector;
                                   __entry->dim = dim;
-                                  __assign_str(devname, q_vector->rx.rx_ring->netdev->name);),
+                                  __assign_str(devname);),
 
                    TP_printk("netdev: %s Rx-Q: %d dim-state: %d dim-profile: %d dim-tune: %d dim-st-right: %d dim-st-left: %d dim-tired: %d",
                              __get_str(devname),
@@ -96,7 +96,7 @@ DECLARE_EVENT_CLASS(ice_tx_dim_template,
 
                    TP_fast_assign(__entry->q_vector = q_vector;
                                   __entry->dim = dim;
-                                  __assign_str(devname, q_vector->tx.tx_ring->netdev->name);),
+                                  __assign_str(devname);),
 
                    TP_printk("netdev: %s Tx-Q: %d dim-state: %d dim-profile: %d dim-tune: %d dim-st-right: %d dim-st-left: %d dim-tired: %d",
                              __get_str(devname),
@@ -128,7 +128,7 @@ DECLARE_EVENT_CLASS(ice_tx_template,
                    TP_fast_assign(__entry->ring = ring;
                                   __entry->desc = desc;
                                   __entry->buf = buf;
-                                  __assign_str(devname, ring->netdev->name);),
+                                  __assign_str(devname);),
 
                    TP_printk("netdev: %s ring: %pK desc: %pK buf %pK", __get_str(devname),
                              __entry->ring, __entry->desc, __entry->buf)
@@ -156,7 +156,7 @@ DECLARE_EVENT_CLASS(ice_rx_template,
 
                    TP_fast_assign(__entry->ring = ring;
                                   __entry->desc = desc;
-                                  __assign_str(devname, ring->netdev->name);),
+                                  __assign_str(devname);),
 
                    TP_printk("netdev: %s ring: %pK desc: %pK", __get_str(devname),
                              __entry->ring, __entry->desc)
@@ -180,7 +180,7 @@ DECLARE_EVENT_CLASS(ice_rx_indicate_template,
                    TP_fast_assign(__entry->ring = ring;
                                   __entry->desc = desc;
                                   __entry->skb = skb;
-                                  __assign_str(devname, ring->netdev->name);),
+                                  __assign_str(devname);),
 
                    TP_printk("netdev: %s ring: %pK desc: %pK skb %pK", __get_str(devname),
                              __entry->ring, __entry->desc, __entry->skb)
@@ -203,7 +203,7 @@ DECLARE_EVENT_CLASS(ice_xmit_template,
 
                    TP_fast_assign(__entry->ring = ring;
                                   __entry->skb = skb;
-                                  __assign_str(devname, ring->netdev->name);),
+                                  __assign_str(devname);),
 
                    TP_printk("netdev: %s skb: %pK ring: %pK", __get_str(devname),
                              __entry->skb, __entry->ring)
index 28984d0e848a6c1b9ab90b3f4a2aee7a4c08b9cb..5704520f9b0258255222604afcb053ea0c4fb054 100644 (file)
@@ -24,7 +24,7 @@ TRACE_EVENT(otx2_msg_alloc,
                             __field(u16, id)
                             __field(u64, size)
            ),
-           TP_fast_assign(__assign_str(dev, pci_name(pdev));
+           TP_fast_assign(__assign_str(dev);
                           __entry->id = id;
                           __entry->size = size;
            ),
@@ -39,7 +39,7 @@ TRACE_EVENT(otx2_msg_send,
                             __field(u16, num_msgs)
                             __field(u64, msg_size)
            ),
-           TP_fast_assign(__assign_str(dev, pci_name(pdev));
+           TP_fast_assign(__assign_str(dev);
                           __entry->num_msgs = num_msgs;
                           __entry->msg_size = msg_size;
            ),
@@ -55,7 +55,7 @@ TRACE_EVENT(otx2_msg_check,
                             __field(u16, rspid)
                             __field(int, rc)
            ),
-           TP_fast_assign(__assign_str(dev, pci_name(pdev));
+           TP_fast_assign(__assign_str(dev);
                           __entry->reqid = reqid;
                           __entry->rspid = rspid;
                           __entry->rc = rc;
@@ -72,8 +72,8 @@ TRACE_EVENT(otx2_msg_interrupt,
                             __string(str, msg)
                             __field(u64, intr)
            ),
-           TP_fast_assign(__assign_str(dev, pci_name(pdev));
-                          __assign_str(str, msg);
+           TP_fast_assign(__assign_str(dev);
+                          __assign_str(str);
                           __entry->intr = intr;
            ),
            TP_printk("[%s] mbox interrupt %s (0x%llx)\n", __get_str(dev),
@@ -87,7 +87,7 @@ TRACE_EVENT(otx2_msg_process,
                             __field(u16, id)
                             __field(int, err)
            ),
-           TP_fast_assign(__assign_str(dev, pci_name(pdev));
+           TP_fast_assign(__assign_str(dev);
                           __entry->id = id;
                           __entry->err = err;
            ),
index 406ebe17405f941af4e0e78f2edf361989ff9edb..b4b3a43e56a0a4c0dc241d3decd16ff7cf2b68a2 100644 (file)
@@ -22,10 +22,10 @@ TRACE_EVENT(mlx5_cmd,
                            __field(u32, syndrome)
                            __field(int, err)
                            ),
-           TP_fast_assign(__assign_str(command_str, command_str);
+           TP_fast_assign(__assign_str(command_str);
                        __entry->opcode = opcode;
                        __entry->op_mod = op_mod;
-                       __assign_str(status_str, status_str);
+                       __assign_str(status_str);
                        __entry->status = status;
                        __entry->syndrome = syndrome;
                        __entry->err = err;
index f15718db5d0ee163eb9c897ad7ebf436a460c9c5..78e481b2c015667ce7044f23fae718a32c1d5232 100644 (file)
@@ -25,7 +25,7 @@ TRACE_EVENT(mlx5e_rep_neigh_update,
                        struct in6_addr *pin6;
                        __be32 *p32;
 
-                       __assign_str(devname, nhe->neigh_dev->name);
+                       __assign_str(devname);
                        __entry->neigh_connected = neigh_connected;
                        memcpy(__entry->ha, ha, ETH_ALEN);
 
index ac52ef37f38a8e66883d4aef985c6e4976c706f3..4b1ca228012b54d898b76f5532b96d4f34d0a6ca 100644 (file)
@@ -86,7 +86,7 @@ TRACE_EVENT(mlx5e_tc_update_neigh_used_value,
                        struct in6_addr *pin6;
                        __be32 *p32;
 
-                       __assign_str(devname, nhe->neigh_dev->name);
+                       __assign_str(devname);
                        __entry->neigh_used = neigh_used;
 
                        p32 = (__be32 *)__entry->v4;
index 3038be575923b36aeee6e441be376aca4177507d..50f8a7630f865fc25969f2c84799f4c2fd0b21b1 100644 (file)
@@ -55,12 +55,11 @@ TRACE_EVENT(mlx5_fw,
        ),
 
        TP_fast_assign(
-               __assign_str(dev_name,
-                            dev_name(tracer->dev->device));
+               __assign_str(dev_name);
                __entry->trace_timestamp = trace_timestamp;
                __entry->lost = lost;
                __entry->event_id = event_id;
-               __assign_str(msg, msg);
+               __assign_str(msg);
        ),
 
        TP_printk("%s [0x%llx] %d [0x%x] %s",
index 458baf0c64156abb953da748ea63a21f44503a60..1ce332f21ebe9946a873d7f7d36512309f6160f6 100644 (file)
@@ -17,7 +17,7 @@ TRACE_EVENT(mlx5_esw_vport_qos_destroy,
                             __field(unsigned short, vport_id)
                             __field(unsigned int,   tsar_ix)
                             ),
-           TP_fast_assign(__assign_str(devname, dev_name(vport->dev->device));
+           TP_fast_assign(__assign_str(devname);
                    __entry->vport_id = vport->vport;
                    __entry->tsar_ix = vport->qos.esw_tsar_ix;
            ),
@@ -36,7 +36,7 @@ DECLARE_EVENT_CLASS(mlx5_esw_vport_qos_template,
                                     __field(unsigned int, max_rate)
                                     __field(void *, group)
                                     ),
-                   TP_fast_assign(__assign_str(devname, dev_name(vport->dev->device));
+                   TP_fast_assign(__assign_str(devname);
                            __entry->vport_id = vport->vport;
                            __entry->tsar_ix = vport->qos.esw_tsar_ix;
                            __entry->bw_share = bw_share;
@@ -68,7 +68,7 @@ DECLARE_EVENT_CLASS(mlx5_esw_group_qos_template,
                                     __field(const void *, group)
                                     __field(unsigned int, tsar_ix)
                                     ),
-                   TP_fast_assign(__assign_str(devname, dev_name(dev->device));
+                   TP_fast_assign(__assign_str(devname);
                            __entry->group = group;
                            __entry->tsar_ix = tsar_ix;
                    ),
@@ -102,7 +102,7 @@ TRACE_EVENT(mlx5_esw_group_qos_config,
                             __field(unsigned int, bw_share)
                             __field(unsigned int, max_rate)
                             ),
-           TP_fast_assign(__assign_str(devname, dev_name(dev->device));
+           TP_fast_assign(__assign_str(devname);
                    __entry->group = group;
                    __entry->tsar_ix = tsar_ix;
                    __entry->bw_share = bw_share;
index 7f7c9af5deed99d858b3c9654bbf36f1c5754fd8..0537de86f9817dc80bd897688c539135b1ad37ac 100644 (file)
@@ -22,7 +22,7 @@ DECLARE_EVENT_CLASS(mlx5_sf_dev_template,
                                     __field(u16, hw_fn_id)
                                     __field(u32, sfnum)
                    ),
-                   TP_fast_assign(__assign_str(devname, dev_name(dev->device));
+                   TP_fast_assign(__assign_str(devname);
                                   __entry->sfdev = sfdev;
                                   __entry->aux_id = aux_id;
                                   __entry->hw_fn_id = sfdev->fn_id;
index 8bf1cd90930d3a72c9824bf01f3710cf2727671b..302ce00da5a99e9ddae80a3f9278f674f1b18af4 100644 (file)
@@ -24,7 +24,7 @@ TRACE_EVENT(mlx5_sf_add,
                             __field(u16, hw_fn_id)
                             __field(u32, sfnum)
                            ),
-           TP_fast_assign(__assign_str(devname, dev_name(dev->device));
+           TP_fast_assign(__assign_str(devname);
                    __entry->port_index = port_index;
                    __entry->controller = controller;
                    __entry->hw_fn_id = hw_fn_id;
@@ -46,7 +46,7 @@ TRACE_EVENT(mlx5_sf_free,
                             __field(u32, controller)
                             __field(u16, hw_fn_id)
                            ),
-           TP_fast_assign(__assign_str(devname, dev_name(dev->device));
+           TP_fast_assign(__assign_str(devname);
                    __entry->port_index = port_index;
                    __entry->controller = controller;
                    __entry->hw_fn_id = hw_fn_id;
@@ -67,7 +67,7 @@ TRACE_EVENT(mlx5_sf_hwc_alloc,
                             __field(u16, hw_fn_id)
                             __field(u32, sfnum)
                            ),
-           TP_fast_assign(__assign_str(devname, dev_name(dev->device));
+           TP_fast_assign(__assign_str(devname);
                    __entry->controller = controller;
                    __entry->hw_fn_id = hw_fn_id;
                    __entry->sfnum = sfnum;
@@ -84,7 +84,7 @@ TRACE_EVENT(mlx5_sf_hwc_free,
            TP_STRUCT__entry(__string(devname, dev_name(dev->device))
                             __field(u16, hw_fn_id)
                            ),
-           TP_fast_assign(__assign_str(devname, dev_name(dev->device));
+           TP_fast_assign(__assign_str(devname);
                    __entry->hw_fn_id = hw_fn_id;
            ),
            TP_printk("(%s) hw_id=0x%x\n", __get_str(devname), __entry->hw_fn_id)
@@ -97,7 +97,7 @@ TRACE_EVENT(mlx5_sf_hwc_deferred_free,
            TP_STRUCT__entry(__string(devname, dev_name(dev->device))
                             __field(u16, hw_fn_id)
                            ),
-           TP_fast_assign(__assign_str(devname, dev_name(dev->device));
+           TP_fast_assign(__assign_str(devname);
                    __entry->hw_fn_id = hw_fn_id;
            ),
            TP_printk("(%s) hw_id=0x%x\n", __get_str(devname), __entry->hw_fn_id)
@@ -113,7 +113,7 @@ DECLARE_EVENT_CLASS(mlx5_sf_state_template,
                                     __field(unsigned int, port_index)
                                     __field(u32, controller)
                                     __field(u16, hw_fn_id)),
-                   TP_fast_assign(__assign_str(devname, dev_name(dev->device));
+                   TP_fast_assign(__assign_str(devname);
                                   __entry->port_index = port_index;
                                   __entry->controller = controller;
                                   __entry->hw_fn_id = hw_fn_id;
@@ -152,7 +152,7 @@ TRACE_EVENT(mlx5_sf_update_state,
                             __field(u16, hw_fn_id)
                             __field(u8, state)
                            ),
-           TP_fast_assign(__assign_str(devname, dev_name(dev->device));
+           TP_fast_assign(__assign_str(devname);
                    __entry->port_index = port_index;
                    __entry->controller = controller;
                    __entry->hw_fn_id = hw_fn_id;
index fd814a190b8b1ce4625b4405989f0a0d2b3b1bf2..6352cb004a186e7dd895c65c8897e7d39b4991a3 100644 (file)
@@ -20,7 +20,7 @@ TRACE_EVENT(mlx5_sf_vhca_event,
                             __field(u32, sfnum)
                             __field(u8, vhca_state)
                            ),
-           TP_fast_assign(__assign_str(devname, dev_name(dev->device));
+           TP_fast_assign(__assign_str(devname);
                    __entry->hw_fn_id = event->function_id;
                    __entry->sfnum = event->sw_function_id;
                    __entry->vhca_state = event->new_vhca_state;
index 6437ddbd7842e099eead7d49a0aade24fcbc88ec..166ef015262beb29b5af12a98fe161a9b4e71e69 100644 (file)
@@ -85,7 +85,7 @@ TRACE_EVENT(fjes_hw_request_info_err,
                __string(err, err)
        ),
        TP_fast_assign(
-               __assign_str(err, err);
+               __assign_str(err);
        ),
        TP_printk("%s", __get_str(err))
 );
@@ -145,7 +145,7 @@ TRACE_EVENT(fjes_hw_register_buff_addr_err,
                __string(err, err)
        ),
        TP_fast_assign(
-               __assign_str(err, err);
+               __assign_str(err);
        ),
        TP_printk("%s", __get_str(err))
 );
@@ -189,7 +189,7 @@ TRACE_EVENT(fjes_hw_unregister_buff_addr_err,
                __string(err, err)
        ),
        TP_fast_assign(
-               __assign_str(err, err);
+               __assign_str(err);
        ),
        TP_printk("%s", __get_str(err))
 );
@@ -232,7 +232,7 @@ TRACE_EVENT(fjes_hw_start_debug_err,
                 __string(err, err)
        ),
        TP_fast_assign(
-               __assign_str(err, err);
+               __assign_str(err);
        ),
        TP_printk("%s", __get_str(err))
 );
@@ -258,7 +258,7 @@ TRACE_EVENT(fjes_hw_stop_debug_err,
                 __string(err, err)
        ),
        TP_fast_assign(
-               __assign_str(err, err);
+               __assign_str(err);
        ),
        TP_printk("%s", __get_str(err))
 );
index f7585563dea5561393feb4a2f088f46a0c6926e1..05e620cbdd2927bc469c671b910b3aa6de396dad 100644 (file)
@@ -51,7 +51,7 @@ DECLARE_EVENT_CLASS(rndis_msg_class,
               __field(  u32,  msg_len     )
        ),
        TP_fast_assign(
-              __assign_str(name, ndev->name);
+              __assign_str(name);
               __entry->queue    = q;
               __entry->req_id   = msg->msg.init_req.req_id;
               __entry->msg_type = msg->ndis_msg_type;
@@ -121,7 +121,7 @@ TRACE_EVENT(nvsp_send,
                __field(  u32,  msg_type    )
        ),
        TP_fast_assign(
-               __assign_str(name, ndev->name);
+               __assign_str(name);
                __entry->msg_type = msg->hdr.msg_type;
        ),
        TP_printk("dev=%s type=%s",
@@ -142,7 +142,7 @@ TRACE_EVENT(nvsp_send_pkt,
                __field(  u32,  section_size  )
        ),
        TP_fast_assign(
-               __assign_str(name, ndev->name);
+               __assign_str(name);
                __entry->qid = chan->offermsg.offer.sub_channel_index;
                __entry->channel_type = rpkt->channel_type;
                __entry->section_index = rpkt->send_buf_section_index;
@@ -165,7 +165,7 @@ TRACE_EVENT(nvsp_recv,
                __field(  u32,  msg_type    )
        ),
        TP_fast_assign(
-               __assign_str(name, ndev->name);
+               __assign_str(name);
                __entry->qid = chan->offermsg.offer.sub_channel_index;
                __entry->msg_type = msg->hdr.msg_type;
        ),
index 64e7a767d9634293565d3aab06930431d0011236..68b78ca17eaa442d1b3c542352d66c7d9427f3f3 100644 (file)
@@ -55,8 +55,8 @@ DECLARE_EVENT_CLASS(ath10k_log_event,
                __vstring(msg, vaf->fmt, vaf->va)
        ),
        TP_fast_assign(
-               __assign_str(device, dev_name(ar->dev));
-               __assign_str(driver, dev_driver_string(ar->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __assign_vstr(msg, vaf->fmt, vaf->va);
        ),
        TP_printk(
@@ -92,8 +92,8 @@ TRACE_EVENT(ath10k_log_dbg,
                __vstring(msg, vaf->fmt, vaf->va)
        ),
        TP_fast_assign(
-               __assign_str(device, dev_name(ar->dev));
-               __assign_str(driver, dev_driver_string(ar->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->level = level;
                __assign_vstr(msg, vaf->fmt, vaf->va);
        ),
@@ -121,10 +121,10 @@ TRACE_EVENT(ath10k_log_dbg_dump,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ar->dev));
-               __assign_str(driver, dev_driver_string(ar->dev));
-               __assign_str(msg, msg);
-               __assign_str(prefix, prefix);
+               __assign_str(device);
+               __assign_str(driver);
+               __assign_str(msg);
+               __assign_str(prefix);
                __entry->buf_len = buf_len;
                memcpy(__get_dynamic_array(buf), buf, buf_len);
        ),
@@ -152,8 +152,8 @@ TRACE_EVENT(ath10k_wmi_cmd,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ar->dev));
-               __assign_str(driver, dev_driver_string(ar->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->id = id;
                __entry->buf_len = buf_len;
                memcpy(__get_dynamic_array(buf), buf, buf_len);
@@ -182,8 +182,8 @@ TRACE_EVENT(ath10k_wmi_event,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ar->dev));
-               __assign_str(driver, dev_driver_string(ar->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->id = id;
                __entry->buf_len = buf_len;
                memcpy(__get_dynamic_array(buf), buf, buf_len);
@@ -211,8 +211,8 @@ TRACE_EVENT(ath10k_htt_stats,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ar->dev));
-               __assign_str(driver, dev_driver_string(ar->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->buf_len = buf_len;
                memcpy(__get_dynamic_array(buf), buf, buf_len);
        ),
@@ -239,8 +239,8 @@ TRACE_EVENT(ath10k_wmi_dbglog,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ar->dev));
-               __assign_str(driver, dev_driver_string(ar->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->hw_type = ar->hw_rev;
                __entry->buf_len = buf_len;
                memcpy(__get_dynamic_array(buf), buf, buf_len);
@@ -269,8 +269,8 @@ TRACE_EVENT(ath10k_htt_pktlog,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ar->dev));
-               __assign_str(driver, dev_driver_string(ar->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->hw_type = ar->hw_rev;
                __entry->buf_len = buf_len;
                memcpy(__get_dynamic_array(pktlog), buf, buf_len);
@@ -301,8 +301,8 @@ TRACE_EVENT(ath10k_htt_tx,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ar->dev));
-               __assign_str(driver, dev_driver_string(ar->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->msdu_id = msdu_id;
                __entry->msdu_len = msdu_len;
                __entry->vdev_id = vdev_id;
@@ -332,8 +332,8 @@ TRACE_EVENT(ath10k_txrx_tx_unref,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ar->dev));
-               __assign_str(driver, dev_driver_string(ar->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->msdu_id = msdu_id;
        ),
 
@@ -358,8 +358,8 @@ DECLARE_EVENT_CLASS(ath10k_hdr_event,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ar->dev));
-               __assign_str(driver, dev_driver_string(ar->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->len = ath10k_frm_hdr_len(data, len);
                memcpy(__get_dynamic_array(data), data, __entry->len);
        ),
@@ -386,8 +386,8 @@ DECLARE_EVENT_CLASS(ath10k_payload_event,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ar->dev));
-               __assign_str(driver, dev_driver_string(ar->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->len = len - ath10k_frm_hdr_len(data, len);
                memcpy(__get_dynamic_array(payload),
                       data + ath10k_frm_hdr_len(data, len), __entry->len);
@@ -435,8 +435,8 @@ TRACE_EVENT(ath10k_htt_rx_desc,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ar->dev));
-               __assign_str(driver, dev_driver_string(ar->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->hw_type = ar->hw_rev;
                __entry->len = len;
                memcpy(__get_dynamic_array(rxdesc), data, len);
@@ -472,8 +472,8 @@ TRACE_EVENT(ath10k_wmi_diag_container,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ar->dev));
-               __assign_str(driver, dev_driver_string(ar->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->type = type;
                __entry->timestamp = timestamp;
                __entry->code = code;
@@ -505,8 +505,8 @@ TRACE_EVENT(ath10k_wmi_diag,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ar->dev));
-               __assign_str(driver, dev_driver_string(ar->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->len = len;
                memcpy(__get_dynamic_array(data), data, len);
        ),
index 235ab8ea715fed7119e215fa31a7ef780eefb01c..75246b0a82e3649baa83f08fe9266b72059b55c0 100644 (file)
@@ -48,8 +48,8 @@ TRACE_EVENT(ath11k_htt_pktlog,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ar->ab->dev));
-               __assign_str(driver, dev_driver_string(ar->ab->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->buf_len = buf_len;
                __entry->pktlog_checksum = pktlog_checksum;
                memcpy(__get_dynamic_array(pktlog), buf, buf_len);
@@ -77,8 +77,8 @@ TRACE_EVENT(ath11k_htt_ppdu_stats,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ar->ab->dev));
-               __assign_str(driver, dev_driver_string(ar->ab->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->len = len;
                memcpy(__get_dynamic_array(ppdu), data, len);
        ),
@@ -105,8 +105,8 @@ TRACE_EVENT(ath11k_htt_rxdesc,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ar->ab->dev));
-               __assign_str(driver, dev_driver_string(ar->ab->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->len = len;
                __entry->log_type = log_type;
                memcpy(__get_dynamic_array(rxdesc), data, len);
@@ -130,8 +130,8 @@ DECLARE_EVENT_CLASS(ath11k_log_event,
                __vstring(msg, vaf->fmt, vaf->va)
        ),
        TP_fast_assign(
-               __assign_str(device, dev_name(ab->dev));
-               __assign_str(driver, dev_driver_string(ab->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __assign_vstr(msg, vaf->fmt, vaf->va);
        ),
        TP_printk(
@@ -171,8 +171,8 @@ TRACE_EVENT(ath11k_wmi_cmd,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ab->dev));
-               __assign_str(driver, dev_driver_string(ab->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->id = id;
                __entry->buf_len = buf_len;
                memcpy(__get_dynamic_array(buf), buf, buf_len);
@@ -201,8 +201,8 @@ TRACE_EVENT(ath11k_wmi_event,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ab->dev));
-               __assign_str(driver, dev_driver_string(ab->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->id = id;
                __entry->buf_len = buf_len;
                memcpy(__get_dynamic_array(buf), buf, buf_len);
@@ -230,8 +230,8 @@ TRACE_EVENT(ath11k_log_dbg,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ab->dev));
-               __assign_str(driver, dev_driver_string(ab->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->level = level;
                WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg),
                                       ATH11K_MSG_MAX, vaf->fmt,
@@ -262,10 +262,10 @@ TRACE_EVENT(ath11k_log_dbg_dump,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ab->dev));
-               __assign_str(driver, dev_driver_string(ab->dev));
-               __assign_str(msg, msg);
-               __assign_str(prefix, prefix);
+               __assign_str(device);
+               __assign_str(driver);
+               __assign_str(msg);
+               __assign_str(prefix);
                __entry->buf_len = buf_len;
                memcpy(__get_dynamic_array(buf), buf, buf_len);
        ),
@@ -292,8 +292,8 @@ TRACE_EVENT(ath11k_wmi_diag,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ab->dev));
-               __assign_str(driver, dev_driver_string(ab->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->len = len;
                memcpy(__get_dynamic_array(data), data, len);
        ),
@@ -318,8 +318,8 @@ TRACE_EVENT(ath11k_ps_timekeeper,
                         __field(u32, peer_ps_timestamp)
        ),
 
-       TP_fast_assign(__assign_str(device, dev_name(ar->ab->dev));
-                      __assign_str(driver, dev_driver_string(ar->ab->dev));
+       TP_fast_assign(__assign_str(device);
+                      __assign_str(driver);
                       memcpy(__get_dynamic_array(peer_addr), peer_addr,
                              ETH_ALEN);
                       __entry->peer_ps_state = peer_ps_state;
index 240737e1542d4e714de4bd05959e701ada51255a..253c67accb0e1a586dbd89e88333c1dba52f5457 100644 (file)
@@ -36,8 +36,8 @@ TRACE_EVENT(ath12k_htt_pktlog,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ar->ab->dev));
-               __assign_str(driver, dev_driver_string(ar->ab->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->buf_len = buf_len;
                __entry->pktlog_checksum = pktlog_checksum;
                memcpy(__get_dynamic_array(pktlog), buf, buf_len);
@@ -73,8 +73,8 @@ TRACE_EVENT(ath12k_htt_ppdu_stats,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ar->ab->dev));
-               __assign_str(driver, dev_driver_string(ar->ab->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->len = len;
                __entry->info = ar->pdev->timestamp.info;
                __entry->sync_tstmp_lo_us = ar->pdev->timestamp.sync_timestamp_hi_us;
@@ -117,8 +117,8 @@ TRACE_EVENT(ath12k_htt_rxdesc,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ar->ab->dev));
-               __assign_str(driver, dev_driver_string(ar->ab->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->len = len;
                __entry->type = type;
                __entry->info = ar->pdev->timestamp.info;
@@ -153,8 +153,8 @@ TRACE_EVENT(ath12k_wmi_diag,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(ab->dev));
-               __assign_str(driver, dev_driver_string(ab->dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->len = len;
                memcpy(__get_dynamic_array(data), data, len);
        ),
index 231a94769ddb96d788a53465246d130269018e30..8577aa459c5801fcc3bedcff211c7b4ce2ef742c 100644 (file)
@@ -304,8 +304,8 @@ TRACE_EVENT(ath6kl_log_dbg_dump,
        ),
 
        TP_fast_assign(
-               __assign_str(msg, msg);
-               __assign_str(prefix, prefix);
+               __assign_str(msg);
+               __assign_str(prefix);
                __entry->buf_len = buf_len;
                memcpy(__get_dynamic_array(buf), buf, buf_len);
        ),
index 9935cf475b6d30fc814949595cecab8f5e07f110..82aac0a4baff108549f6700c573cdd7269e42194 100644 (file)
@@ -44,8 +44,8 @@ TRACE_EVENT(ath_log,
            ),
 
            TP_fast_assign(
-                   __assign_str(device, wiphy_name(wiphy));
-                   __assign_str(driver, KBUILD_MODNAME);
+                   __assign_str(device);
+                   __assign_str(driver);
                    __assign_vstr(msg, vaf->fmt, vaf->va);
            ),
 
index 5d66e94c806d59a56cc9920655c4e9a233e2cc53..96032322b165aa18c0a42b93da608ac1f81f10b2 100644 (file)
@@ -41,7 +41,7 @@ TRACE_EVENT(brcmf_err,
                __vstring(msg, vaf->fmt, vaf->va)
        ),
        TP_fast_assign(
-               __assign_str(func, func);
+               __assign_str(func);
                __assign_vstr(msg, vaf->fmt, vaf->va);
        ),
        TP_printk("%s: %s", __get_str(func), __get_str(msg))
@@ -57,7 +57,7 @@ TRACE_EVENT(brcmf_dbg,
        ),
        TP_fast_assign(
                __entry->level = level;
-               __assign_str(func, func);
+               __assign_str(func);
                __assign_vstr(msg, vaf->fmt, vaf->va);
        ),
        TP_printk("%s: %s", __get_str(func), __get_str(msg))
index a0da3248b942fd92cadbe68c96547b8fa9f80a5c..53b3dba507377603e5d066cfa52ff48b6685a247 100644 (file)
@@ -81,7 +81,7 @@ TRACE_EVENT(brcms_macintstatus,
                __field(u32, mask)
        ),
        TP_fast_assign(
-               __assign_str(dev, dev_name(dev));
+               __assign_str(dev);
                __entry->in_isr = in_isr;
                __entry->macintstatus = macintstatus;
                __entry->mask = mask;
index 42b0a91656c45f9f3969282d2926771e8e890cca..908ce3c864febbd70377b716a918c68dcef7d461 100644 (file)
@@ -71,7 +71,7 @@ TRACE_EVENT(brcms_dbg,
        ),
        TP_fast_assign(
                __entry->level = level;
-               __assign_str(func, func);
+               __assign_str(func);
                __assign_vstr(msg, vaf->fmt, vaf->va);
        ),
        TP_printk("%s: %s", __get_str(func), __get_str(msg))
index cf2cc070f1e5c739fb3e16097f851194cb01b3ba..24ac34fa020775c0c32cefe9200de5e0384715ee 100644 (file)
@@ -31,7 +31,7 @@ TRACE_EVENT(brcms_txdesc,
                __dynamic_array(u8, txh, txh_len)
        ),
        TP_fast_assign(
-               __assign_str(dev, dev_name(dev));
+               __assign_str(dev);
                memcpy(__get_dynamic_array(txh), txh, txh_len);
        ),
        TP_printk("[%s] txdesc", __get_str(dev))
@@ -54,7 +54,7 @@ TRACE_EVENT(brcms_txstatus,
                __field(u16, ackphyrxsh)
        ),
        TP_fast_assign(
-               __assign_str(dev, dev_name(dev));
+               __assign_str(dev);
                __entry->framelen = framelen;
                __entry->frameid = frameid;
                __entry->status = status;
@@ -85,7 +85,7 @@ TRACE_EVENT(brcms_ampdu_session,
                __field(u16, dma_len)
        ),
        TP_fast_assign(
-               __assign_str(dev, dev_name(dev));
+               __assign_str(dev);
                __entry->max_ampdu_len = max_ampdu_len;
                __entry->max_ampdu_frames = max_ampdu_frames;
                __entry->ampdu_len = ampdu_len;
index 1d6c292cf545687c28aeaa49283cf9ff9af6e6f7..0db1fa5477af9d2b3f0ab6836f83d24ffb78a7e5 100644 (file)
@@ -57,7 +57,7 @@ TRACE_EVENT(iwlwifi_dbg,
        ),
        TP_fast_assign(
                __entry->level = level;
-               __assign_str(function, function);
+               __assign_str(function);
                __assign_vstr(msg, vaf->fmt, vaf->va);
        ),
        TP_printk("%s", __get_str(msg))
index c3e09f4fefeb9c990f7baffe278c4123614ea179..76166e1b10e5c6d15144076b67bfa5fb36cf3f88 100644 (file)
@@ -87,7 +87,7 @@ static inline void trace_ ## name(proto) {}
 #endif
 
 #define DEV_ENTRY      __string(dev, dev_name(dev))
-#define DEV_ASSIGN     __assign_str(dev, dev_name(dev))
+#define DEV_ASSIGN     __assign_str(dev)
 
 #include "iwl-devtrace-io.h"
 #include "iwl-devtrace-ucode.h"
index 152e3a6b548090746af0b25cb4468b1e6db012d2..1cfa58f0e34c6e26e41ef641f312a37f1d977cdf 100644 (file)
@@ -18,7 +18,7 @@ TRACE_EVENT(pmic_pdcharger_ulog_msg,
                __string(msg, msg)
        ),
        TP_fast_assign(
-               __assign_str(msg, msg);
+               __assign_str(msg);
        ),
        TP_printk("%s", __get_str(msg))
 );
index 554029b33b44d83d555d3bb513303378d80833f5..fb5b0470c40d9c9ee5a48044ae71d2988bb28cb9 100644 (file)
@@ -18,7 +18,7 @@ TRACE_EVENT(aoss_send,
                __string(msg, msg)
        ),
        TP_fast_assign(
-               __assign_str(msg, msg);
+               __assign_str(msg);
        ),
        TP_printk("%s", __get_str(msg))
 );
@@ -31,7 +31,7 @@ TRACE_EVENT(aoss_send_done,
                __field(int, ret)
        ),
        TP_fast_assign(
-               __assign_str(msg, msg);
+               __assign_str(msg);
                __entry->ret = ret;
        ),
        TP_printk("%s: %d", __get_str(msg), __entry->ret)
index be6b42ecc1f800f2c345df5a20a51c1ca358f262..593ec1d4e01076deec44c1a206b4ccdf5c47d7c7 100644 (file)
@@ -26,7 +26,7 @@ TRACE_EVENT(rpmh_tx_done,
        ),
 
        TP_fast_assign(
-                      __assign_str(name, d->name);
+                      __assign_str(name);
                       __entry->m = m;
                       __entry->addr = r->cmds[0].addr;
                       __entry->data = r->cmds[0].data;
@@ -55,7 +55,7 @@ TRACE_EVENT(rpmh_send_msg,
        ),
 
        TP_fast_assign(
-                      __assign_str(name, d->name);
+                      __assign_str(name);
                       __entry->m = m;
                       __entry->state = state;
                       __entry->n = n;
index 88a962f560f223a7e3160ab78c2a276dfce85f36..df8f4edd6068aa572ac7c9cdfcf70fb75406f3ea 100644 (file)
@@ -37,7 +37,7 @@ TRACE_EVENT(thermal_temperature,
        ),
 
        TP_fast_assign(
-               __assign_str(thermal_zone, tz->type);
+               __assign_str(thermal_zone);
                __entry->id = tz->id;
                __entry->temp_prev = tz->last_temperature;
                __entry->temp = tz->temperature;
@@ -60,7 +60,7 @@ TRACE_EVENT(cdev_update,
        ),
 
        TP_fast_assign(
-               __assign_str(type, cdev->type);
+               __assign_str(type);
                __entry->target = target;
        ),
 
@@ -82,7 +82,7 @@ TRACE_EVENT(thermal_zone_trip,
        ),
 
        TP_fast_assign(
-               __assign_str(thermal_zone, tz->type);
+               __assign_str(thermal_zone);
                __entry->id = tz->id;
                __entry->trip = trip;
                __entry->trip_type = trip_type;
@@ -156,7 +156,7 @@ TRACE_EVENT(thermal_power_devfreq_get_power,
        ),
 
        TP_fast_assign(
-               __assign_str(type, cdev->type);
+               __assign_str(type);
                __entry->freq = freq;
                __entry->busy_time = status->busy_time;
                __entry->total_time = status->total_time;
@@ -184,7 +184,7 @@ TRACE_EVENT(thermal_power_devfreq_limit,
        ),
 
        TP_fast_assign(
-               __assign_str(type, cdev->type);
+               __assign_str(type);
                __entry->freq = freq;
                __entry->cdev_state = cdev_state;
                __entry->power = power;
index 40db89e3333cc4143778f6c2503fcf1a22b89be9..c4e542f1b9b78acdbbb5209323d3816e9fa99aba 100644 (file)
@@ -33,7 +33,7 @@ TRACE_EVENT(cdns3_halt,
                __field(u8, flush)
        ),
        TP_fast_assign(
-               __assign_str(name, ep_priv->name);
+               __assign_str(name);
                __entry->halt = halt;
                __entry->flush = flush;
        ),
@@ -49,8 +49,8 @@ TRACE_EVENT(cdns3_wa1,
                __string(msg, msg)
        ),
        TP_fast_assign(
-               __assign_str(ep_name, ep_priv->name);
-               __assign_str(msg, msg);
+               __assign_str(ep_name);
+               __assign_str(msg);
        ),
        TP_printk("WA1: %s %s", __get_str(ep_name), __get_str(msg))
 );
@@ -63,8 +63,8 @@ TRACE_EVENT(cdns3_wa2,
                __string(msg, msg)
        ),
        TP_fast_assign(
-               __assign_str(ep_name, ep_priv->name);
-               __assign_str(msg, msg);
+               __assign_str(ep_name);
+               __assign_str(msg);
        ),
        TP_printk("WA2: %s %s", __get_str(ep_name), __get_str(msg))
 );
@@ -77,7 +77,7 @@ DECLARE_EVENT_CLASS(cdns3_log_doorbell,
                __field(u32, ep_trbaddr)
        ),
        TP_fast_assign(
-               __assign_str(name, ep_name);
+               __assign_str(name);
                __entry->ep_trbaddr = ep_trbaddr;
        ),
        TP_printk("%s, ep_trbaddr %08x", __get_str(name),
@@ -125,7 +125,7 @@ DECLARE_EVENT_CLASS(cdns3_log_epx_irq,
                __field(u32, use_streams)
        ),
        TP_fast_assign(
-               __assign_str(ep_name, priv_ep->name);
+               __assign_str(ep_name);
                __entry->ep_sts = readl(&priv_dev->regs->ep_sts);
                __entry->ep_traddr = readl(&priv_dev->regs->ep_traddr);
                __entry->ep_last_sid = priv_ep->last_stream_id;
@@ -214,7 +214,7 @@ DECLARE_EVENT_CLASS(cdns3_log_request,
                __field(unsigned int, stream_id)
        ),
        TP_fast_assign(
-               __assign_str(name, req->priv_ep->name);
+               __assign_str(name);
                __entry->req = req;
                __entry->buf = req->request.buf;
                __entry->actual = req->request.actual;
@@ -294,7 +294,7 @@ DECLARE_EVENT_CLASS(cdns3_stream_split_transfer_len,
                __field(unsigned int, stream_id)
        ),
        TP_fast_assign(
-               __assign_str(name, req->priv_ep->name);
+               __assign_str(name);
                __entry->req = req;
                __entry->actual = req->request.length;
                __entry->length = req->request.actual;
@@ -329,7 +329,7 @@ DECLARE_EVENT_CLASS(cdns3_log_aligned_request,
                __field(u32, aligned_buf_size)
        ),
        TP_fast_assign(
-               __assign_str(name, priv_req->priv_ep->name);
+               __assign_str(name);
                __entry->req = &priv_req->request;
                __entry->buf = priv_req->request.buf;
                __entry->dma = priv_req->request.dma;
@@ -364,7 +364,7 @@ DECLARE_EVENT_CLASS(cdns3_log_map_request,
                __field(dma_addr_t, dma)
        ),
        TP_fast_assign(
-               __assign_str(name, priv_req->priv_ep->name);
+               __assign_str(name);
                __entry->req = &priv_req->request;
                __entry->buf = priv_req->request.buf;
                __entry->dma = priv_req->request.dma;
@@ -395,7 +395,7 @@ DECLARE_EVENT_CLASS(cdns3_log_trb,
                __field(unsigned int, last_stream_id)
        ),
        TP_fast_assign(
-               __assign_str(name, priv_ep->name);
+               __assign_str(name);
                __entry->trb = trb;
                __entry->buffer = le32_to_cpu(trb->buffer);
                __entry->length = le32_to_cpu(trb->length);
@@ -467,7 +467,7 @@ DECLARE_EVENT_CLASS(cdns3_log_ep,
                __field(u8, dequeue)
        ),
        TP_fast_assign(
-               __assign_str(name, priv_ep->name);
+               __assign_str(name);
                __entry->maxpacket = priv_ep->endpoint.maxpacket;
                __entry->maxpacket_limit = priv_ep->endpoint.maxpacket_limit;
                __entry->max_streams = priv_ep->endpoint.max_streams;
index 4b51011eb00b0ff9aedf14ae167c8c2ad4871a21..f2bcf77a5d0acd67015c4b1c3b0140cc24472d49 100644 (file)
@@ -48,7 +48,7 @@ DECLARE_EVENT_CLASS(cdnsp_log_ep,
                __field(u8, drbls_count)
        ),
        TP_fast_assign(
-               __assign_str(name, pep->name);
+               __assign_str(name);
                __entry->state = pep->ep_state;
                __entry->stream_id = stream_id;
                __entry->enabled = pep->ep_state & EP_HAS_STREAMS;
@@ -138,7 +138,7 @@ DECLARE_EVENT_CLASS(cdnsp_log_simple,
                __string(text, msg)
        ),
        TP_fast_assign(
-               __assign_str(text, msg);
+               __assign_str(text);
        ),
        TP_printk("%s", __get_str(text))
 );
@@ -303,7 +303,7 @@ DECLARE_EVENT_CLASS(cdnsp_log_bounce,
                __field(unsigned int, unalign)
        ),
        TP_fast_assign(
-               __assign_str(name, preq->pep->name);
+               __assign_str(name);
                __entry->new_buf_len = new_buf_len;
                __entry->offset = offset;
                __entry->dma = dma;
@@ -470,7 +470,7 @@ DECLARE_EVENT_CLASS(cdnsp_log_request,
 
        ),
        TP_fast_assign(
-               __assign_str(name, req->pep->name);
+               __assign_str(name);
                __entry->request = &req->request;
                __entry->preq = req;
                __entry->buf = req->request.buf;
@@ -674,7 +674,7 @@ DECLARE_EVENT_CLASS(cdnsp_log_td_info,
                __field(dma_addr_t, trb_dma)
        ),
        TP_fast_assign(
-               __assign_str(name, preq->pep->name);
+               __assign_str(name);
                __entry->request = &preq->request;
                __entry->preq = preq;
                __entry->first_trb = preq->td.first_trb;
index ca0e65b48f0ae7ce74b0088185a45bfc318fc05d..1875419cd17fd213abd26e0a5bd4a60a06c9177e 100644 (file)
@@ -31,7 +31,7 @@ TRACE_EVENT(ci_log,
                __vstring(msg, vaf->fmt, vaf->va)
        ),
        TP_fast_assign(
-               __assign_str(name, dev_name(ci->dev));
+               __assign_str(name);
                __assign_vstr(msg, vaf->fmt, vaf->va);
        ),
        TP_printk("%s: %s", __get_str(name), __get_str(msg))
@@ -51,7 +51,7 @@ DECLARE_EVENT_CLASS(ci_log_trb,
                __field(u32, type)
        ),
        TP_fast_assign(
-               __assign_str(name, hwep->name);
+               __assign_str(name);
                __entry->req = &hwreq->req;
                __entry->td = td;
                __entry->dma = td->dma;
index d2997d17cfbe0bca96ac06b5d92e3234a1608d75..bdeb1aaf65d83cd07e1a10f545cd4c0a39f7e85e 100644 (file)
@@ -112,7 +112,7 @@ DECLARE_EVENT_CLASS(dwc3_log_request,
                __field(int, no_interrupt)
        ),
        TP_fast_assign(
-               __assign_str(name, req->dep->name);
+               __assign_str(name);
                __entry->req = req;
                __entry->actual = req->request.actual;
                __entry->length = req->request.length;
@@ -193,7 +193,7 @@ DECLARE_EVENT_CLASS(dwc3_log_gadget_ep_cmd,
                __field(int, cmd_status)
        ),
        TP_fast_assign(
-               __assign_str(name, dep->name);
+               __assign_str(name);
                __entry->cmd = cmd;
                __entry->param0 = params->param0;
                __entry->param1 = params->param1;
@@ -229,7 +229,7 @@ DECLARE_EVENT_CLASS(dwc3_log_trb,
                __field(u32, dequeue)
        ),
        TP_fast_assign(
-               __assign_str(name, dep->name);
+               __assign_str(name);
                __entry->trb = trb;
                __entry->bpl = trb->bpl;
                __entry->bph = trb->bph;
@@ -301,7 +301,7 @@ DECLARE_EVENT_CLASS(dwc3_log_ep,
                __field(u8, trb_dequeue)
        ),
        TP_fast_assign(
-               __assign_str(name, dep->name);
+               __assign_str(name);
                __entry->maxpacket = dep->endpoint.maxpacket;
                __entry->maxpacket_limit = dep->endpoint.maxpacket_limit;
                __entry->max_streams = dep->endpoint.max_streams;
index 61f241634ea56109be5730143c9835d38da7c8e9..ade1752956b10a7141aca931fbcb9103fe66f1d0 100644 (file)
@@ -64,7 +64,7 @@ DECLARE_EVENT_CLASS(cdns2_log_simple,
                __string(text, msg)
        ),
        TP_fast_assign(
-               __assign_str(text, msg);
+               __assign_str(text);
        ),
        TP_printk("%s", __get_str(text))
 );
@@ -103,7 +103,7 @@ TRACE_EVENT(cdns2_ep_halt,
                __field(u8, flush)
        ),
        TP_fast_assign(
-               __assign_str(name, ep_priv->name);
+               __assign_str(name);
                __entry->halt = halt;
                __entry->flush = flush;
        ),
@@ -119,8 +119,8 @@ TRACE_EVENT(cdns2_wa1,
                __string(msg, msg)
        ),
        TP_fast_assign(
-               __assign_str(ep_name, ep_priv->name);
-               __assign_str(msg, msg);
+               __assign_str(ep_name);
+               __assign_str(msg);
        ),
        TP_printk("WA1: %s %s", __get_str(ep_name), __get_str(msg))
 );
@@ -134,7 +134,7 @@ DECLARE_EVENT_CLASS(cdns2_log_doorbell,
                __field(u32, ep_trbaddr)
        ),
        TP_fast_assign(
-               __assign_str(name, pep->name);
+               __assign_str(name);
                __entry->ep_trbaddr = ep_trbaddr;
        ),
        TP_printk("%s, ep_trbaddr %08x", __get_str(name),
@@ -196,7 +196,7 @@ DECLARE_EVENT_CLASS(cdns2_log_epx_irq,
                __field(u32, ep_traddr)
        ),
        TP_fast_assign(
-               __assign_str(ep_name, pep->name);
+               __assign_str(ep_name);
                __entry->ep_sts = readl(&pdev->adma_regs->ep_sts);
                __entry->ep_ists = readl(&pdev->adma_regs->ep_ists);
                __entry->ep_traddr = readl(&pdev->adma_regs->ep_traddr);
@@ -288,7 +288,7 @@ DECLARE_EVENT_CLASS(cdns2_log_request,
                __field(int, end_trb)
        ),
        TP_fast_assign(
-               __assign_str(name, preq->pep->name);
+               __assign_str(name);
                __entry->request = &preq->request;
                __entry->preq = preq;
                __entry->buf = preq->request.buf;
@@ -380,7 +380,7 @@ DECLARE_EVENT_CLASS(cdns2_log_map_request,
                __field(dma_addr_t, dma)
        ),
        TP_fast_assign(
-               __assign_str(name, priv_req->pep->name);
+               __assign_str(name);
                __entry->req = &priv_req->request;
                __entry->buf = priv_req->request.buf;
                __entry->dma = priv_req->request.dma;
@@ -411,7 +411,7 @@ DECLARE_EVENT_CLASS(cdns2_log_trb,
                __field(u32, type)
        ),
        TP_fast_assign(
-               __assign_str(name, pep->name);
+               __assign_str(name);
                __entry->trb = trb;
                __entry->buffer = le32_to_cpu(trb->buffer);
                __entry->length = le32_to_cpu(trb->length);
@@ -476,7 +476,7 @@ DECLARE_EVENT_CLASS(cdns2_log_ep,
                __field(u8, dequeue)
        ),
        TP_fast_assign(
-               __assign_str(name, pep->name);
+               __assign_str(name);
                __entry->maxpacket = pep->endpoint.maxpacket;
                __entry->maxpacket_limit = pep->endpoint.maxpacket_limit;
                __entry->flags = pep->ep_state;
@@ -568,7 +568,7 @@ DECLARE_EVENT_CLASS(cdns2_log_epx_reg_config,
                __field(u32, ep_cfg_reg)
        ),
        TP_fast_assign(
-               __assign_str(ep_name, pep->name);
+               __assign_str(ep_name);
                __entry->burst_size = pep->trb_burst_size;
                __entry->maxpack_reg = pep->dir ? readw(&pdev->epx_regs->txmaxpack[pep->num - 1]) :
                                                  readw(&pdev->epx_regs->rxmaxpack[pep->num - 1]);
index a5ed26fbc2dad698c896e817fb8266bbaa6d29a9..4e334298b0e8a75a925093b00875aa78708551eb 100644 (file)
@@ -157,7 +157,7 @@ DECLARE_EVENT_CLASS(udc_log_ep,
                __field(int, ret)
        ),
        TP_fast_assign(
-               __assign_str(name, ep->name);
+               __assign_str(name);
                __entry->maxpacket = ep->maxpacket;
                __entry->maxpacket_limit = ep->maxpacket_limit;
                __entry->max_streams = ep->max_streams;
@@ -233,7 +233,7 @@ DECLARE_EVENT_CLASS(udc_log_req,
                __field(struct usb_request *, req)
        ),
        TP_fast_assign(
-               __assign_str(name, ep->name);
+               __assign_str(name);
                __entry->length = req->length;
                __entry->actual = req->actual;
                __entry->num_sgs = req->num_sgs;
index 03d2a9bac27ee7ad91ccd80470e54bc921ee924e..89870175d6356108e47435d964d6e10447f86ae5 100644 (file)
@@ -26,7 +26,7 @@ TRACE_EVENT(mtu3_log,
                __vstring(msg, vaf->fmt, vaf->va)
        ),
        TP_fast_assign(
-               __assign_str(name, dev_name(dev));
+               __assign_str(name);
                __assign_vstr(msg, vaf->fmt, vaf->va);
        ),
        TP_printk("%s: %s", __get_str(name), __get_str(msg))
@@ -127,7 +127,7 @@ DECLARE_EVENT_CLASS(mtu3_log_request,
                __field(int, no_interrupt)
        ),
        TP_fast_assign(
-               __assign_str(name, mreq->mep->name);
+               __assign_str(name);
                __entry->mreq = mreq;
                __entry->gpd = mreq->gpd;
                __entry->actual = mreq->request.actual;
@@ -182,7 +182,7 @@ DECLARE_EVENT_CLASS(mtu3_log_gpd,
                __field(u32, dw3)
        ),
        TP_fast_assign(
-               __assign_str(name, mep->name);
+               __assign_str(name);
                __entry->gpd = gpd;
                __entry->dw0 = le32_to_cpu(gpd->dw0_info);
                __entry->dw1 = le32_to_cpu(gpd->next_gpd);
@@ -226,7 +226,7 @@ DECLARE_EVENT_CLASS(mtu3_log_ep,
                __field(struct mtu3_gpd_ring *, gpd_ring)
        ),
        TP_fast_assign(
-               __assign_str(name, mep->name);
+               __assign_str(name);
                __entry->type = mep->type;
                __entry->slot = mep->slot;
                __entry->maxp = mep->ep.maxpacket;
index f246b14394c4a5c287717909d9ead5f4d5a13322..726e6697d475de02265dce8a2a2e1f9fc5b7bca4 100644 (file)
@@ -31,7 +31,7 @@ TRACE_EVENT(musb_log,
                __vstring(msg, vaf->fmt, vaf->va)
        ),
        TP_fast_assign(
-               __assign_str(name, dev_name(musb->controller));
+               __assign_str(name);
                __assign_vstr(msg, vaf->fmt, vaf->va);
        ),
        TP_printk("%s: %s", __get_str(name), __get_str(msg))
@@ -46,9 +46,9 @@ TRACE_EVENT(musb_state,
                __string(desc, desc)
        ),
        TP_fast_assign(
-               __assign_str(name, dev_name(musb->controller));
+               __assign_str(name);
                __entry->devctl = devctl;
-               __assign_str(desc, desc);
+               __assign_str(desc);
        ),
        TP_printk("%s: devctl: %02x %s", __get_str(name), __entry->devctl,
                  __get_str(desc))
@@ -160,7 +160,7 @@ TRACE_EVENT(musb_isr,
                __field(u16, int_rx)
        ),
        TP_fast_assign(
-               __assign_str(name, dev_name(musb->controller));
+               __assign_str(name);
                __entry->int_usb = musb->int_usb;
                __entry->int_tx = musb->int_tx;
                __entry->int_rx = musb->int_rx;
@@ -184,7 +184,7 @@ DECLARE_EVENT_CLASS(musb_urb,
                __field(u32, actual_len)
        ),
        TP_fast_assign(
-               __assign_str(name, dev_name(musb->controller));
+               __assign_str(name);
                __entry->urb = urb;
                __entry->pipe = urb->pipe;
                __entry->status = urb->status;
@@ -325,7 +325,7 @@ DECLARE_EVENT_CLASS(musb_cppi41,
        ),
        TP_fast_assign(
                __entry->ch = ch;
-               __assign_str(name, dev_name(ch->hw_ep->musb->controller));
+               __assign_str(name);
                __entry->hwep = ch->hw_ep->epnum;
                __entry->port = ch->port_num;
                __entry->is_tx = ch->is_tx;
index 362e1fc7ef6a4f9436b1138d115337610341cc8e..84fcf26e306e63cdf94be691a916f0466b81d476 100644 (file)
@@ -43,7 +43,7 @@ DECLARE_EVENT_CLASS(fs_str,
 
        TP_fast_assign(
                __entry->dev            = c->dev;
-               __assign_str(str, str);
+               __assign_str(str);
        ),
 
        TP_printk("%d,%d\n%s", MAJOR(__entry->dev), MINOR(__entry->dev), __get_str(str))
@@ -64,7 +64,7 @@ DECLARE_EVENT_CLASS(trans_str,
                __entry->dev            = trans->c->dev;
                strscpy(__entry->trans_fn, trans->fn, sizeof(__entry->trans_fn));
                __entry->caller_ip              = caller_ip;
-               __assign_str(str, str);
+               __assign_str(str);
        ),
 
        TP_printk("%d,%d %s %pS %s",
@@ -85,7 +85,7 @@ DECLARE_EVENT_CLASS(trans_str_nocaller,
        TP_fast_assign(
                __entry->dev            = trans->c->dev;
                strscpy(__entry->trans_fn, trans->fn, sizeof(__entry->trans_fn));
-               __assign_str(str, str);
+               __assign_str(str);
        ),
 
        TP_printk("%d,%d %s %s",
index 10985a4b8259dd543d4b499dde282f15ce7afaab..4de8780a7c486f038fc9736e6b04702bf8f74aad 100644 (file)
@@ -47,7 +47,7 @@ DECLARE_EVENT_CLASS(nfs4_clientid_event,
 
                TP_fast_assign(
                        __entry->error = error < 0 ? -error : 0;
-                       __assign_str(dstaddr, clp->cl_hostname);
+                       __assign_str(dstaddr);
                ),
 
                TP_printk(
@@ -94,8 +94,8 @@ TRACE_EVENT(nfs4_trunked_exchange_id,
 
                TP_fast_assign(
                        __entry->error = error < 0 ? -error : 0;
-                       __assign_str(main_addr, clp->cl_hostname);
-                       __assign_str(trunk_addr, addr);
+                       __assign_str(main_addr);
+                       __assign_str(trunk_addr);
                ),
 
                TP_printk(
@@ -365,7 +365,7 @@ TRACE_EVENT(nfs4_state_mgr,
 
                TP_fast_assign(
                        __entry->state = clp->cl_state;
-                       __assign_str(hostname, clp->cl_hostname);
+                       __assign_str(hostname);
                ),
 
                TP_printk(
@@ -393,8 +393,8 @@ TRACE_EVENT(nfs4_state_mgr_failed,
                TP_fast_assign(
                        __entry->error = status < 0 ? -status : 0;
                        __entry->state = clp->cl_state;
-                       __assign_str(hostname, clp->cl_hostname);
-                       __assign_str(section, section);
+                       __assign_str(hostname);
+                       __assign_str(section);
                ),
 
                TP_printk(
@@ -578,7 +578,7 @@ DECLARE_EVENT_CLASS(nfs4_open_event,
                                __entry->fhandle = 0;
                        }
                        __entry->dir = NFS_FILEID(d_inode(ctx->dentry->d_parent));
-                       __assign_str(name, ctx->dentry->d_name.name);
+                       __assign_str(name);
                ),
 
                TP_printk(
@@ -1072,7 +1072,7 @@ DECLARE_EVENT_CLASS(nfs4_lookup_event,
                        __entry->dev = dir->i_sb->s_dev;
                        __entry->dir = NFS_FILEID(dir);
                        __entry->error = -error;
-                       __assign_str(name, name->name);
+                       __assign_str(name);
                ),
 
                TP_printk(
@@ -1156,8 +1156,8 @@ TRACE_EVENT(nfs4_rename,
                        __entry->olddir = NFS_FILEID(olddir);
                        __entry->newdir = NFS_FILEID(newdir);
                        __entry->error = error < 0 ? -error : 0;
-                       __assign_str(oldname, oldname->name);
-                       __assign_str(newname, newname->name);
+                       __assign_str(oldname);
+                       __assign_str(newname);
                ),
 
                TP_printk(
@@ -1359,7 +1359,7 @@ DECLARE_EVENT_CLASS(nfs4_inode_callback_event,
                                __entry->fileid = 0;
                                __entry->dev = 0;
                        }
-                       __assign_str(dstaddr, clp ? clp->cl_hostname : "unknown");
+                       __assign_str(dstaddr);
                ),
 
                TP_printk(
@@ -1416,7 +1416,7 @@ DECLARE_EVENT_CLASS(nfs4_inode_stateid_callback_event,
                                __entry->fileid = 0;
                                __entry->dev = 0;
                        }
-                       __assign_str(dstaddr, clp ? clp->cl_hostname : "unknown");
+                       __assign_str(dstaddr);
                        __entry->stateid_seq =
                                be32_to_cpu(stateid->seqid);
                        __entry->stateid_hash =
@@ -1960,7 +1960,7 @@ DECLARE_EVENT_CLASS(nfs4_deviceid_event,
                ),
 
                TP_fast_assign(
-                       __assign_str(dstaddr, clp->cl_hostname);
+                       __assign_str(dstaddr);
                        memcpy(__entry->deviceid, deviceid->data,
                               NFS4_DEVICEID4_SIZE);
                ),
@@ -1998,7 +1998,7 @@ DECLARE_EVENT_CLASS(nfs4_deviceid_status,
                TP_fast_assign(
                        __entry->dev = server->s_dev;
                        __entry->status = status;
-                       __assign_str(dstaddr, server->nfs_client->cl_hostname);
+                       __assign_str(dstaddr);
                        memcpy(__entry->deviceid, deviceid->data,
                               NFS4_DEVICEID4_SIZE);
                ),
@@ -2036,8 +2036,8 @@ TRACE_EVENT(fl_getdevinfo,
                ),
 
                TP_fast_assign(
-                       __assign_str(mds_addr, server->nfs_client->cl_hostname);
-                       __assign_str(ds_ips, ds_remotestr);
+                       __assign_str(mds_addr);
+                       __assign_str(ds_ips);
                        memcpy(__entry->deviceid, deviceid->data,
                               NFS4_DEVICEID4_SIZE);
                ),
@@ -2083,9 +2083,7 @@ DECLARE_EVENT_CLASS(nfs4_flexfiles_io_event,
                                be32_to_cpu(hdr->args.stateid.seqid);
                        __entry->stateid_hash =
                                nfs_stateid_hash(&hdr->args.stateid);
-                       __assign_str(dstaddr, hdr->ds_clp ?
-                               rpc_peeraddr2str(hdr->ds_clp->cl_rpcclient,
-                                       RPC_DISPLAY_ADDR) : "unknown");
+                       __assign_str(dstaddr);
                ),
 
                TP_printk(
@@ -2139,9 +2137,7 @@ TRACE_EVENT(ff_layout_commit_error,
                        __entry->dev = inode->i_sb->s_dev;
                        __entry->offset = data->args.offset;
                        __entry->count = data->args.count;
-                       __assign_str(dstaddr, data->ds_clp ?
-                               rpc_peeraddr2str(data->ds_clp->cl_rpcclient,
-                                       RPC_DISPLAY_ADDR) : "unknown");
+                       __assign_str(dstaddr);
                ),
 
                TP_printk(
@@ -2579,7 +2575,7 @@ DECLARE_EVENT_CLASS(nfs4_xattr_event,
                        __entry->dev = inode->i_sb->s_dev;
                        __entry->fileid = NFS_FILEID(inode);
                        __entry->fhandle = nfs_fhandle_hash(NFS_FH(inode));
-                       __assign_str(name, name);
+                       __assign_str(name);
                ),
 
                TP_printk(
index afedb449b54fd31a350944dd13b53107b2d4fc03..1e710654af1173ae7e7f223cd20794725dde93a6 100644 (file)
@@ -409,7 +409,7 @@ DECLARE_EVENT_CLASS(nfs_lookup_event,
                        __entry->dir = NFS_FILEID(dir);
                        __entry->flags = flags;
                        __entry->fileid = d_is_negative(dentry) ? 0 : NFS_FILEID(d_inode(dentry));
-                       __assign_str(name, dentry->d_name.name);
+                       __assign_str(name);
                ),
 
                TP_printk(
@@ -457,7 +457,7 @@ DECLARE_EVENT_CLASS(nfs_lookup_event_done,
                        __entry->error = error < 0 ? -error : 0;
                        __entry->flags = flags;
                        __entry->fileid = d_is_negative(dentry) ? 0 : NFS_FILEID(d_inode(dentry));
-                       __assign_str(name, dentry->d_name.name);
+                       __assign_str(name);
                ),
 
                TP_printk(
@@ -512,7 +512,7 @@ TRACE_EVENT(nfs_atomic_open_enter,
                        __entry->dir = NFS_FILEID(dir);
                        __entry->flags = flags;
                        __entry->fmode = (__force unsigned long)ctx->mode;
-                       __assign_str(name, ctx->dentry->d_name.name);
+                       __assign_str(name);
                ),
 
                TP_printk(
@@ -551,7 +551,7 @@ TRACE_EVENT(nfs_atomic_open_exit,
                        __entry->dir = NFS_FILEID(dir);
                        __entry->flags = flags;
                        __entry->fmode = (__force unsigned long)ctx->mode;
-                       __assign_str(name, ctx->dentry->d_name.name);
+                       __assign_str(name);
                ),
 
                TP_printk(
@@ -587,7 +587,7 @@ TRACE_EVENT(nfs_create_enter,
                        __entry->dev = dir->i_sb->s_dev;
                        __entry->dir = NFS_FILEID(dir);
                        __entry->flags = flags;
-                       __assign_str(name, dentry->d_name.name);
+                       __assign_str(name);
                ),
 
                TP_printk(
@@ -623,7 +623,7 @@ TRACE_EVENT(nfs_create_exit,
                        __entry->dev = dir->i_sb->s_dev;
                        __entry->dir = NFS_FILEID(dir);
                        __entry->flags = flags;
-                       __assign_str(name, dentry->d_name.name);
+                       __assign_str(name);
                ),
 
                TP_printk(
@@ -654,7 +654,7 @@ DECLARE_EVENT_CLASS(nfs_directory_event,
                TP_fast_assign(
                        __entry->dev = dir->i_sb->s_dev;
                        __entry->dir = NFS_FILEID(dir);
-                       __assign_str(name, dentry->d_name.name);
+                       __assign_str(name);
                ),
 
                TP_printk(
@@ -693,7 +693,7 @@ DECLARE_EVENT_CLASS(nfs_directory_event_done,
                        __entry->dev = dir->i_sb->s_dev;
                        __entry->dir = NFS_FILEID(dir);
                        __entry->error = error < 0 ? -error : 0;
-                       __assign_str(name, dentry->d_name.name);
+                       __assign_str(name);
                ),
 
                TP_printk(
@@ -747,7 +747,7 @@ TRACE_EVENT(nfs_link_enter,
                        __entry->dev = inode->i_sb->s_dev;
                        __entry->fileid = NFS_FILEID(inode);
                        __entry->dir = NFS_FILEID(dir);
-                       __assign_str(name, dentry->d_name.name);
+                       __assign_str(name);
                ),
 
                TP_printk(
@@ -783,7 +783,7 @@ TRACE_EVENT(nfs_link_exit,
                        __entry->fileid = NFS_FILEID(inode);
                        __entry->dir = NFS_FILEID(dir);
                        __entry->error = error < 0 ? -error : 0;
-                       __assign_str(name, dentry->d_name.name);
+                       __assign_str(name);
                ),
 
                TP_printk(
@@ -819,8 +819,8 @@ DECLARE_EVENT_CLASS(nfs_rename_event,
                        __entry->dev = old_dir->i_sb->s_dev;
                        __entry->old_dir = NFS_FILEID(old_dir);
                        __entry->new_dir = NFS_FILEID(new_dir);
-                       __assign_str(old_name, old_dentry->d_name.name);
-                       __assign_str(new_name, new_dentry->d_name.name);
+                       __assign_str(old_name);
+                       __assign_str(new_name);
                ),
 
                TP_printk(
@@ -868,8 +868,8 @@ DECLARE_EVENT_CLASS(nfs_rename_event_done,
                        __entry->error = -error;
                        __entry->old_dir = NFS_FILEID(old_dir);
                        __entry->new_dir = NFS_FILEID(new_dir);
-                       __assign_str(old_name, old_dentry->d_name.name);
-                       __assign_str(new_name, new_dentry->d_name.name);
+                       __assign_str(old_name);
+                       __assign_str(new_name);
                ),
 
                TP_printk(
@@ -1636,8 +1636,8 @@ TRACE_EVENT(nfs_mount_assign,
        ),
 
        TP_fast_assign(
-               __assign_str(option, option);
-               __assign_str(value, value);
+               __assign_str(option);
+               __assign_str(value);
        ),
 
        TP_printk("option %s=%s",
@@ -1657,7 +1657,7 @@ TRACE_EVENT(nfs_mount_option,
        ),
 
        TP_fast_assign(
-               __assign_str(option, param->key);
+               __assign_str(option);
        ),
 
        TP_printk("option %s", __get_str(option))
@@ -1675,7 +1675,7 @@ TRACE_EVENT(nfs_mount_path,
        ),
 
        TP_fast_assign(
-               __assign_str(path, path);
+               __assign_str(path);
        ),
 
        TP_printk("path='%s'", __get_str(path))
@@ -1710,9 +1710,8 @@ DECLARE_EVENT_CLASS(nfs_xdr_event,
                        __entry->xid = be32_to_cpu(rqstp->rq_xid);
                        __entry->version = task->tk_client->cl_vers;
                        __entry->error = error;
-                       __assign_str(program,
-                                    task->tk_client->cl_program->name);
-                       __assign_str(procedure, task->tk_msg.rpc_proc->p_name);
+                       __assign_str(program);
+                       __assign_str(procedure);
                ),
 
                TP_printk(SUNRPC_TRACE_TASK_SPECIFIER
index b5e48d504062dd8fc5e7f2c3cb1184027d72f0c9..77bbd23aa150c79f48365898d139a943c02dbc6e 100644 (file)
@@ -104,7 +104,7 @@ TRACE_EVENT(nfsd_compound,
        TP_fast_assign(
                __entry->xid = be32_to_cpu(rqst->rq_xid);
                __entry->opcnt = opcnt;
-               __assign_str(tag, tag);
+               __assign_str(tag);
        ),
        TP_printk("xid=0x%08x opcnt=%u tag=%s",
                __entry->xid, __entry->opcnt, __get_str(tag)
@@ -127,7 +127,7 @@ TRACE_EVENT(nfsd_compound_status,
                __entry->args_opcnt = args_opcnt;
                __entry->resp_opcnt = resp_opcnt;
                __entry->status = be32_to_cpu(status);
-               __assign_str(name, name);
+               __assign_str(name);
        ),
        TP_printk("op=%u/%u %s status=%d",
                __entry->resp_opcnt, __entry->args_opcnt,
@@ -318,7 +318,7 @@ TRACE_EVENT(nfsd_exp_find_key,
        TP_fast_assign(
                __entry->fsidtype = key->ek_fsidtype;
                memcpy(__entry->fsid, key->ek_fsid, 4*6);
-               __assign_str(auth_domain, key->ek_client->name);
+               __assign_str(auth_domain);
                __entry->status = status;
        ),
        TP_printk("fsid=%x::%s domain=%s status=%d",
@@ -342,8 +342,8 @@ TRACE_EVENT(nfsd_expkey_update,
        TP_fast_assign(
                __entry->fsidtype = key->ek_fsidtype;
                memcpy(__entry->fsid, key->ek_fsid, 4*6);
-               __assign_str(auth_domain, key->ek_client->name);
-               __assign_str(path, exp_path);
+               __assign_str(auth_domain);
+               __assign_str(path);
                __entry->cache = !test_bit(CACHE_NEGATIVE, &key->h.flags);
        ),
        TP_printk("fsid=%x::%s domain=%s path=%s cache=%s",
@@ -365,8 +365,8 @@ TRACE_EVENT(nfsd_exp_get_by_name,
                __field(int, status)
        ),
        TP_fast_assign(
-               __assign_str(path, key->ex_path.dentry->d_name.name);
-               __assign_str(auth_domain, key->ex_client->name);
+               __assign_str(path);
+               __assign_str(auth_domain);
                __entry->status = status;
        ),
        TP_printk("path=%s domain=%s status=%d",
@@ -385,8 +385,8 @@ TRACE_EVENT(nfsd_export_update,
                __field(bool, cache)
        ),
        TP_fast_assign(
-               __assign_str(path, key->ex_path.dentry->d_name.name);
-               __assign_str(auth_domain, key->ex_client->name);
+               __assign_str(path);
+               __assign_str(auth_domain);
                __entry->cache = !test_bit(CACHE_NEGATIVE, &key->h.flags);
        ),
        TP_printk("path=%s domain=%s cache=%s",
@@ -485,7 +485,7 @@ TRACE_EVENT(nfsd_dirent,
        TP_fast_assign(
                __entry->fh_hash = fhp ? knfsd_fh_hash(&fhp->fh_handle) : 0;
                __entry->ino = ino;
-               __assign_str(name, name);
+               __assign_str(name);
        ),
        TP_printk("fh_hash=0x%08x ino=%llu name=%s",
                __entry->fh_hash, __entry->ino, __get_str(name)
@@ -1000,7 +1000,7 @@ DECLARE_EVENT_CLASS(nfsd_clid_class,
                __entry->flavor = clp->cl_cred.cr_flavor;
                memcpy(__entry->verifier, (void *)&clp->cl_verifier,
                       NFS4_VERIFIER_SIZE);
-               __assign_str(name, clp->cl_name.data);
+               __assign_str(name);
        ),
        TP_printk("addr=%pISpc name='%s' verifier=0x%s flavor=%s client=%08x:%08x",
                __entry->addr, __get_str(name),
@@ -1519,7 +1519,7 @@ TRACE_EVENT(nfsd_cb_setup,
        TP_fast_assign(
                __entry->cl_boot = clp->cl_clientid.cl_boot;
                __entry->cl_id = clp->cl_clientid.cl_id;
-               __assign_str(netid, netid);
+               __assign_str(netid);
                __entry->authflavor = authflavor;
                __assign_sockaddr(addr, &clp->cl_cb_conn.cb_addr,
                                  clp->cl_cb_conn.cb_addrlen)
@@ -1864,7 +1864,7 @@ TRACE_EVENT(nfsd_ctl_unlock_ip,
        ),
        TP_fast_assign(
                __entry->netns_ino = net->ns.inum;
-               __assign_str(address, address);
+               __assign_str(address);
        ),
        TP_printk("address=%s",
                __get_str(address)
@@ -1883,7 +1883,7 @@ TRACE_EVENT(nfsd_ctl_unlock_fs,
        ),
        TP_fast_assign(
                __entry->netns_ino = net->ns.inum;
-               __assign_str(path, path);
+               __assign_str(path);
        ),
        TP_printk("path=%s",
                __get_str(path)
@@ -1907,8 +1907,8 @@ TRACE_EVENT(nfsd_ctl_filehandle,
        TP_fast_assign(
                __entry->netns_ino = net->ns.inum;
                __entry->maxsize = maxsize;
-               __assign_str(domain, domain);
-               __assign_str(path, path);
+               __assign_str(domain);
+               __assign_str(path);
        ),
        TP_printk("domain=%s path=%s maxsize=%d",
                __get_str(domain), __get_str(path), __entry->maxsize
@@ -1968,7 +1968,7 @@ TRACE_EVENT(nfsd_ctl_version,
        ),
        TP_fast_assign(
                __entry->netns_ino = net->ns.inum;
-               __assign_str(mesg, mesg);
+               __assign_str(mesg);
        ),
        TP_printk("%s",
                __get_str(mesg)
@@ -2009,7 +2009,7 @@ TRACE_EVENT(nfsd_ctl_ports_addxprt,
        TP_fast_assign(
                __entry->netns_ino = net->ns.inum;
                __entry->port = port;
-               __assign_str(transport, transport);
+               __assign_str(transport);
        ),
        TP_printk("transport=%s port=%d",
                __get_str(transport), __entry->port
@@ -2070,7 +2070,7 @@ TRACE_EVENT(nfsd_ctl_time,
        TP_fast_assign(
                __entry->netns_ino = net->ns.inum;
                __entry->time = time;
-               __assign_str(name, name);
+               __assign_str(name);
        ),
        TP_printk("file=%s time=%d",
                __get_str(name), __entry->time
@@ -2089,7 +2089,7 @@ TRACE_EVENT(nfsd_ctl_recoverydir,
        ),
        TP_fast_assign(
                __entry->netns_ino = net->ns.inum;
-               __assign_str(recdir, recdir);
+               __assign_str(recdir);
        ),
        TP_printk("recdir=%s",
                __get_str(recdir)
index 9898c11bdfa1bb8c08ce82f3b29bddb5e1f50da2..60e208b01c8dc41c3bea9b2b1d3b80c1a13df931 100644 (file)
@@ -82,7 +82,7 @@ DECLARE_EVENT_CLASS(ocfs2__string,
                __string(name,name)
        ),
        TP_fast_assign(
-               __assign_str(name, name);
+               __assign_str(name);
        ),
        TP_printk("%s", __get_str(name))
 );
@@ -1289,7 +1289,7 @@ DECLARE_EVENT_CLASS(ocfs2__file_ops,
                __entry->dentry = dentry;
                __entry->ino = ino;
                __entry->d_len = d_len;
-               __assign_str(d_name, d_name);
+               __assign_str(d_name);
                __entry->para = para;
        ),
        TP_printk("%p %p %p %llu %llu %.*s", __entry->inode, __entry->file,
@@ -1425,7 +1425,7 @@ TRACE_EVENT(ocfs2_setattr,
                __entry->dentry = dentry;
                __entry->ino = ino;
                __entry->d_len = d_len;
-               __assign_str(d_name, d_name);
+               __assign_str(d_name);
                __entry->ia_valid = ia_valid;
                __entry->ia_mode = ia_mode;
                __entry->ia_uid = ia_uid;
@@ -1683,7 +1683,7 @@ TRACE_EVENT(ocfs2_parse_options,
        ),
        TP_fast_assign(
                __entry->is_remount = is_remount;
-               __assign_str(options, options);
+               __assign_str(options);
        ),
        TP_printk("%d %s", __entry->is_remount, __get_str(options))
 );
@@ -1718,8 +1718,8 @@ TRACE_EVENT(ocfs2_initialize_super,
                __field(int, cluster_bits)
        ),
        TP_fast_assign(
-               __assign_str(label, label);
-               __assign_str(uuid_str, uuid_str);
+               __assign_str(label);
+               __assign_str(uuid_str);
                __entry->root_dir = root_dir;
                __entry->system_dir = system_dir;
                __entry->cluster_bits = cluster_bits;
@@ -1746,7 +1746,7 @@ TRACE_EVENT(ocfs2_init_xattr_set_ctxt,
                __field(int, credits)
        ),
        TP_fast_assign(
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->meta = meta;
                __entry->clusters = clusters;
                __entry->credits = credits;
@@ -1770,7 +1770,7 @@ DECLARE_EVENT_CLASS(ocfs2__xattr_find,
        ),
        TP_fast_assign(
                __entry->ino = ino;
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->name_index = name_index;
                __entry->hash = hash;
                __entry->location = location;
@@ -2019,7 +2019,7 @@ TRACE_EVENT(ocfs2_sync_dquot_helper,
                __entry->dq_id = dq_id;
                __entry->dq_type = dq_type;
                __entry->type = type;
-               __assign_str(s_id, s_id);
+               __assign_str(s_id);
        ),
        TP_printk("%u %u %lu %s", __entry->dq_id, __entry->dq_type,
                  __entry->type, __get_str(s_id))
@@ -2060,7 +2060,7 @@ TRACE_EVENT(ocfs2_dx_dir_search,
        TP_fast_assign(
                __entry->ino = ino;
                __entry->namelen = namelen;
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->major_hash = major_hash;
                __entry->minor_hash = minor_hash;
                __entry->blkno = blkno;
@@ -2088,7 +2088,7 @@ TRACE_EVENT(ocfs2_find_files_on_disk,
        ),
        TP_fast_assign(
                __entry->namelen = namelen;
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->blkno = blkno;
                __entry->dir = dir;
        ),
@@ -2107,7 +2107,7 @@ TRACE_EVENT(ocfs2_check_dir_for_entry,
        TP_fast_assign(
                __entry->dir = dir;
                __entry->namelen = namelen;
-               __assign_str(name, name);
+               __assign_str(name);
        ),
        TP_printk("%llu %.*s", __entry->dir,
                  __entry->namelen, __get_str(name))
@@ -2135,7 +2135,7 @@ TRACE_EVENT(ocfs2_dx_dir_index_root_block,
                __entry->major_hash = major_hash;
                __entry->minor_hash = minor_hash;
                __entry->namelen = namelen;
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->num_used = num_used;
        ),
        TP_printk("%llu %x %x %.*s %u", __entry->dir,
@@ -2171,7 +2171,7 @@ DECLARE_EVENT_CLASS(ocfs2__dentry_ops,
                __entry->dir = dir;
                __entry->dentry = dentry;
                __entry->name_len = name_len;
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->dir_blkno = dir_blkno;
                __entry->extra = extra;
        ),
@@ -2217,7 +2217,7 @@ TRACE_EVENT(ocfs2_mknod,
                __entry->dir = dir;
                __entry->dentry = dentry;
                __entry->name_len = name_len;
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->dir_blkno = dir_blkno;
                __entry->dev = dev;
                __entry->mode = mode;
@@ -2241,9 +2241,9 @@ TRACE_EVENT(ocfs2_link,
        TP_fast_assign(
                __entry->ino = ino;
                __entry->old_len = old_len;
-               __assign_str(old_name, old_name);
+               __assign_str(old_name);
                __entry->name_len = name_len;
-               __assign_str(name, name);
+               __assign_str(name);
        ),
        TP_printk("%llu %.*s %.*s", __entry->ino,
                  __entry->old_len, __get_str(old_name),
@@ -2279,9 +2279,9 @@ TRACE_EVENT(ocfs2_rename,
                __entry->new_dir = new_dir;
                __entry->new_dentry = new_dentry;
                __entry->old_len = old_len;
-               __assign_str(old_name, old_name);
+               __assign_str(old_name);
                __entry->new_len = new_len;
-               __assign_str(new_name, new_name);
+               __assign_str(new_name);
        ),
        TP_printk("%p %p %p %p %.*s %.*s",
                  __entry->old_dir, __entry->old_dentry,
@@ -2301,7 +2301,7 @@ TRACE_EVENT(ocfs2_rename_target_exists,
        ),
        TP_fast_assign(
                __entry->new_len = new_len;
-               __assign_str(new_name, new_name);
+               __assign_str(new_name);
        ),
        TP_printk("%.*s", __entry->new_len, __get_str(new_name))
 );
@@ -2344,7 +2344,7 @@ TRACE_EVENT(ocfs2_symlink_begin,
                __entry->dentry = dentry;
                __entry->symname = symname;
                __entry->len = len;
-               __assign_str(name, name);
+               __assign_str(name);
        ),
        TP_printk("%p %p %s %.*s", __entry->dir, __entry->dentry,
                  __entry->symname, __entry->len, __get_str(name))
@@ -2360,7 +2360,7 @@ TRACE_EVENT(ocfs2_blkno_stringify,
        ),
        TP_fast_assign(
                __entry->blkno = blkno;
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->namelen = namelen;
        ),
        TP_printk("%llu %s %d", __entry->blkno, __get_str(name),
@@ -2381,7 +2381,7 @@ TRACE_EVENT(ocfs2_orphan_del,
        ),
        TP_fast_assign(
                __entry->dir = dir;
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->namelen = namelen;
        ),
        TP_printk("%llu %s %d", __entry->dir, __get_str(name),
@@ -2403,7 +2403,7 @@ TRACE_EVENT(ocfs2_dentry_revalidate,
        TP_fast_assign(
                __entry->dentry = dentry;
                __entry->len = len;
-               __assign_str(name, name);
+               __assign_str(name);
        ),
        TP_printk("%p %.*s", __entry->dentry, __entry->len, __get_str(name))
 );
@@ -2420,7 +2420,7 @@ TRACE_EVENT(ocfs2_dentry_revalidate_negative,
        ),
        TP_fast_assign(
                __entry->len = len;
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->pgen = pgen;
                __entry->gen = gen;
        ),
@@ -2445,7 +2445,7 @@ TRACE_EVENT(ocfs2_find_local_alias,
        ),
        TP_fast_assign(
                __entry->len = len;
-               __assign_str(name, name);
+               __assign_str(name);
        ),
        TP_printk("%.*s", __entry->len, __get_str(name))
 );
@@ -2462,7 +2462,7 @@ TRACE_EVENT(ocfs2_dentry_attach_lock,
        ),
        TP_fast_assign(
                __entry->len = len;
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->parent = parent;
                __entry->fsdata = fsdata;
        ),
@@ -2480,7 +2480,7 @@ TRACE_EVENT(ocfs2_dentry_attach_lock_found,
                __field(unsigned long long, ino)
        ),
        TP_fast_assign(
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->parent = parent;
                __entry->ino = ino;
        ),
@@ -2527,7 +2527,7 @@ TRACE_EVENT(ocfs2_get_parent,
        TP_fast_assign(
                __entry->child = child;
                __entry->len = len;
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->ino = ino;
        ),
        TP_printk("%p %.*s %llu", __entry->child, __entry->len,
@@ -2551,7 +2551,7 @@ TRACE_EVENT(ocfs2_encode_fh_begin,
        TP_fast_assign(
                __entry->dentry = dentry;
                __entry->name_len = name_len;
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->fh = fh;
                __entry->len = len;
                __entry->connectable = connectable;
index af97389e983e0651df680b504c41bcadeff7cb58..36d47ce596317005dc0a5c430490157c34abee25 100644 (file)
@@ -518,7 +518,7 @@ DECLARE_EVENT_CLASS(smb3_inf_compound_enter_class,
                __entry->xid = xid;
                __entry->tid = tid;
                __entry->sesid = sesid;
-               __assign_str(path, full_path);
+               __assign_str(path);
        ),
        TP_printk("xid=%u sid=0x%llx tid=0x%x path=%s",
                __entry->xid, __entry->sesid, __entry->tid,
@@ -762,7 +762,7 @@ DECLARE_EVENT_CLASS(smb3_exit_err_class,
        ),
        TP_fast_assign(
                __entry->xid = xid;
-               __assign_str(func_name, func_name);
+               __assign_str(func_name);
                __entry->rc = rc;
        ),
        TP_printk("\t%s: xid=%u rc=%d",
@@ -815,7 +815,7 @@ DECLARE_EVENT_CLASS(smb3_enter_exit_class,
        ),
        TP_fast_assign(
                __entry->xid = xid;
-               __assign_str(func_name, func_name);
+               __assign_str(func_name);
        ),
        TP_printk("\t%s: xid=%u",
                __get_str(func_name), __entry->xid)
@@ -852,7 +852,7 @@ DECLARE_EVENT_CLASS(smb3_tcon_class,
                __entry->xid = xid;
                __entry->tid = tid;
                __entry->sesid = sesid;
-               __assign_str(name, unc_name);
+               __assign_str(name);
                __entry->rc = rc;
        ),
        TP_printk("xid=%u sid=0x%llx tid=0x%x unc_name=%s rc=%d",
@@ -896,7 +896,7 @@ DECLARE_EVENT_CLASS(smb3_open_enter_class,
                __entry->xid = xid;
                __entry->tid = tid;
                __entry->sesid = sesid;
-               __assign_str(path, full_path);
+               __assign_str(path);
                __entry->create_options = create_options;
                __entry->desired_access = desired_access;
        ),
@@ -1098,7 +1098,7 @@ DECLARE_EVENT_CLASS(smb3_connect_class,
                __entry->conn_id = conn_id;
                pss = (struct sockaddr_storage *)__entry->dst_addr;
                *pss = *dst_addr;
-               __assign_str(hostname, hostname);
+               __assign_str(hostname);
        ),
        TP_printk("conn_id=0x%llx server=%s addr=%pISpsfc",
                __entry->conn_id,
@@ -1134,7 +1134,7 @@ DECLARE_EVENT_CLASS(smb3_connect_err_class,
                __entry->rc = rc;
                pss = (struct sockaddr_storage *)__entry->dst_addr;
                *pss = *dst_addr;
-               __assign_str(hostname, hostname);
+               __assign_str(hostname);
        ),
        TP_printk("rc=%d conn_id=0x%llx server=%s addr=%pISpsfc",
                __entry->rc,
@@ -1166,7 +1166,7 @@ DECLARE_EVENT_CLASS(smb3_reconnect_class,
        TP_fast_assign(
                __entry->currmid = currmid;
                __entry->conn_id = conn_id;
-               __assign_str(hostname, hostname);
+               __assign_str(hostname);
        ),
        TP_printk("conn_id=0x%llx server=%s current_mid=%llu",
                __entry->conn_id,
@@ -1255,7 +1255,7 @@ DECLARE_EVENT_CLASS(smb3_credit_class,
        TP_fast_assign(
                __entry->currmid = currmid;
                __entry->conn_id = conn_id;
-               __assign_str(hostname, hostname);
+               __assign_str(hostname);
                __entry->credits = credits;
                __entry->credits_to_add = credits_to_add;
                __entry->in_flight = in_flight;
index e27daa51cab646414c13700b81c0bbc927fbc1aa..92ef4cdc486e901ab786bc538faf061c350270d5 100644 (file)
@@ -561,7 +561,7 @@ TRACE_EVENT(xchk_btree_op_error,
 
                __entry->dev = sc->mp->m_super->s_dev;
                __entry->type = sc->sm->sm_type;
-               __assign_str(name, cur->bc_ops->name);
+               __assign_str(name);
                __entry->level = level;
                __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno);
                __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno);
@@ -604,7 +604,7 @@ TRACE_EVENT(xchk_ifork_btree_op_error,
                __entry->ino = sc->ip->i_ino;
                __entry->whichfork = cur->bc_ino.whichfork;
                __entry->type = sc->sm->sm_type;
-               __assign_str(name, cur->bc_ops->name);
+               __assign_str(name);
                __entry->level = level;
                __entry->ptr = cur->bc_levels[level].ptr;
                __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno);
@@ -644,7 +644,7 @@ TRACE_EVENT(xchk_btree_error,
                xfs_fsblock_t fsbno = xchk_btree_cur_fsbno(cur, level);
                __entry->dev = sc->mp->m_super->s_dev;
                __entry->type = sc->sm->sm_type;
-               __assign_str(name, cur->bc_ops->name);
+               __assign_str(name);
                __entry->level = level;
                __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno);
                __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno);
@@ -684,7 +684,7 @@ TRACE_EVENT(xchk_ifork_btree_error,
                __entry->ino = sc->ip->i_ino;
                __entry->whichfork = cur->bc_ino.whichfork;
                __entry->type = sc->sm->sm_type;
-               __assign_str(name, cur->bc_ops->name);
+               __assign_str(name);
                __entry->level = level;
                __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno);
                __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno);
@@ -723,7 +723,7 @@ DECLARE_EVENT_CLASS(xchk_sbtree_class,
 
                __entry->dev = sc->mp->m_super->s_dev;
                __entry->type = sc->sm->sm_type;
-               __assign_str(name, cur->bc_ops->name);
+               __assign_str(name);
                __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno);
                __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno);
                __entry->level = level;
index 05cb59bd0b80ef9b39f02b42878b47755add1a2b..25ff6fe1eb6c8aa0a5450e2fa94700b444fda708 100644 (file)
@@ -168,7 +168,7 @@ TRACE_EVENT(xlog_intent_recovery_failed,
        ),
        TP_fast_assign(
                __entry->dev = mp->m_super->s_dev;
-               __assign_str(name, ops->name);
+               __assign_str(name);
                __entry->error = error;
        ),
        TP_printk("dev %d:%d optype %s error %d",
@@ -1913,7 +1913,7 @@ TRACE_EVENT(xfs_alloc_cur_check,
        ),
        TP_fast_assign(
                __entry->dev = cur->bc_mp->m_super->s_dev;
-               __assign_str(name, cur->bc_ops->name);
+               __assign_str(name);
                __entry->bno = bno;
                __entry->len = len;
                __entry->diff = diff;
@@ -2473,7 +2473,7 @@ DECLARE_EVENT_CLASS(xfs_btree_cur_class,
        ),
        TP_fast_assign(
                __entry->dev = cur->bc_mp->m_super->s_dev;
-               __assign_str(name, cur->bc_ops->name);
+               __assign_str(name);
                __entry->level = level;
                __entry->nlevels = cur->bc_nlevels;
                __entry->ptr = cur->bc_levels[level].ptr;
@@ -2523,7 +2523,7 @@ TRACE_EVENT(xfs_btree_alloc_block,
                        __entry->ino = 0;
                        break;
                }
-               __assign_str(name, cur->bc_ops->name);
+               __assign_str(name);
                __entry->error = error;
                if (!error && stat) {
                        if (cur->bc_ops->ptr_len == XFS_BTREE_LONG_PTR_LEN) {
@@ -2567,7 +2567,7 @@ TRACE_EVENT(xfs_btree_free_block,
                        __entry->ino = cur->bc_ino.ip->i_ino;
                else
                        __entry->ino = 0;
-               __assign_str(name, cur->bc_ops->name);
+               __assign_str(name);
                __entry->agbno = xfs_daddr_to_agbno(cur->bc_mp,
                                                        xfs_buf_daddr(bp));
        ),
@@ -2643,7 +2643,7 @@ DECLARE_EVENT_CLASS(xfs_defer_pending_class,
        ),
        TP_fast_assign(
                __entry->dev = mp ? mp->m_super->s_dev : 0;
-               __assign_str(name, dfp->dfp_ops->name);
+               __assign_str(name);
                __entry->intent = dfp->dfp_intent;
                __entry->flags = dfp->dfp_flags;
                __entry->committed = dfp->dfp_done != NULL;
@@ -2732,7 +2732,7 @@ DECLARE_EVENT_CLASS(xfs_defer_pending_item_class,
        ),
        TP_fast_assign(
                __entry->dev = mp ? mp->m_super->s_dev : 0;
-               __assign_str(name, dfp->dfp_ops->name);
+               __assign_str(name);
                __entry->intent = dfp->dfp_intent;
                __entry->item = item;
                __entry->committed = dfp->dfp_done != NULL;
@@ -4244,7 +4244,7 @@ TRACE_EVENT(xfs_btree_commit_afakeroot,
        ),
        TP_fast_assign(
                __entry->dev = cur->bc_mp->m_super->s_dev;
-               __assign_str(name, cur->bc_ops->name);
+               __assign_str(name);
                __entry->agno = cur->bc_ag.pag->pag_agno;
                __entry->agbno = cur->bc_ag.afake->af_root;
                __entry->levels = cur->bc_ag.afake->af_levels;
@@ -4273,7 +4273,7 @@ TRACE_EVENT(xfs_btree_commit_ifakeroot,
        ),
        TP_fast_assign(
                __entry->dev = cur->bc_mp->m_super->s_dev;
-               __assign_str(name, cur->bc_ops->name);
+               __assign_str(name);
                __entry->agno = XFS_INO_TO_AGNO(cur->bc_mp,
                                        cur->bc_ino.ip->i_ino);
                __entry->agino = XFS_INO_TO_AGINO(cur->bc_mp,
@@ -4312,7 +4312,7 @@ TRACE_EVENT(xfs_btree_bload_level_geometry,
        ),
        TP_fast_assign(
                __entry->dev = cur->bc_mp->m_super->s_dev;
-               __assign_str(name, cur->bc_ops->name);
+               __assign_str(name);
                __entry->level = level;
                __entry->nlevels = cur->bc_nlevels;
                __entry->nr_this_level = nr_this_level;
@@ -4350,7 +4350,7 @@ TRACE_EVENT(xfs_btree_bload_block,
        ),
        TP_fast_assign(
                __entry->dev = cur->bc_mp->m_super->s_dev;
-               __assign_str(name, cur->bc_ops->name);
+               __assign_str(name);
                __entry->level = level;
                __entry->block_idx = block_idx;
                __entry->nr_blocks = nr_blocks;
@@ -4573,7 +4573,7 @@ TRACE_EVENT(xfs_force_shutdown,
                __entry->dev = mp->m_super->s_dev;
                __entry->ptag = ptag;
                __entry->flags = flags;
-               __assign_str(fname, fname);
+               __assign_str(fname);
                __entry->line_num = line_num;
        ),
        TP_printk("dev %d:%d tag %s flags %s file %s line_num %d",
@@ -4755,7 +4755,7 @@ DECLARE_EVENT_CLASS(xfbtree_freesp_class,
        ),
        TP_fast_assign(
                __entry->xfino = file_inode(xfbt->target->bt_file)->i_ino;
-               __assign_str(btname, cur->bc_ops->name);
+               __assign_str(btname);
                __entry->nlevels = cur->bc_nlevels;
                __entry->fileoff = fileoff;
        ),
@@ -5122,7 +5122,7 @@ DECLARE_EVENT_CLASS(xfs_getparents_rec_class,
                __entry->bufsize = ppi->gp_bufsize;
                __entry->parent_ino = pptr->gpr_parent.ha_fid.fid_ino;
                __entry->parent_gen = pptr->gpr_parent.ha_fid.fid_gen;
-               __assign_str(name, pptr->gpr_name);
+               __assign_str(name);
        ),
        TP_printk("dev %d:%d ino 0x%llx firstu %u reclen %u bufsize %u parent_ino 0x%llx parent_gen 0x%x name '%s'",
                  MAJOR(__entry->dev), MINOR(__entry->dev),
index c011ea236e9b7fe0fd403262214f223334a7adb0..7c47151d5c72be96d37513610e8689718239348e 100644 (file)
@@ -61,7 +61,7 @@ TRACE_EVENT(extlog_mem_event,
                else
                        __entry->pa_mask_lsb = ~0;
                __entry->fru_id = *fru_id;
-               __assign_str(fru_text, fru_text);
+               __assign_str(fru_text);
                cper_mem_err_pack(mem, &__entry->data);
        ),
 
@@ -131,8 +131,8 @@ TRACE_EVENT(mc_event,
 
        TP_fast_assign(
                __entry->error_type             = err_type;
-               __assign_str(msg, error_msg);
-               __assign_str(label, label);
+               __assign_str(msg);
+               __assign_str(label);
                __entry->error_count            = error_count;
                __entry->mc_index               = mc_index;
                __entry->top_layer              = top_layer;
@@ -141,7 +141,7 @@ TRACE_EVENT(mc_event,
                __entry->address                = address;
                __entry->grain_bits             = grain_bits;
                __entry->syndrome               = syndrome;
-               __assign_str(driver_detail, driver_detail);
+               __assign_str(driver_detail);
        ),
 
        TP_printk("%d %s error%s:%s%s on %s (mc:%d location:%d:%d:%d address:0x%08lx grain:%d syndrome:0x%08lx%s%s)",
@@ -239,7 +239,7 @@ TRACE_EVENT(non_standard_event,
        TP_fast_assign(
                memcpy(__entry->sec_type, sec_type, UUID_SIZE);
                memcpy(__entry->fru_id, fru_id, UUID_SIZE);
-               __assign_str(fru_text, fru_text);
+               __assign_str(fru_text);
                __entry->sev = sev;
                __entry->len = len;
                memcpy(__get_dynamic_array(buf), err, len);
@@ -313,7 +313,7 @@ TRACE_EVENT(aer_event,
        ),
 
        TP_fast_assign(
-               __assign_str(dev_name, dev_name);
+               __assign_str(dev_name);
                __entry->status         = status;
                __entry->severity       = severity;
                __entry->tlp_header_valid = tlp_header_valid;
index 517015ef36a84a0476865eeae4c7f98a3e6252da..202fc3680c36610825c2e87d1e1b111db39dc062 100644 (file)
@@ -32,8 +32,8 @@ DECLARE_EVENT_CLASS(snd_soc_dapm,
        ),
 
        TP_fast_assign(
-               __assign_str(card_name, dapm->card->name);
-               __assign_str(comp_name, dapm->component ? dapm->component->name : "(none)");
+               __assign_str(card_name);
+               __assign_str(comp_name);
                __entry->val = val;
        ),
 
@@ -69,7 +69,7 @@ DECLARE_EVENT_CLASS(snd_soc_dapm_basic,
        ),
 
        TP_fast_assign(
-               __assign_str(name, card->name);
+               __assign_str(name);
                __entry->event = event;
        ),
 
@@ -104,7 +104,7 @@ DECLARE_EVENT_CLASS(snd_soc_dapm_widget,
        ),
 
        TP_fast_assign(
-               __assign_str(name, w->name);
+               __assign_str(name);
                __entry->val = val;
        ),
 
@@ -150,7 +150,7 @@ TRACE_EVENT(snd_soc_dapm_walk_done,
        ),
 
        TP_fast_assign(
-               __assign_str(name, card->name);
+               __assign_str(name);
                __entry->power_checks = card->dapm_stats.power_checks;
                __entry->path_checks = card->dapm_stats.path_checks;
                __entry->neighbour_checks = card->dapm_stats.neighbour_checks;
@@ -179,9 +179,9 @@ TRACE_EVENT(snd_soc_dapm_path,
        ),
 
        TP_fast_assign(
-               __assign_str(wname, widget->name);
-               __assign_str(pname, path->name ? path->name : DAPM_DIRECT);
-               __assign_str(pnname, path->node[dir]->name);
+               __assign_str(wname);
+               __assign_str(pname);
+               __assign_str(pnname);
                __entry->path_connect = path->connect;
                __entry->path_node = (long)path->node[dir];
                __entry->path_dir = dir;
@@ -226,7 +226,7 @@ TRACE_EVENT(snd_soc_jack_irq,
        ),
 
        TP_fast_assign(
-               __assign_str(name, name);
+               __assign_str(name);
        ),
 
        TP_printk("%s", __get_str(name))
@@ -245,7 +245,7 @@ TRACE_EVENT(snd_soc_jack_report,
        ),
 
        TP_fast_assign(
-               __assign_str(name, jack->jack->id);
+               __assign_str(name);
                __entry->mask = mask;
                __entry->val = val;
        ),
@@ -266,7 +266,7 @@ TRACE_EVENT(snd_soc_jack_notify,
        ),
 
        TP_fast_assign(
-               __assign_str(name, jack->jack->id);
+               __assign_str(name);
                __entry->val = val;
        ),
 
index b55fda2e07733a99162d313f9d4456ed35325632..fed0f141d5f618c24ee0f6e8b961caa3f7367365 100644 (file)
@@ -36,9 +36,9 @@ TRACE_EVENT(selinux_audited,
                __entry->denied         = sad->denied;
                __entry->audited        = sad->audited;
                __entry->result         = sad->result;
-               __assign_str(tcontext, tcontext);
-               __assign_str(scontext, scontext);
-               __assign_str(tclass, tclass);
+               __assign_str(tcontext);
+               __assign_str(scontext);
+               __assign_str(tclass);
        ),
 
        TP_printk("requested=0x%x denied=0x%x audited=0x%x result=%d scontext=%s tcontext=%s tclass=%s",
index a6b3a4e409f02b9c2ea01fcc29ef7a28d05f2f97..3fe4725c83ffeab5e967344d5b317368728ed2b1 100644 (file)
@@ -25,7 +25,7 @@ TRACE_EVENT(br_fdb_add,
        ),
 
        TP_fast_assign(
-               __assign_str(dev, dev->name);
+               __assign_str(dev);
                memcpy(__entry->addr, addr, ETH_ALEN);
                __entry->vid = vid;
                __entry->nlh_flags = nlh_flags;
@@ -54,8 +54,8 @@ TRACE_EVENT(br_fdb_external_learn_add,
        ),
 
        TP_fast_assign(
-               __assign_str(br_dev, br->dev->name);
-               __assign_str(dev, p ? p->dev->name : "null");
+               __assign_str(br_dev);
+               __assign_str(dev);
                memcpy(__entry->addr, addr, ETH_ALEN);
                __entry->vid = vid;
        ),
@@ -80,8 +80,8 @@ TRACE_EVENT(fdb_delete,
        ),
 
        TP_fast_assign(
-               __assign_str(br_dev, br->dev->name);
-               __assign_str(dev, f->dst ? f->dst->dev->name : "null");
+               __assign_str(br_dev);
+               __assign_str(dev);
                memcpy(__entry->addr, f->key.addr.addr, ETH_ALEN);
                __entry->vid = f->key.vlan_id;
        ),
@@ -108,8 +108,8 @@ TRACE_EVENT(br_fdb_update,
        ),
 
        TP_fast_assign(
-               __assign_str(br_dev, br->dev->name);
-               __assign_str(dev, source->dev->name);
+               __assign_str(br_dev);
+               __assign_str(dev);
                memcpy(__entry->addr, addr, ETH_ALEN);
                __entry->vid = vid;
                __entry->flags = flags;
@@ -141,7 +141,7 @@ TRACE_EVENT(br_mdb_full,
        TP_fast_assign(
                struct in6_addr *in6;
 
-               __assign_str(dev, dev->name);
+               __assign_str(dev);
                __entry->vid = group->vid;
 
                if (!group->proto) {
index d2d94d7c3fb598d4efed5f08da09963be4e0a146..fadf406b52605f75c909c914c709c7124922a298 100644 (file)
@@ -1140,7 +1140,7 @@ TRACE_EVENT(btrfs_space_reservation,
        ),
 
        TP_fast_assign_btrfs(fs_info,
-               __assign_str(type, type);
+               __assign_str(type);
                __entry->val            = val;
                __entry->bytes          = bytes;
                __entry->reserve        = reserve;
@@ -1169,7 +1169,7 @@ TRACE_EVENT(btrfs_trigger_flush,
                __entry->flags  = flags;
                __entry->bytes  = bytes;
                __entry->flush  = flush;
-               __assign_str(reason, reason);
+               __assign_str(reason);
        ),
 
        TP_printk_btrfs("%s: flush=%d(%s) flags=%llu(%s) bytes=%llu",
@@ -1622,7 +1622,7 @@ DECLARE_EVENT_CLASS(btrfs_workqueue,
 
        TP_fast_assign_btrfs(btrfs_workqueue_owner(wq),
                __entry->wq             = wq;
-               __assign_str(name, name);
+               __assign_str(name);
        ),
 
        TP_printk_btrfs("name=%s wq=%p", __get_str(name),
index 0b95865a90f3d82946d4e4f804e7ee60c76effb5..af2755bda6eb901386ea35f187f6fce793805ec9 100644 (file)
@@ -23,7 +23,7 @@ DECLARE_EVENT_CLASS(cgroup_root,
        TP_fast_assign(
                __entry->root = root->hierarchy_id;
                __entry->ss_mask = root->subsys_mask;
-               __assign_str(name, root->name);
+               __assign_str(name);
        ),
 
        TP_printk("root=%d ss_mask=%#x name=%s",
@@ -68,7 +68,7 @@ DECLARE_EVENT_CLASS(cgroup,
                __entry->root = cgrp->root->hierarchy_id;
                __entry->id = cgroup_id(cgrp);
                __entry->level = cgrp->level;
-               __assign_str(path, path);
+               __assign_str(path);
        ),
 
        TP_printk("root=%d id=%llu level=%d path=%s",
@@ -137,9 +137,9 @@ DECLARE_EVENT_CLASS(cgroup_migrate,
                __entry->dst_root = dst_cgrp->root->hierarchy_id;
                __entry->dst_id = cgroup_id(dst_cgrp);
                __entry->dst_level = dst_cgrp->level;
-               __assign_str(dst_path, path);
+               __assign_str(dst_path);
                __entry->pid = task->pid;
-               __assign_str(comm, task->comm);
+               __assign_str(comm);
        ),
 
        TP_printk("dst_root=%d dst_id=%llu dst_level=%d dst_path=%s pid=%d comm=%s",
@@ -181,7 +181,7 @@ DECLARE_EVENT_CLASS(cgroup_event,
                __entry->root = cgrp->root->hierarchy_id;
                __entry->id = cgroup_id(cgrp);
                __entry->level = cgrp->level;
-               __assign_str(path, path);
+               __assign_str(path);
                __entry->val = val;
        ),
 
index daed3c7a48c172b838ee2a8c4acfebd2865b5b38..759f7371a6dc39c66ff7e82f52a6fff90270429e 100644 (file)
@@ -23,7 +23,7 @@ DECLARE_EVENT_CLASS(clk,
        ),
 
        TP_fast_assign(
-               __assign_str(name, core->name);
+               __assign_str(name);
        ),
 
        TP_printk("%s", __get_str(name))
@@ -97,7 +97,7 @@ DECLARE_EVENT_CLASS(clk_rate,
        ),
 
        TP_fast_assign(
-               __assign_str(name, core->name);
+               __assign_str(name);
                __entry->rate = rate;
        ),
 
@@ -145,7 +145,7 @@ DECLARE_EVENT_CLASS(clk_rate_range,
        ),
 
        TP_fast_assign(
-               __assign_str(name, core->name);
+               __assign_str(name);
                __entry->min = min;
                __entry->max = max;
        ),
@@ -174,8 +174,8 @@ DECLARE_EVENT_CLASS(clk_parent,
        ),
 
        TP_fast_assign(
-               __assign_str(name, core->name);
-               __assign_str(pname, parent ? parent->name : "none");
+               __assign_str(name);
+               __assign_str(pname);
        ),
 
        TP_printk("%s %s", __get_str(name), __get_str(pname))
@@ -207,7 +207,7 @@ DECLARE_EVENT_CLASS(clk_phase,
        ),
 
        TP_fast_assign(
-               __assign_str(name, core->name);
+               __assign_str(name);
                __entry->phase = phase;
        ),
 
@@ -241,7 +241,7 @@ DECLARE_EVENT_CLASS(clk_duty_cycle,
        ),
 
        TP_fast_assign(
-               __assign_str(name, core->name);
+               __assign_str(name);
                __entry->num = duty->num;
                __entry->den = duty->den;
        ),
@@ -279,8 +279,8 @@ DECLARE_EVENT_CLASS(clk_rate_request,
        ),
 
        TP_fast_assign(
-               __assign_str(name, req->core ? req->core->name : "none");
-               __assign_str(pname, req->best_parent_hw ? clk_hw_get_name(req->best_parent_hw) : "none");
+               __assign_str(name);
+               __assign_str(pname);
                __entry->min = req->min_rate;
                __entry->max = req->max_rate;
                __entry->prate = req->best_parent_rate;
index 25103e67737cbc1c8e0ea2b170a608358dba186e..383c09f583ac6d331f6d3c827a36f2d2bf49f578 100644 (file)
@@ -23,7 +23,7 @@ TRACE_EVENT(cma_release,
        ),
 
        TP_fast_assign(
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->pfn = pfn;
                __entry->page = page;
                __entry->count = count;
@@ -49,7 +49,7 @@ TRACE_EVENT(cma_alloc_start,
        ),
 
        TP_fast_assign(
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->count = count;
                __entry->align = align;
        ),
@@ -77,7 +77,7 @@ TRACE_EVENT(cma_alloc_finish,
        ),
 
        TP_fast_assign(
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->pfn = pfn;
                __entry->page = page;
                __entry->count = count;
@@ -110,7 +110,7 @@ TRACE_EVENT(cma_alloc_busy_retry,
        ),
 
        TP_fast_assign(
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->pfn = pfn;
                __entry->page = page;
                __entry->count = count;
index 7627c620bbda248f9dbad214fed9cdfda6c7c1d2..6cbc4d59fd96b3b2d372db4ef920c2b0bfea189c 100644 (file)
@@ -23,7 +23,7 @@ TRACE_EVENT(devfreq_frequency,
        ),
 
        TP_fast_assign(
-               __assign_str(dev_name, dev_name(&devfreq->dev));
+               __assign_str(dev_name);
                __entry->freq = freq;
                __entry->prev_freq = prev_freq;
                __entry->busy_time = devfreq->last_status.busy_time;
@@ -54,7 +54,7 @@ TRACE_EVENT(devfreq_monitor,
                __entry->busy_time = devfreq->last_status.busy_time;
                __entry->total_time = devfreq->last_status.total_time;
                __entry->polling_ms = devfreq->profile->polling_ms;
-               __assign_str(dev_name, dev_name(&devfreq->dev));
+               __assign_str(dev_name);
        ),
 
        TP_printk("dev_name=%-30s freq=%-12lu polling_ms=%-3u load=%-2lu",
index 77ff7cfc6049a6fa724ad27fd33428a169d643f2..f241e204fe6b9913b695ffde073e61c5ddd30d7d 100644 (file)
@@ -31,9 +31,9 @@ TRACE_EVENT(devlink_hwmsg,
        ),
 
        TP_fast_assign(
-               __assign_str(bus_name, devlink_to_dev(devlink)->bus->name);
-               __assign_str(dev_name, dev_name(devlink_to_dev(devlink)));
-               __assign_str(driver_name, devlink_to_dev(devlink)->driver->name);
+               __assign_str(bus_name);
+               __assign_str(dev_name);
+               __assign_str(driver_name);
                __entry->incoming = incoming;
                __entry->type = type;
                memcpy(__get_dynamic_array(buf), buf, len);
@@ -63,11 +63,11 @@ TRACE_EVENT(devlink_hwerr,
                ),
 
        TP_fast_assign(
-               __assign_str(bus_name, devlink_to_dev(devlink)->bus->name);
-               __assign_str(dev_name, dev_name(devlink_to_dev(devlink)));
-               __assign_str(driver_name, devlink_to_dev(devlink)->driver->name);
+               __assign_str(bus_name);
+               __assign_str(dev_name);
+               __assign_str(driver_name);
                __entry->err = err;
-               __assign_str(msg, msg);
+               __assign_str(msg);
                ),
 
        TP_printk("bus_name=%s dev_name=%s driver_name=%s err=%d %s",
@@ -93,11 +93,11 @@ TRACE_EVENT(devlink_health_report,
        ),
 
        TP_fast_assign(
-               __assign_str(bus_name, devlink_to_dev(devlink)->bus->name);
-               __assign_str(dev_name, dev_name(devlink_to_dev(devlink)));
-               __assign_str(driver_name, devlink_to_dev(devlink)->driver->name);
-               __assign_str(reporter_name, reporter_name);
-               __assign_str(msg, msg);
+               __assign_str(bus_name);
+               __assign_str(dev_name);
+               __assign_str(driver_name);
+               __assign_str(reporter_name);
+               __assign_str(msg);
        ),
 
        TP_printk("bus_name=%s dev_name=%s driver_name=%s reporter_name=%s: %s",
@@ -125,10 +125,10 @@ TRACE_EVENT(devlink_health_recover_aborted,
        ),
 
        TP_fast_assign(
-               __assign_str(bus_name, devlink_to_dev(devlink)->bus->name);
-               __assign_str(dev_name, dev_name(devlink_to_dev(devlink)));
-               __assign_str(driver_name, devlink_to_dev(devlink)->driver->name);
-               __assign_str(reporter_name, reporter_name);
+               __assign_str(bus_name);
+               __assign_str(dev_name);
+               __assign_str(driver_name);
+               __assign_str(reporter_name);
                __entry->health_state = health_state;
                __entry->time_since_last_recover = time_since_last_recover;
        ),
@@ -158,10 +158,10 @@ TRACE_EVENT(devlink_health_reporter_state_update,
        ),
 
        TP_fast_assign(
-               __assign_str(bus_name, devlink_to_dev(devlink)->bus->name);
-               __assign_str(dev_name, dev_name(devlink_to_dev(devlink)));
-               __assign_str(driver_name, devlink_to_dev(devlink)->driver->name);
-               __assign_str(reporter_name, reporter_name);
+               __assign_str(bus_name);
+               __assign_str(dev_name);
+               __assign_str(driver_name);
+               __assign_str(reporter_name);
                __entry->new_state = new_state;
        ),
 
@@ -192,11 +192,11 @@ TRACE_EVENT(devlink_trap_report,
        TP_fast_assign(
                struct net_device *input_dev = metadata->input_dev;
 
-               __assign_str(bus_name, devlink_to_dev(devlink)->bus->name);
-               __assign_str(dev_name, dev_name(devlink_to_dev(devlink)));
-               __assign_str(driver_name, devlink_to_dev(devlink)->driver->name);
-               __assign_str(trap_name, metadata->trap_name);
-               __assign_str(trap_group_name, metadata->trap_group_name);
+               __assign_str(bus_name);
+               __assign_str(dev_name);
+               __assign_str(driver_name);
+               __assign_str(trap_name);
+               __assign_str(trap_group_name);
                strscpy(__entry->input_dev_name, input_dev ? input_dev->name : "NULL", IFNAMSIZ);
        ),
 
index 3963e79ca7b42d22bfabd52a38711cc6b563ab18..a4de3df8500bc54bf787f7d38b3fa51ffe7426a6 100644 (file)
@@ -23,8 +23,8 @@ DECLARE_EVENT_CLASS(dma_fence,
        ),
 
        TP_fast_assign(
-               __assign_str(driver, fence->ops->get_driver_name(fence));
-               __assign_str(timeline, fence->ops->get_timeline_name(fence));
+               __assign_str(driver);
+               __assign_str(timeline);
                __entry->context = fence->context;
                __entry->seqno = fence->seqno;
        ),
index e18684b02c3dfa0c138da518172a3cb99998cbd4..b9bbfd855f2ab7717929be4047122cca4efc2f7c 100644 (file)
@@ -47,7 +47,7 @@ TRACE_EVENT(erofs_lookup,
        TP_fast_assign(
                __entry->dev    = dir->i_sb->s_dev;
                __entry->nid    = EROFS_I(dir)->nid;
-               __assign_str(name, dentry->d_name.name);
+               __assign_str(name);
                __entry->flags  = flags;
        ),
 
index 371ba28415f5cdf39a30157cfc0adfaaacbde108..ed794b5fefbe3a47193b1077339fc397bae3bf47 100644 (file)
@@ -354,7 +354,7 @@ TRACE_EVENT(f2fs_unlink_enter,
                __entry->ino    = dir->i_ino;
                __entry->size   = dir->i_size;
                __entry->blocks = dir->i_blocks;
-               __assign_str(name, dentry->d_name.name);
+               __assign_str(name);
        ),
 
        TP_printk("dev = (%d,%d), dir ino = %lu, i_size = %lld, "
@@ -843,7 +843,7 @@ TRACE_EVENT(f2fs_lookup_start,
        TP_fast_assign(
                __entry->dev    = dir->i_sb->s_dev;
                __entry->ino    = dir->i_ino;
-               __assign_str(name, dentry->d_name.name);
+               __assign_str(name);
                __entry->flags  = flags;
        ),
 
@@ -871,7 +871,7 @@ TRACE_EVENT(f2fs_lookup_end,
        TP_fast_assign(
                __entry->dev    = dir->i_sb->s_dev;
                __entry->ino    = dir->i_ino;
-               __assign_str(name, dentry->d_name.name);
+               __assign_str(name);
                __entry->cino   = ino;
                __entry->err    = err;
        ),
@@ -903,9 +903,9 @@ TRACE_EVENT(f2fs_rename_start,
        TP_fast_assign(
                __entry->dev            = old_dir->i_sb->s_dev;
                __entry->ino            = old_dir->i_ino;
-               __assign_str(old_name, old_dentry->d_name.name);
+               __assign_str(old_name);
                __entry->new_pino       = new_dir->i_ino;
-               __assign_str(new_name, new_dentry->d_name.name);
+               __assign_str(new_name);
                __entry->flags          = flags;
        ),
 
@@ -937,8 +937,8 @@ TRACE_EVENT(f2fs_rename_end,
        TP_fast_assign(
                __entry->dev            = old_dentry->d_sb->s_dev;
                __entry->ino            = old_dentry->d_inode->i_ino;
-               __assign_str(old_name, old_dentry->d_name.name);
-               __assign_str(new_name, new_dentry->d_name.name);
+               __assign_str(old_name);
+               __assign_str(new_name);
                __entry->flags          = flags;
                __entry->ret            = ret;
        ),
@@ -1557,7 +1557,7 @@ TRACE_EVENT(f2fs_write_checkpoint,
        TP_fast_assign(
                __entry->dev            = sb->s_dev;
                __entry->reason         = reason;
-               __assign_str(dest_msg, msg);
+               __assign_str(dest_msg);
        ),
 
        TP_printk("dev = (%d,%d), checkpoint for %s, state = %s",
@@ -2333,12 +2333,12 @@ DECLARE_EVENT_CLASS(f2fs__rw_start,
                 * because this screws up the tooling that parses
                 * the traces.
                 */
-               __assign_str(pathbuf, pathname);
+               __assign_str(pathbuf);
                (void)strreplace(__get_str(pathbuf), ' ', '_');
                __entry->offset = offset;
                __entry->bytes = bytes;
                __entry->i_size = i_size_read(inode);
-               __assign_str(cmdline, command);
+               __assign_str(cmdline);
                (void)strreplace(__get_str(cmdline), ' ', '_');
                __entry->pid = pid;
                __entry->ino = inode->i_ino;
index a78d21fa9f2932208053ce8aecf09c7b27a15de4..4a2bb2c896d17edd04b713575789508125caca8d 100644 (file)
@@ -27,7 +27,7 @@ DECLARE_EVENT_CLASS(habanalabs_mmu_template,
        ),
 
        TP_fast_assign(
-               __assign_str(dname, dev_name(dev));
+               __assign_str(dname);
                __entry->virt_addr = virt_addr;
                __entry->phys_addr = phys_addr;
                __entry->page_size = page_size;
@@ -64,7 +64,7 @@ DECLARE_EVENT_CLASS(habanalabs_dma_alloc_template,
        ),
 
        TP_fast_assign(
-               __assign_str(dname, dev_name(dev));
+               __assign_str(dname);
                __entry->cpu_addr = cpu_addr;
                __entry->dma_addr = dma_addr;
                __entry->size = size;
@@ -103,7 +103,7 @@ DECLARE_EVENT_CLASS(habanalabs_dma_map_template,
        ),
 
        TP_fast_assign(
-               __assign_str(dname, dev_name(dev));
+               __assign_str(dname);
                __entry->phys_addr = phys_addr;
                __entry->dma_addr = dma_addr;
                __entry->len = len;
@@ -141,7 +141,7 @@ DECLARE_EVENT_CLASS(habanalabs_comms_template,
        ),
 
        TP_fast_assign(
-               __assign_str(dname, dev_name(dev));
+               __assign_str(dname);
                __entry->op_str = op_str;
        ),
 
@@ -178,7 +178,7 @@ DECLARE_EVENT_CLASS(habanalabs_reg_access_template,
        ),
 
        TP_fast_assign(
-               __assign_str(dname, dev_name(dev));
+               __assign_str(dname);
                __entry->addr = addr;
                __entry->val = val;
        ),
index ab576898a1264d3e5382b03aa1775a9213806d8c..b5f5369b63009fd03d395027b40b1e0b867697b6 100644 (file)
@@ -191,7 +191,7 @@ TRACE_EVENT(mm_khugepaged_scan_file,
        TP_fast_assign(
                __entry->mm = mm;
                __entry->pfn = folio ? folio_pfn(folio) : -1;
-               __assign_str(filename, file->f_path.dentry->d_iname);
+               __assign_str(filename);
                __entry->present = present;
                __entry->swap = swap;
                __entry->result = result;
@@ -228,7 +228,7 @@ TRACE_EVENT(mm_khugepaged_collapse_file,
                __entry->index = index;
                __entry->addr = addr;
                __entry->is_shmem = is_shmem;
-               __assign_str(filename, file->f_path.dentry->d_iname);
+               __assign_str(filename);
                __entry->nr = nr;
                __entry->result = result;
        ),
index d7a1d0ffb6792ae3c7a9d6710ca2dddde4caa521..d1ff560cd9b561e9b10f5715ac039bbcd141bc50 100644 (file)
@@ -21,7 +21,7 @@ DECLARE_EVENT_CLASS(hwmon_attr_class,
 
        TP_fast_assign(
                __entry->index = index;
-               __assign_str(attr_name, attr_name);
+               __assign_str(attr_name);
                __entry->val = val;
        ),
 
@@ -57,8 +57,8 @@ TRACE_EVENT(hwmon_attr_show_string,
 
        TP_fast_assign(
                __entry->index = index;
-               __assign_str(attr_name, attr_name);
-               __assign_str(label, s);
+               __assign_str(attr_name);
+               __assign_str(label);
        ),
 
        TP_printk("index=%d, attr_name=%s, val=%s",
index eb903c3f195f590b7c13e245af1412e7263000ec..5282afdf3ddfb01dfcbbfc432837a7f83118d641 100644 (file)
@@ -18,7 +18,7 @@ TRACE_EVENT(initcall_level,
        ),
 
        TP_fast_assign(
-               __assign_str(level, level);
+               __assign_str(level);
        ),
 
        TP_printk("level=%s", __get_str(level))
index e6d7ff55ee8cdcb9427d874e0e1e9e2ca13a8465..64b6612c41bc27af67414e3198e957878882aab4 100644 (file)
@@ -18,7 +18,7 @@ TRACE_EVENT(ishtp_dump,
        ),
 
        TP_fast_assign(
-               __assign_str(message, message);
+               __assign_str(message);
        ),
 
        TP_printk("%s", __get_str(message))
index e948df7ce62597507d88327723d5586f578c5c8d..412c9c210a329a2675d88278f2753d80755b8136 100644 (file)
@@ -164,7 +164,7 @@ TRACE_EVENT(io_uring_queue_async_work,
                __entry->work           = &req->work;
                __entry->rw             = rw;
 
-               __assign_str(op_str, io_uring_get_opcode(req->opcode));
+               __assign_str(op_str);
        ),
 
        TP_printk("ring %p, request %p, user_data 0x%llx, opcode %s, flags 0x%llx, %s queue, work %p",
@@ -202,7 +202,7 @@ TRACE_EVENT(io_uring_defer,
                __entry->data   = req->cqe.user_data;
                __entry->opcode = req->opcode;
 
-               __assign_str(op_str, io_uring_get_opcode(req->opcode));
+               __assign_str(op_str);
        ),
 
        TP_printk("ring %p, request %p, user_data 0x%llx, opcode %s",
@@ -303,7 +303,7 @@ TRACE_EVENT(io_uring_fail_link,
                __entry->opcode         = req->opcode;
                __entry->link           = link;
 
-               __assign_str(op_str, io_uring_get_opcode(req->opcode));
+               __assign_str(op_str);
        ),
 
        TP_printk("ring %p, request %p, user_data 0x%llx, opcode %s, link %p",
@@ -392,7 +392,7 @@ TRACE_EVENT(io_uring_submit_req,
                __entry->flags          = (__force unsigned long long) req->flags;
                __entry->sq_thread      = req->ctx->flags & IORING_SETUP_SQPOLL;
 
-               __assign_str(op_str, io_uring_get_opcode(req->opcode));
+               __assign_str(op_str);
        ),
 
        TP_printk("ring %p, req %p, user_data 0x%llx, opcode %s, flags 0x%llx, "
@@ -436,7 +436,7 @@ TRACE_EVENT(io_uring_poll_arm,
                __entry->mask           = mask;
                __entry->events         = events;
 
-               __assign_str(op_str, io_uring_get_opcode(req->opcode));
+               __assign_str(op_str);
        ),
 
        TP_printk("ring %p, req %p, user_data 0x%llx, opcode %s, mask 0x%x, events 0x%x",
@@ -475,7 +475,7 @@ TRACE_EVENT(io_uring_task_add,
                __entry->opcode         = req->opcode;
                __entry->mask           = mask;
 
-               __assign_str(op_str, io_uring_get_opcode(req->opcode));
+               __assign_str(op_str);
        ),
 
        TP_printk("ring %p, req %p, user_data 0x%llx, opcode %s, mask %x",
@@ -538,7 +538,7 @@ TRACE_EVENT(io_uring_req_failed,
                __entry->addr3          = sqe->addr3;
                __entry->error          = error;
 
-               __assign_str(op_str, io_uring_get_opcode(sqe->opcode));
+               __assign_str(op_str);
        ),
 
        TP_printk("ring %p, req %p, user_data 0x%llx, "
index af8bfed528fcb29c0e00b1fcaf87663f66d4798c..e772b1bc60d603e2b2c604152c3835d8245e0295 100644 (file)
@@ -34,8 +34,8 @@ DECLARE_EVENT_CLASS(iocost_iocg_state,
        ),
 
        TP_fast_assign(
-               __assign_str(devname, ioc_name(iocg->ioc));
-               __assign_str(cgroup, path);
+               __assign_str(devname);
+               __assign_str(cgroup);
                __entry->now = now->now;
                __entry->vnow = now->vnow;
                __entry->vrate = iocg->ioc->vtime_base_rate;
@@ -93,8 +93,8 @@ DECLARE_EVENT_CLASS(iocg_inuse_update,
        ),
 
        TP_fast_assign(
-               __assign_str(devname, ioc_name(iocg->ioc));
-               __assign_str(cgroup, path);
+               __assign_str(devname);
+               __assign_str(cgroup);
                __entry->now = now->now;
                __entry->old_inuse = old_inuse;
                __entry->new_inuse = new_inuse;
@@ -159,7 +159,7 @@ TRACE_EVENT(iocost_ioc_vrate_adj,
        ),
 
        TP_fast_assign(
-               __assign_str(devname, ioc_name(ioc));
+               __assign_str(devname);
                __entry->old_vrate = ioc->vtime_base_rate;
                __entry->new_vrate = new_vrate;
                __entry->busy_level = ioc->busy_level;
@@ -200,8 +200,8 @@ TRACE_EVENT(iocost_iocg_forgive_debt,
        ),
 
        TP_fast_assign(
-               __assign_str(devname, ioc_name(iocg->ioc));
-               __assign_str(cgroup, path);
+               __assign_str(devname);
+               __assign_str(cgroup);
                __entry->now = now->now;
                __entry->vnow = now->vnow;
                __entry->usage_pct = usage_pct;
index 70743db1fb758fcc7a541d737a0776cd5544923f..373007e567cb827458a729b8200bbcc1b7d76912 100644 (file)
@@ -28,7 +28,7 @@ DECLARE_EVENT_CLASS(iommu_group_event,
 
        TP_fast_assign(
                __entry->gid = group_id;
-               __assign_str(device, dev_name(dev));
+               __assign_str(device);
        ),
 
        TP_printk("IOMMU: groupID=%d device=%s",
@@ -62,7 +62,7 @@ DECLARE_EVENT_CLASS(iommu_device_event,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(dev));
+               __assign_str(device);
        ),
 
        TP_printk("IOMMU: device=%s", __get_str(device)
@@ -138,8 +138,8 @@ DECLARE_EVENT_CLASS(iommu_error,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(dev));
-               __assign_str(driver, dev_driver_string(dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->iova = iova;
                __entry->flags = flags;
        ),
index a07b4607b66359856f958381e42373a1f903c95e..837c1740d0d07ab23f401e1d6e2d2c2dd1886bb0 100644 (file)
@@ -63,7 +63,7 @@ TRACE_EVENT(irq_handler_entry,
 
        TP_fast_assign(
                __entry->irq = irq;
-               __assign_str(name, action->name);
+               __assign_str(name);
        ),
 
        TP_printk("irq=%d name=%s", __entry->irq, __get_str(name))
index 8ff2a3ca5d75e7e5e3f00592fba59d318af98789..990fd154f586fc06f2f88f2c1fda6552bc2118df 100644 (file)
@@ -30,7 +30,7 @@ DECLARE_EVENT_CLASS(iscsi_log_msg,
        ),
 
        TP_fast_assign(
-               __assign_str(dname, dev_name(dev));
+               __assign_str(dname);
                __assign_vstr(msg, vaf->fmt, vaf->va);
        ),
 
index 6e62cc64cd92a647ad42aa109a5578c668d35617..8a829e0f6e5504cfccd0589f15ecf1e97de94ec4 100644 (file)
@@ -126,7 +126,7 @@ TRACE_EVENT(kmem_cache_free,
        TP_fast_assign(
                __entry->call_site      = call_site;
                __entry->ptr            = ptr;
-               __assign_str(name, s->name);
+               __assign_str(name);
        ),
 
        TP_printk("call_site=%pS ptr=%p name=%s",
index 9ebd081e057e8769a9779e3b00ee69d45fecf57d..8e89baa3775f78fd0a94ff0c1de23b803f4ab4ca 100644 (file)
@@ -37,7 +37,7 @@ TRACE_EVENT(lock_acquire,
 
        TP_fast_assign(
                __entry->flags = (trylock ? 1 : 0) | (read ? 2 : 0);
-               __assign_str(name, lock->name);
+               __assign_str(name);
                __entry->lockdep_addr = lock;
        ),
 
@@ -59,7 +59,7 @@ DECLARE_EVENT_CLASS(lock,
        ),
 
        TP_fast_assign(
-               __assign_str(name, lock->name);
+               __assign_str(name);
                __entry->lockdep_addr = lock;
        ),
 
index 14db8044c1ff2c18936d004021fe336950a051b7..f2827f98a44f39c08aeac63a963b548cfb1cb918 100644 (file)
@@ -27,7 +27,7 @@ DECLARE_EVENT_CLASS(mmap_lock,
 
        TP_fast_assign(
                __entry->mm = mm;
-               __assign_str(memcg_path, memcg_path);
+               __assign_str(memcg_path);
                __entry->write = write;
        ),
 
@@ -65,7 +65,7 @@ TRACE_EVENT_FN(mmap_lock_acquire_returned,
 
        TP_fast_assign(
                __entry->mm = mm;
-               __assign_str(memcg_path, memcg_path);
+               __assign_str(memcg_path);
                __entry->write = write;
                __entry->success = success;
        ),
index 7b706ff213359eb31271c8869160c984171bce71..f1c2e94f7f68e637224aa45ca6392637b028ee94 100644 (file)
@@ -68,7 +68,7 @@ TRACE_EVENT(mmc_request_start,
                __entry->need_retune = host->need_retune;
                __entry->hold_retune = host->hold_retune;
                __entry->retune_period = host->retune_period;
-               __assign_str(name, mmc_hostname(host));
+               __assign_str(name);
                __entry->mrq = mrq;
        ),
 
@@ -156,7 +156,7 @@ TRACE_EVENT(mmc_request_done,
                __entry->need_retune = host->need_retune;
                __entry->hold_retune = host->hold_retune;
                __entry->retune_period = host->retune_period;
-               __assign_str(name, mmc_hostname(host));
+               __assign_str(name);
                __entry->mrq = mrq;
        ),
 
index 097485c73c01d44a4aff950534e6207395a54eb3..e5a006be9dc66c12f48cbcc82d82db6013c0ddef 100644 (file)
@@ -41,7 +41,7 @@ TRACE_EVENT(module_load,
 
        TP_fast_assign(
                __entry->taints = mod->taints;
-               __assign_str(name, mod->name);
+               __assign_str(name);
        ),
 
        TP_printk("%s %s", __get_str(name), show_module_flags(__entry->taints))
@@ -58,7 +58,7 @@ TRACE_EVENT(module_free,
        ),
 
        TP_fast_assign(
-               __assign_str(name, mod->name);
+               __assign_str(name);
        ),
 
        TP_printk("%s", __get_str(name))
@@ -82,7 +82,7 @@ DECLARE_EVENT_CLASS(module_refcnt,
        TP_fast_assign(
                __entry->ip     = ip;
                __entry->refcnt = atomic_read(&mod->refcnt);
-               __assign_str(name, mod->name);
+               __assign_str(name);
        ),
 
        TP_printk("%s call_site=%ps refcnt=%d",
@@ -119,7 +119,7 @@ TRACE_EVENT(module_request,
        TP_fast_assign(
                __entry->ip     = ip;
                __entry->wait   = wait;
-               __assign_str(name, name);
+               __assign_str(name);
        ),
 
        TP_printk("%s wait=%d call_site=%ps",
index dc03cf8e036915b590921c8558bb682c779978e5..b567b9ffedc12debfc4ca5d38a9a53ef65a53752 100644 (file)
@@ -26,7 +26,7 @@ TRACE_EVENT(napi_poll,
 
        TP_fast_assign(
                __entry->napi = napi;
-               __assign_str(dev_name, napi->dev ? napi->dev->name : NO_DEV);
+               __assign_str(dev_name);
                __entry->work = work;
                __entry->budget = budget;
        ),
index 833143d0992e063bc80e06ac3b0e94fdd263460b..12362c35dbc06dbfa3bbea3435c0f77b24b0b24e 100644 (file)
@@ -42,7 +42,7 @@ TRACE_EVENT(neigh_create,
                __be32 *p32;
 
                __entry->family = tbl->family;
-               __assign_str(dev, (dev ? dev->name : "NULL"));
+               __assign_str(dev);
                __entry->entries = atomic_read(&tbl->gc_entries);
                __entry->created = n != NULL;
                __entry->gc_exempt = exempt_from_gc;
@@ -103,7 +103,7 @@ TRACE_EVENT(neigh_update,
                __be32 *p32;
 
                __entry->family = n->tbl->family;
-               __assign_str(dev, (n->dev ? n->dev->name : "NULL"));
+               __assign_str(dev);
                __entry->lladdr_len = lladdr_len;
                memcpy(__entry->lladdr, n->ha, lladdr_len);
                __entry->flags = n->flags;
@@ -180,7 +180,7 @@ DECLARE_EVENT_CLASS(neigh__update,
                __be32 *p32;
 
                __entry->family = n->tbl->family;
-               __assign_str(dev, (n->dev ? n->dev->name : "NULL"));
+               __assign_str(dev);
                __entry->lladdr_len = lladdr_len;
                memcpy(__entry->lladdr, n->ha, lladdr_len);
                __entry->flags = n->flags;
index f667c76a3b022971b28e8418ad681d8aa0a26442..d55162c12f90ac53296d069d5cf0e1b89dd56d10 100644 (file)
@@ -38,7 +38,7 @@ TRACE_EVENT(net_dev_start_xmit,
        ),
 
        TP_fast_assign(
-               __assign_str(name, dev->name);
+               __assign_str(name);
                __entry->queue_mapping = skb->queue_mapping;
                __entry->skbaddr = skb;
                __entry->vlan_tagged = skb_vlan_tag_present(skb);
@@ -89,7 +89,7 @@ TRACE_EVENT(net_dev_xmit,
                __entry->skbaddr = skb;
                __entry->len = skb_len;
                __entry->rc = rc;
-               __assign_str(name, dev->name);
+               __assign_str(name);
        ),
 
        TP_printk("dev=%s skbaddr=%p len=%u rc=%d",
@@ -110,8 +110,8 @@ TRACE_EVENT(net_dev_xmit_timeout,
        ),
 
        TP_fast_assign(
-               __assign_str(name, dev->name);
-               __assign_str(driver, netdev_drivername(dev));
+               __assign_str(name);
+               __assign_str(driver);
                __entry->queue_index = queue_index;
        ),
 
@@ -134,7 +134,7 @@ DECLARE_EVENT_CLASS(net_dev_template,
        TP_fast_assign(
                __entry->skbaddr = skb;
                __entry->len = skb->len;
-               __assign_str(name, skb->dev->name);
+               __assign_str(name);
        ),
 
        TP_printk("dev=%s skbaddr=%p len=%u",
@@ -191,7 +191,7 @@ DECLARE_EVENT_CLASS(net_dev_rx_verbose_template,
        ),
 
        TP_fast_assign(
-               __assign_str(name, skb->dev->name);
+               __assign_str(name);
 #ifdef CONFIG_NET_RX_BUSY_POLL
                __entry->napi_id = skb->napi_id;
 #else
index 3b7be3b386a4f3976738a107fe4b7e0915ae58bb..f036b8a20505b1fd4986c14bd4be1e0b70e606af 100644 (file)
@@ -17,7 +17,7 @@ TRACE_EVENT(netlink_extack,
        ),
 
        TP_fast_assign(
-               __assign_str(msg, msg);
+               __assign_str(msg);
        ),
 
        TP_printk("msg=%s", __get_str(msg))
index b799f3bcba8233e7e693e3363b4e576c07d3eefe..a42be4c8563b3630ae28e42d96405d28ad2fb1cf 100644 (file)
@@ -92,7 +92,7 @@ TRACE_EVENT(mark_victim,
 
        TP_fast_assign(
                __entry->pid = task->pid;
-               __assign_str(comm, task->comm);
+               __assign_str(comm);
                __entry->total_vm = PG_COUNT_TO_KB(task->mm->total_vm);
                __entry->anon_rss = PG_COUNT_TO_KB(get_mm_counter(task->mm, MM_ANONPAGES));
                __entry->file_rss = PG_COUNT_TO_KB(get_mm_counter(task->mm, MM_FILEPAGES));
index 82f741ec0f578f474e5326be1428b74cddc60047..a2379a4f06849dc2a1a6c49981ab211c0973b07c 100644 (file)
@@ -75,7 +75,7 @@ TRACE_EVENT(irq_noise,
        ),
 
        TP_fast_assign(
-               __assign_str(desc, desc);
+               __assign_str(desc);
                __entry->vector = vector;
                __entry->start = start;
                __entry->duration = duration;
index 77f14f7a11d4824c1c269f7eae621f57174502d4..d2349b6b531ac9570ee64059c3047668ba9b1db6 100644 (file)
@@ -76,7 +76,7 @@ TRACE_EVENT(powernv_throttle,
 
        TP_fast_assign(
                __entry->chip_id = chip_id;
-               __assign_str(reason, reason);
+               __assign_str(reason);
                __entry->pmax = pmax;
        ),
 
@@ -210,11 +210,10 @@ TRACE_EVENT(device_pm_callback_start,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(dev));
-               __assign_str(driver, dev_driver_string(dev));
-               __assign_str(parent,
-                       dev->parent ? dev_name(dev->parent) : "none");
-               __assign_str(pm_ops, pm_ops ? pm_ops : "none ");
+               __assign_str(device);
+               __assign_str(driver);
+               __assign_str(parent);
+               __assign_str(pm_ops);
                __entry->event = event;
        ),
 
@@ -236,8 +235,8 @@ TRACE_EVENT(device_pm_callback_end,
        ),
 
        TP_fast_assign(
-               __assign_str(device, dev_name(dev));
-               __assign_str(driver, dev_driver_string(dev));
+               __assign_str(device);
+               __assign_str(driver);
                __entry->error = error;
        ),
 
@@ -279,7 +278,7 @@ DECLARE_EVENT_CLASS(wakeup_source,
        ),
 
        TP_fast_assign(
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->state = state;
        ),
 
@@ -318,7 +317,7 @@ DECLARE_EVENT_CLASS(clock,
        ),
 
        TP_fast_assign(
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->state = state;
                __entry->cpu_id = cpu_id;
        ),
@@ -364,7 +363,7 @@ DECLARE_EVENT_CLASS(power_domain,
        ),
 
        TP_fast_assign(
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->state = state;
                __entry->cpu_id = cpu_id;
 ),
@@ -486,7 +485,7 @@ DECLARE_EVENT_CLASS(dev_pm_qos_request,
        ),
 
        TP_fast_assign(
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->type = type;
                __entry->new_value = new_value;
        ),
index a2da764a3b41205d6b9062fd3535265c70647e5b..0543702542d9d47a2c752544cf1f2ed2adb9ec24 100644 (file)
@@ -26,7 +26,7 @@ TRACE_EVENT(pwc_handler_enter,
                __entry->urb__actual_length = urb->actual_length;
                __entry->fbuf__filled = (pdev->fill_buf
                                         ? pdev->fill_buf->filled : 0);
-               __assign_str(name, pdev->v4l2_dev.name);
+               __assign_str(name);
        ),
        TP_printk("dev=%s (fbuf=%p filled=%d) urb=%p (status=%d actual_length=%u)",
                __get_str(name),
@@ -50,7 +50,7 @@ TRACE_EVENT(pwc_handler_exit,
                __entry->urb = urb;
                __entry->fbuf = pdev->fill_buf;
                __entry->fbuf__filled = pdev->fill_buf->filled;
-               __assign_str(name, pdev->v4l2_dev.name);
+               __assign_str(name);
        ),
        TP_printk(" dev=%s (fbuf=%p filled=%d) urb=%p",
                __get_str(name),
index 1f4258308b967a9ca8e17bbf61ba4ef07b6d786b..f1b5e816e7e5e91bdcef26ae32861b4c4502ee46 100644 (file)
@@ -88,8 +88,8 @@ TRACE_EVENT(qdisc_reset,
        ),
 
        TP_fast_assign(
-               __assign_str(dev, qdisc_dev(q)->name);
-               __assign_str(kind, q->ops->id);
+               __assign_str(dev);
+               __assign_str(kind);
                __entry->parent = q->parent;
                __entry->handle = q->handle;
        ),
@@ -113,8 +113,8 @@ TRACE_EVENT(qdisc_destroy,
        ),
 
        TP_fast_assign(
-               __assign_str(dev, qdisc_dev(q)->name);
-               __assign_str(kind, q->ops->id);
+               __assign_str(dev);
+               __assign_str(kind);
                __entry->parent = q->parent;
                __entry->handle = q->handle;
        ),
@@ -137,8 +137,8 @@ TRACE_EVENT(qdisc_create,
        ),
 
        TP_fast_assign(
-               __assign_str(dev, dev->name);
-               __assign_str(kind, ops->id);
+               __assign_str(dev);
+               __assign_str(kind);
                __entry->parent = parent;
        ),
 
index e7fd55e7dc3d5dd13b2ebbb2d85cdc3c59cc04cc..8800c35525a19f0ce53f795948d2fc58a3fb21cf 100644 (file)
@@ -25,7 +25,7 @@ DECLARE_EVENT_CLASS(qla_log_event,
                __vstring(msg, vaf->fmt, vaf->va)
        ),
        TP_fast_assign(
-               __assign_str(buf, buf);
+               __assign_str(buf);
                __assign_vstr(msg, vaf->fmt, vaf->va);
        ),
 
index 441132c67133f4621a62bb170ff8f7277fbfc923..14f822983741118e973e8d8dbc74091196e17e08 100644 (file)
@@ -102,7 +102,7 @@ TRACE_EVENT(qrtr_ns_message,
        ),
 
        TP_fast_assign(
-               __assign_str(ctrl_pkt_str, ctrl_pkt_str);
+               __assign_str(ctrl_pkt_str);
                __entry->sq_node = sq_node;
                __entry->sq_port = sq_port;
        ),
index 72b3ba93b0a5ae856431b8708fc2da5c40728cf4..c58481a5d9556c7c9ae5e679e715030f371bd944 100644 (file)
@@ -23,7 +23,7 @@ DECLARE_EVENT_CLASS(regulator_basic,
        ),
 
        TP_fast_assign(
-               __assign_str(name, name);
+               __assign_str(name);
        ),
 
        TP_printk("name=%s", __get_str(name))
@@ -119,7 +119,7 @@ DECLARE_EVENT_CLASS(regulator_range,
        ),
 
        TP_fast_assign(
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->min  = min;
                __entry->max  = max;
        ),
@@ -152,7 +152,7 @@ DECLARE_EVENT_CLASS(regulator_value,
        ),
 
        TP_fast_assign(
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->val  = val;
        ),
 
index f50fcafc69de20b8b20a53a45f29b23f4259a65e..7f0c1ceae726b8621def14fc0cc1bf693046616e 100644 (file)
@@ -154,7 +154,7 @@ DECLARE_EVENT_CLASS(rpcgss_ctx_class,
        TP_fast_assign(
                __entry->cred = gc;
                __entry->service = gc->gc_service;
-               __assign_str(principal, gc->gc_principal);
+               __assign_str(principal);
        ),
 
        TP_printk("cred=%p service=%s principal='%s'",
@@ -189,7 +189,7 @@ DECLARE_EVENT_CLASS(rpcgss_svc_gssapi_class,
        TP_fast_assign(
                __entry->xid = __be32_to_cpu(rqstp->rq_xid);
                __entry->maj_stat = maj_stat;
-               __assign_str(addr, rqstp->rq_xprt->xpt_remotebuf);
+               __assign_str(addr);
        ),
 
        TP_printk("addr=%s xid=0x%08x maj_stat=%s",
@@ -225,7 +225,7 @@ TRACE_EVENT(rpcgss_svc_wrap_failed,
 
        TP_fast_assign(
                __entry->xid = be32_to_cpu(rqstp->rq_xid);
-               __assign_str(addr, rqstp->rq_xprt->xpt_remotebuf);
+               __assign_str(addr);
        ),
 
        TP_printk("addr=%s xid=0x%08x", __get_str(addr), __entry->xid)
@@ -245,7 +245,7 @@ TRACE_EVENT(rpcgss_svc_unwrap_failed,
 
        TP_fast_assign(
                __entry->xid = be32_to_cpu(rqstp->rq_xid);
-               __assign_str(addr, rqstp->rq_xprt->xpt_remotebuf);
+               __assign_str(addr);
        ),
 
        TP_printk("addr=%s xid=0x%08x", __get_str(addr), __entry->xid)
@@ -271,7 +271,7 @@ TRACE_EVENT(rpcgss_svc_seqno_bad,
                __entry->expected = expected;
                __entry->received = received;
                __entry->xid = __be32_to_cpu(rqstp->rq_xid);
-               __assign_str(addr, rqstp->rq_xprt->xpt_remotebuf);
+               __assign_str(addr);
        ),
 
        TP_printk("addr=%s xid=0x%08x expected seqno %u, received seqno %u",
@@ -299,7 +299,7 @@ TRACE_EVENT(rpcgss_svc_accept_upcall,
                __entry->minor_status = minor_status;
                __entry->major_status = major_status;
                __entry->xid = be32_to_cpu(rqstp->rq_xid);
-               __assign_str(addr, rqstp->rq_xprt->xpt_remotebuf);
+               __assign_str(addr);
        ),
 
        TP_printk("addr=%s xid=0x%08x major_status=%s (0x%08lx) minor_status=%u",
@@ -327,7 +327,7 @@ TRACE_EVENT(rpcgss_svc_authenticate,
        TP_fast_assign(
                __entry->xid = be32_to_cpu(rqstp->rq_xid);
                __entry->seqno = gc->gc_seq;
-               __assign_str(addr, rqstp->rq_xprt->xpt_remotebuf);
+               __assign_str(addr);
        ),
 
        TP_printk("addr=%s xid=0x%08x seqno=%u", __get_str(addr),
@@ -563,7 +563,7 @@ TRACE_EVENT(rpcgss_upcall_msg,
        ),
 
        TP_fast_assign(
-               __assign_str(msg, buf);
+               __assign_str(msg);
        ),
 
        TP_printk("msg='%s'", __get_str(msg))
@@ -618,7 +618,7 @@ TRACE_EVENT(rpcgss_context,
                __entry->timeout = timeout;
                __entry->window_size = window_size;
                __entry->len = len;
-               __assign_str(acceptor, data);
+               __assign_str(acceptor);
        ),
 
        TP_printk("win_size=%u expiry=%lu now=%lu timeout=%u acceptor=%.*s",
@@ -677,7 +677,7 @@ TRACE_EVENT(rpcgss_oid_to_mech,
        ),
 
        TP_fast_assign(
-               __assign_str(oid, oid);
+               __assign_str(oid);
        ),
 
        TP_printk("mech for oid %s was not found", __get_str(oid))
index 027ac3ab457de0dde434df39ac0f1c4d2fc70b3b..14392652273ad5f23c55a06c6896cf8ae2bb59f1 100644 (file)
@@ -304,8 +304,8 @@ DECLARE_EVENT_CLASS(xprtrdma_reply_class,
                __entry->xid = be32_to_cpu(rep->rr_xid);
                __entry->version = be32_to_cpu(rep->rr_vers);
                __entry->proc = be32_to_cpu(rep->rr_proc);
-               __assign_str(addr, rpcrdma_addrstr(rep->rr_rxprt));
-               __assign_str(port, rpcrdma_portstr(rep->rr_rxprt));
+               __assign_str(addr);
+               __assign_str(port);
        ),
 
        TP_printk("peer=[%s]:%s xid=0x%08x version=%u proc=%u",
@@ -335,8 +335,8 @@ DECLARE_EVENT_CLASS(xprtrdma_rxprt,
        ),
 
        TP_fast_assign(
-               __assign_str(addr, rpcrdma_addrstr(r_xprt));
-               __assign_str(port, rpcrdma_portstr(r_xprt));
+               __assign_str(addr);
+               __assign_str(port);
        ),
 
        TP_printk("peer=[%s]:%s",
@@ -369,8 +369,8 @@ DECLARE_EVENT_CLASS(xprtrdma_connect_class,
        TP_fast_assign(
                __entry->rc = rc;
                __entry->connect_status = r_xprt->rx_ep->re_connect_status;
-               __assign_str(addr, rpcrdma_addrstr(r_xprt));
-               __assign_str(port, rpcrdma_portstr(r_xprt));
+               __assign_str(addr);
+               __assign_str(port);
        ),
 
        TP_printk("peer=[%s]:%s rc=%d connection status=%d",
@@ -608,8 +608,8 @@ DECLARE_EVENT_CLASS(xprtrdma_callback_class,
 
        TP_fast_assign(
                __entry->xid = be32_to_cpu(rqst->rq_xid);
-               __assign_str(addr, rpcrdma_addrstr(r_xprt));
-               __assign_str(port, rpcrdma_portstr(r_xprt));
+               __assign_str(addr);
+               __assign_str(port);
        ),
 
        TP_printk("peer=[%s]:%s xid=0x%08x",
@@ -687,8 +687,8 @@ TRACE_EVENT(xprtrdma_op_connect,
 
        TP_fast_assign(
                __entry->delay = delay;
-               __assign_str(addr, rpcrdma_addrstr(r_xprt));
-               __assign_str(port, rpcrdma_portstr(r_xprt));
+               __assign_str(addr);
+               __assign_str(port);
        ),
 
        TP_printk("peer=[%s]:%s delay=%lu",
@@ -716,8 +716,8 @@ TRACE_EVENT(xprtrdma_op_set_cto,
        TP_fast_assign(
                __entry->connect = connect;
                __entry->reconnect = reconnect;
-               __assign_str(addr, rpcrdma_addrstr(r_xprt));
-               __assign_str(port, rpcrdma_portstr(r_xprt));
+               __assign_str(addr);
+               __assign_str(port);
        ),
 
        TP_printk("peer=[%s]:%s connect=%lu reconnect=%lu",
@@ -746,8 +746,8 @@ TRACE_EVENT(xprtrdma_createmrs,
 
        TP_fast_assign(
                __entry->count = count;
-               __assign_str(addr, rpcrdma_addrstr(r_xprt));
-               __assign_str(port, rpcrdma_portstr(r_xprt));
+               __assign_str(addr);
+               __assign_str(port);
        ),
 
        TP_printk("peer=[%s]:%s created %u MRs",
@@ -775,8 +775,8 @@ TRACE_EVENT(xprtrdma_nomrs_err,
 
                __entry->task_id = rqst->rq_task->tk_pid;
                __entry->client_id = rqst->rq_task->tk_client->cl_clid;
-               __assign_str(addr, rpcrdma_addrstr(r_xprt));
-               __assign_str(port, rpcrdma_portstr(r_xprt));
+               __assign_str(addr);
+               __assign_str(port);
        ),
 
        TP_printk(SUNRPC_TRACE_TASK_SPECIFIER " peer=[%s]:%s",
@@ -1001,8 +1001,8 @@ TRACE_EVENT(xprtrdma_post_recvs,
                __entry->cq_id = ep->re_attr.recv_cq->res.id;
                __entry->count = count;
                __entry->posted = ep->re_receive_count;
-               __assign_str(addr, rpcrdma_addrstr(r_xprt));
-               __assign_str(port, rpcrdma_portstr(r_xprt));
+               __assign_str(addr);
+               __assign_str(port);
        ),
 
        TP_printk("peer=[%s]:%s cq.id=%d %u new recvs, %d active",
@@ -1031,8 +1031,8 @@ TRACE_EVENT(xprtrdma_post_recvs_err,
 
                __entry->cq_id = ep->re_attr.recv_cq->res.id;
                __entry->status = status;
-               __assign_str(addr, rpcrdma_addrstr(r_xprt));
-               __assign_str(port, rpcrdma_portstr(r_xprt));
+               __assign_str(addr);
+               __assign_str(port);
        ),
 
        TP_printk("peer=[%s]:%s cq.id=%d rc=%d",
@@ -1445,8 +1445,8 @@ TRACE_EVENT(xprtrdma_cb_setup,
 
        TP_fast_assign(
                __entry->reqs = reqs;
-               __assign_str(addr, rpcrdma_addrstr(r_xprt));
-               __assign_str(port, rpcrdma_portstr(r_xprt));
+               __assign_str(addr);
+               __assign_str(port);
        ),
 
        TP_printk("peer=[%s]:%s %u reqs",
@@ -1476,7 +1476,7 @@ DECLARE_EVENT_CLASS(svcrdma_accept_class,
 
        TP_fast_assign(
                __entry->status = status;
-               __assign_str(addr, rdma->sc_xprt.xpt_remotebuf);
+               __assign_str(addr);
        ),
 
        TP_printk("addr=%s status=%ld",
@@ -1962,7 +1962,7 @@ TRACE_EVENT(svcrdma_send_err,
        TP_fast_assign(
                __entry->status = status;
                __entry->xid = __be32_to_cpu(rqst->rq_xid);
-               __assign_str(addr, rqst->rq_xprt->xpt_remotebuf);
+               __assign_str(addr);
        ),
 
        TP_printk("addr=%s xid=0x%08x status=%d", __get_str(addr),
@@ -2025,7 +2025,7 @@ TRACE_EVENT(svcrdma_rq_post_err,
 
        TP_fast_assign(
                __entry->status = status;
-               __assign_str(addr, rdma->sc_xprt.xpt_remotebuf);
+               __assign_str(addr);
        ),
 
        TP_printk("addr=%s status=%d",
@@ -2138,7 +2138,7 @@ TRACE_EVENT(svcrdma_qp_error,
 
        TP_fast_assign(
                __entry->event = event->event;
-               __assign_str(device, event->device->name);
+               __assign_str(device);
                snprintf(__entry->addr, sizeof(__entry->addr) - 1,
                         "%pISpc", sap);
        ),
index bd120e23ce125dbc5e3eb6e8c12340d62d6b90ca..2b0b4b6ef862d87dfc0acf64e633ae6bfd150e63 100644 (file)
@@ -33,7 +33,7 @@ DECLARE_EVENT_CLASS(rpm_internal,
        ),
 
        TP_fast_assign(
-               __assign_str(name, dev_name(dev));
+               __assign_str(name);
                __entry->flags = flags;
                __entry->usage_count = atomic_read(
                        &dev->power.usage_count);
@@ -92,7 +92,7 @@ TRACE_EVENT(rpm_return_int,
        ),
 
        TP_fast_assign(
-               __assign_str(name, dev_name(dev));
+               __assign_str(name);
                __entry->ip = ip;
                __entry->ret = ret;
        ),
@@ -135,7 +135,7 @@ TRACE_EVENT(rpm_status,
        ),
 
        TP_fast_assign(
-               __assign_str(name, dev_name(dev));
+               __assign_str(name);
                __entry->status = status;
        ),
 
index 68973f650c26213f02acb36d187bb3cf5d833ac4..6df2b4685b08d1d6958033da55662f32b1e8c45b 100644 (file)
@@ -411,7 +411,7 @@ TRACE_EVENT(sched_process_exec,
        ),
 
        TP_fast_assign(
-               __assign_str(filename, bprm->filename);
+               __assign_str(filename);
                __entry->pid            = p->pid;
                __entry->old_pid        = old_pid;
        ),
@@ -445,10 +445,10 @@ TRACE_EVENT(sched_prepare_exec,
        ),
 
        TP_fast_assign(
-               __assign_str(interp, bprm->interp);
-               __assign_str(filename, bprm->filename);
+               __assign_str(interp);
+               __assign_str(filename);
                __entry->pid = task->pid;
-               __assign_str(comm, task->comm);
+               __assign_str(comm);
        ),
 
        TP_printk("interp=%s filename=%s pid=%d comm=%s",
index cd8e6844cca2e99bff0fbc85079957b0020a4880..3061423c0667013130758eba6a14ccce110908aa 100644 (file)
@@ -23,7 +23,7 @@ DECLARE_EVENT_CLASS(sof_widget_template,
                __field(int, use_count)
        ),
        TP_fast_assign(
-               __assign_str(name, swidget->widget->name);
+               __assign_str(name);
                __entry->use_count = swidget->use_count;
        ),
        TP_printk("name=%s use_count=%d", __get_str(name), __entry->use_count)
@@ -49,7 +49,7 @@ TRACE_EVENT(sof_ipc3_period_elapsed_position,
                __field(u64, wallclock)
        ),
        TP_fast_assign(
-               __assign_str(device_name, dev_name(sdev->dev));
+               __assign_str(device_name);
                __entry->host_posn = posn->host_posn;
                __entry->dai_posn = posn->dai_posn;
                __entry->wallclock = posn->wallclock;
@@ -75,7 +75,7 @@ TRACE_EVENT(sof_pcm_pointer_position,
                __field(unsigned long, dai_posn)
        ),
        TP_fast_assign(
-               __assign_str(device_name, dev_name(sdev->dev));
+               __assign_str(device_name);
                __entry->pcm_id = le32_to_cpu(spcm->pcm.pcm_id);
                __entry->stream = substream->stream;
                __entry->dma_posn = dma_posn;
@@ -93,7 +93,7 @@ TRACE_EVENT(sof_stream_position_ipc_rx,
                __string(device_name, dev_name(dev))
        ),
        TP_fast_assign(
-               __assign_str(device_name, dev_name(dev));
+               __assign_str(device_name);
        ),
        TP_printk("device_name=%s", __get_str(device_name))
 );
@@ -107,8 +107,8 @@ TRACE_EVENT(sof_ipc4_fw_config,
                __field(u32, value)
        ),
        TP_fast_assign(
-               __assign_str(device_name, dev_name(sdev->dev));
-               __assign_str(key, key);
+               __assign_str(device_name);
+               __assign_str(key);
                __entry->value = value;
        ),
        TP_printk("device_name=%s key=%s value=%d",
index 4cac5fef99a270bb9692c89fab5023331353d037..9e579e57b15cf845b2c1f63a755466f73b6393ae 100644 (file)
@@ -22,8 +22,8 @@ TRACE_EVENT(sof_intel_hda_irq,
                __string(source, source)
        ),
        TP_fast_assign(
-               __assign_str(device_name, dev_name(sdev->dev));
-               __assign_str(source, source);
+               __assign_str(device_name);
+               __assign_str(source);
        ),
        TP_printk("device_name=%s source=%s",
                  __get_str(device_name), __get_str(source))
@@ -38,7 +38,7 @@ DECLARE_EVENT_CLASS(sof_intel_ipc_firmware_template,
                __field(u32, msg_ext)
        ),
        TP_fast_assign(
-               __assign_str(device_name, dev_name(sdev->dev));
+               __assign_str(device_name);
                __entry->msg = msg;
                __entry->msg_ext = msg_ext;
        ),
@@ -64,7 +64,7 @@ TRACE_EVENT(sof_intel_D0I3C_updated,
                __field(u8, reg)
        ),
        TP_fast_assign(
-               __assign_str(device_name, dev_name(sdev->dev));
+               __assign_str(device_name);
                __entry->reg = reg;
        ),
        TP_printk("device_name=%s register=%#x",
@@ -79,7 +79,7 @@ TRACE_EVENT(sof_intel_hda_irq_ipc_check,
                __field(u32, irq_status)
        ),
        TP_fast_assign(
-               __assign_str(device_name, dev_name(sdev->dev));
+               __assign_str(device_name);
                __entry->irq_status = irq_status;
        ),
        TP_printk("device_name=%s irq_status=%#x",
@@ -100,7 +100,7 @@ TRACE_EVENT(sof_intel_hda_dsp_pcm,
                __field(unsigned long, pos)
        ),
        TP_fast_assign(
-               __assign_str(device_name, dev_name(sdev->dev));
+               __assign_str(device_name);
                __entry->hstream_index = hstream->index;
                __entry->substream = substream->stream;
                __entry->pos = pos;
@@ -119,7 +119,7 @@ TRACE_EVENT(sof_intel_hda_dsp_stream_status,
                __field(u32, status)
        ),
        TP_fast_assign(
-               __assign_str(device_name, dev_name(dev));
+               __assign_str(device_name);
                __entry->stream = s->index;
                __entry->status = status;
        ),
@@ -135,7 +135,7 @@ TRACE_EVENT(sof_intel_hda_dsp_check_stream_irq,
                __field(u32, status)
        ),
        TP_fast_assign(
-               __assign_str(device_name, dev_name(sdev->dev));
+               __assign_str(device_name);
                __entry->status = status;
        ),
        TP_printk("device_name=%s status=%#x",
index ac05ed06a0714eff56e5d01e612917286369f020..5e8495216689549f1c0bb377911eac4a7bb7b1a8 100644 (file)
@@ -188,10 +188,10 @@ TRACE_EVENT(rpc_clnt_new,
                __entry->client_id = clnt->cl_clid;
                __entry->xprtsec = args->xprtsec.policy;
                __entry->flags = args->flags;
-               __assign_str(program, clnt->cl_program->name);
-               __assign_str(server, xprt->servername);
-               __assign_str(addr, xprt->address_strings[RPC_DISPLAY_ADDR]);
-               __assign_str(port, xprt->address_strings[RPC_DISPLAY_PORT]);
+               __assign_str(program);
+               __assign_str(server);
+               __assign_str(addr);
+               __assign_str(port);
        ),
 
        TP_printk("client=" SUNRPC_TRACE_CLID_SPECIFIER " peer=[%s]:%s"
@@ -220,8 +220,8 @@ TRACE_EVENT(rpc_clnt_new_err,
 
        TP_fast_assign(
                __entry->error = error;
-               __assign_str(program, program);
-               __assign_str(server, server);
+               __assign_str(program);
+               __assign_str(server);
        ),
 
        TP_printk("program=%s server=%s error=%d",
@@ -325,8 +325,8 @@ TRACE_EVENT(rpc_request,
                __entry->client_id = task->tk_client->cl_clid;
                __entry->version = task->tk_client->cl_vers;
                __entry->async = RPC_IS_ASYNC(task);
-               __assign_str(progname, task->tk_client->cl_program->name);
-               __assign_str(procname, rpc_proc_name(task));
+               __assign_str(progname);
+               __assign_str(procname);
        ),
 
        TP_printk(SUNRPC_TRACE_TASK_SPECIFIER " %sv%d %s (%ssync)",
@@ -439,7 +439,7 @@ DECLARE_EVENT_CLASS(rpc_task_queued,
                __entry->runstate = task->tk_runstate;
                __entry->status = task->tk_status;
                __entry->flags = task->tk_flags;
-               __assign_str(q_name, rpc_qname(q));
+               __assign_str(q_name);
                ),
 
        TP_printk(SUNRPC_TRACE_TASK_SPECIFIER
@@ -515,10 +515,10 @@ DECLARE_EVENT_CLASS(rpc_reply_event,
                __entry->task_id = task->tk_pid;
                __entry->client_id = task->tk_client->cl_clid;
                __entry->xid = be32_to_cpu(task->tk_rqstp->rq_xid);
-               __assign_str(progname, task->tk_client->cl_program->name);
+               __assign_str(progname);
                __entry->version = task->tk_client->cl_vers;
-               __assign_str(procname, rpc_proc_name(task));
-               __assign_str(servername, task->tk_xprt->servername);
+               __assign_str(procname);
+               __assign_str(servername);
        ),
 
        TP_printk(SUNRPC_TRACE_TASK_SPECIFIER
@@ -647,8 +647,8 @@ TRACE_EVENT(rpc_stats_latency,
                __entry->task_id = task->tk_pid;
                __entry->xid = be32_to_cpu(task->tk_rqstp->rq_xid);
                __entry->version = task->tk_client->cl_vers;
-               __assign_str(progname, task->tk_client->cl_program->name);
-               __assign_str(procname, rpc_proc_name(task));
+               __assign_str(progname);
+               __assign_str(procname);
                __entry->backlog = ktime_to_us(backlog);
                __entry->rtt = ktime_to_us(rtt);
                __entry->execute = ktime_to_us(execute);
@@ -697,16 +697,15 @@ TRACE_EVENT(rpc_xdr_overflow,
 
                        __entry->task_id = task->tk_pid;
                        __entry->client_id = task->tk_client->cl_clid;
-                       __assign_str(progname,
-                                    task->tk_client->cl_program->name);
+                       __assign_str(progname);
                        __entry->version = task->tk_client->cl_vers;
-                       __assign_str(procedure, task->tk_msg.rpc_proc->p_name);
+                       __assign_str(procedure);
                } else {
                        __entry->task_id = -1;
                        __entry->client_id = -1;
-                       __assign_str(progname, "unknown");
+                       __assign_str(progname);
                        __entry->version = 0;
-                       __assign_str(procedure, "unknown");
+                       __assign_str(procedure);
                }
                __entry->requested = requested;
                __entry->end = xdr->end;
@@ -763,10 +762,9 @@ TRACE_EVENT(rpc_xdr_alignment,
 
                __entry->task_id = task->tk_pid;
                __entry->client_id = task->tk_client->cl_clid;
-               __assign_str(progname,
-                            task->tk_client->cl_program->name);
+               __assign_str(progname);
                __entry->version = task->tk_client->cl_vers;
-               __assign_str(procedure, task->tk_msg.rpc_proc->p_name);
+               __assign_str(procedure);
 
                __entry->offset = offset;
                __entry->copied = copied;
@@ -1018,8 +1016,8 @@ DECLARE_EVENT_CLASS(rpc_xprt_lifetime_class,
 
        TP_fast_assign(
                __entry->state = xprt->state;
-               __assign_str(addr, xprt->address_strings[RPC_DISPLAY_ADDR]);
-               __assign_str(port, xprt->address_strings[RPC_DISPLAY_PORT]);
+               __assign_str(addr);
+               __assign_str(port);
        ),
 
        TP_printk("peer=[%s]:%s state=%s",
@@ -1061,8 +1059,8 @@ DECLARE_EVENT_CLASS(rpc_xprt_event,
        TP_fast_assign(
                __entry->xid = be32_to_cpu(xid);
                __entry->status = status;
-               __assign_str(addr, xprt->address_strings[RPC_DISPLAY_ADDR]);
-               __assign_str(port, xprt->address_strings[RPC_DISPLAY_PORT]);
+               __assign_str(addr);
+               __assign_str(port);
        ),
 
        TP_printk("peer=[%s]:%s xid=0x%08x status=%d", __get_str(addr),
@@ -1140,10 +1138,9 @@ TRACE_EVENT(xprt_retransmit,
                __entry->xid = be32_to_cpu(rqst->rq_xid);
                __entry->ntrans = rqst->rq_ntrans;
                __entry->timeout = task->tk_timeout;
-               __assign_str(progname,
-                            task->tk_client->cl_program->name);
+               __assign_str(progname);
                __entry->version = task->tk_client->cl_vers;
-               __assign_str(procname, rpc_proc_name(task));
+               __assign_str(procname);
        ),
 
        TP_printk(SUNRPC_TRACE_TASK_SPECIFIER
@@ -1167,8 +1164,8 @@ TRACE_EVENT(xprt_ping,
 
        TP_fast_assign(
                __entry->status = status;
-               __assign_str(addr, xprt->address_strings[RPC_DISPLAY_ADDR]);
-               __assign_str(port, xprt->address_strings[RPC_DISPLAY_PORT]);
+               __assign_str(addr);
+               __assign_str(port);
        ),
 
        TP_printk("peer=[%s]:%s status=%d",
@@ -1315,8 +1312,8 @@ TRACE_EVENT(xs_data_ready,
        ),
 
        TP_fast_assign(
-               __assign_str(addr, xprt->address_strings[RPC_DISPLAY_ADDR]);
-               __assign_str(port, xprt->address_strings[RPC_DISPLAY_PORT]);
+               __assign_str(addr);
+               __assign_str(port);
        ),
 
        TP_printk("peer=[%s]:%s", __get_str(addr), __get_str(port))
@@ -1339,10 +1336,8 @@ TRACE_EVENT(xs_stream_read_data,
        TP_fast_assign(
                __entry->err = err;
                __entry->total = total;
-               __assign_str(addr, xprt ?
-                       xprt->address_strings[RPC_DISPLAY_ADDR] : EVENT_NULL_STR);
-               __assign_str(port, xprt ?
-                       xprt->address_strings[RPC_DISPLAY_PORT] : EVENT_NULL_STR);
+               __assign_str(addr);
+               __assign_str(port);
        ),
 
        TP_printk("peer=[%s]:%s err=%zd total=%zu", __get_str(addr),
@@ -1364,8 +1359,8 @@ TRACE_EVENT(xs_stream_read_request,
        ),
 
        TP_fast_assign(
-               __assign_str(addr, xs->xprt.address_strings[RPC_DISPLAY_ADDR]);
-               __assign_str(port, xs->xprt.address_strings[RPC_DISPLAY_PORT]);
+               __assign_str(addr);
+               __assign_str(port);
                __entry->xid = be32_to_cpu(xs->recv.xid);
                __entry->copied = xs->recv.copied;
                __entry->reclen = xs->recv.len;
@@ -1403,7 +1398,7 @@ TRACE_EVENT(rpcb_getport,
                __entry->version = clnt->cl_vers;
                __entry->protocol = task->tk_xprt->prot;
                __entry->bind_version = bind_version;
-               __assign_str(servername, task->tk_xprt->servername);
+               __assign_str(servername);
        ),
 
        TP_printk(SUNRPC_TRACE_TASK_SPECIFIER
@@ -1493,8 +1488,8 @@ TRACE_EVENT(rpcb_register,
        TP_fast_assign(
                __entry->program = program;
                __entry->version = version;
-               __assign_str(addr, addr);
-               __assign_str(netid, netid);
+               __assign_str(addr);
+               __assign_str(netid);
        ),
 
        TP_printk("program=%u version=%u addr=%s netid=%s",
@@ -1521,7 +1516,7 @@ TRACE_EVENT(rpcb_unregister,
        TP_fast_assign(
                __entry->program = program;
                __entry->version = version;
-               __assign_str(netid, netid);
+               __assign_str(netid);
        ),
 
        TP_printk("program=%u version=%u netid=%s",
@@ -1551,8 +1546,8 @@ DECLARE_EVENT_CLASS(rpc_tls_class,
        TP_fast_assign(
                __entry->requested_policy = clnt->cl_xprtsec.policy;
                __entry->version = clnt->cl_vers;
-               __assign_str(servername, xprt->servername);
-               __assign_str(progname, clnt->cl_program->name)
+               __assign_str(servername);
+               __assign_str(progname);
        ),
 
        TP_printk("server=%s %sv%u requested_policy=%s",
@@ -1794,10 +1789,9 @@ TRACE_EVENT(svc_process,
                __entry->xid = be32_to_cpu(rqst->rq_xid);
                __entry->vers = rqst->rq_vers;
                __entry->proc = rqst->rq_proc;
-               __assign_str(service, name);
-               __assign_str(procedure, svc_proc_name(rqst));
-               __assign_str(addr, rqst->rq_xprt ?
-                            rqst->rq_xprt->xpt_remotebuf : EVENT_NULL_STR);
+               __assign_str(service);
+               __assign_str(procedure);
+               __assign_str(addr);
        ),
 
        TP_printk("addr=%s xid=0x%08x service=%s vers=%u proc=%s",
@@ -1915,7 +1909,7 @@ TRACE_EVENT(svc_stats_latency,
 
                __entry->execute = ktime_to_us(ktime_sub(ktime_get(),
                                                         rqst->rq_stime));
-               __assign_str(procedure, svc_proc_name(rqst));
+               __assign_str(procedure);
        ),
 
        TP_printk(SVC_RQST_ENDPOINT_FORMAT " proc=%s execute-us=%lu",
@@ -1980,8 +1974,8 @@ TRACE_EVENT(svc_xprt_create_err,
 
        TP_fast_assign(
                __entry->error = PTR_ERR(xprt);
-               __assign_str(program, program);
-               __assign_str(protocol, protocol);
+               __assign_str(program);
+               __assign_str(protocol);
                __assign_sockaddr(addr, sap, salen);
        ),
 
@@ -2120,8 +2114,8 @@ TRACE_EVENT(svc_xprt_accept,
        TP_fast_assign(
                SVC_XPRT_ENDPOINT_ASSIGNMENTS(xprt);
 
-               __assign_str(protocol, xprt->xpt_class->xcl_name);
-               __assign_str(service, service);
+               __assign_str(protocol);
+               __assign_str(service);
        ),
 
        TP_printk(SVC_XPRT_ENDPOINT_FORMAT " protocol=%s service=%s",
@@ -2260,7 +2254,7 @@ TRACE_EVENT(svcsock_marker,
        TP_fast_assign(
                __entry->length = be32_to_cpu(marker) & RPC_FRAGMENT_SIZE_MASK;
                __entry->last = be32_to_cpu(marker) & RPC_LAST_STREAM_FRAGMENT;
-               __assign_str(addr, xprt->xpt_remotebuf);
+               __assign_str(addr);
        ),
 
        TP_printk("addr=%s length=%u%s", __get_str(addr),
@@ -2284,7 +2278,7 @@ DECLARE_EVENT_CLASS(svcsock_class,
        TP_fast_assign(
                __entry->result = result;
                __entry->flags = xprt->xpt_flags;
-               __assign_str(addr, xprt->xpt_remotebuf);
+               __assign_str(addr);
        ),
 
        TP_printk("addr=%s result=%zd flags=%s", __get_str(addr),
@@ -2330,7 +2324,7 @@ TRACE_EVENT(svcsock_tcp_recv_short,
                __entry->expected = expected;
                __entry->received = received;
                __entry->flags = xprt->xpt_flags;
-               __assign_str(addr, xprt->xpt_remotebuf);
+               __assign_str(addr);
        ),
 
        TP_printk("addr=%s flags=%s expected=%u received=%u",
@@ -2358,7 +2352,7 @@ TRACE_EVENT(svcsock_tcp_state,
                __entry->socket_state = socket->state;
                __entry->sock_state = socket->sk->sk_state;
                __entry->flags = xprt->xpt_flags;
-               __assign_str(addr, xprt->xpt_remotebuf);
+               __assign_str(addr);
        ),
 
        TP_printk("addr=%s state=%s sk_state=%s flags=%s", __get_str(addr),
@@ -2385,7 +2379,7 @@ DECLARE_EVENT_CLASS(svcsock_accept_class,
 
        TP_fast_assign(
                __entry->status = status;
-               __assign_str(service, service);
+               __assign_str(service);
                __entry->netns_ino = xprt->xpt_net->ns.inum;
        ),
 
@@ -2421,7 +2415,7 @@ DECLARE_EVENT_CLASS(cache_event,
 
        TP_fast_assign(
                __entry->h = h;
-               __assign_str(name, cd->name);
+               __assign_str(name);
        ),
 
        TP_printk("cache=%s entry=%p", __get_str(name), __entry->h)
@@ -2466,7 +2460,7 @@ DECLARE_EVENT_CLASS(register_class,
                __entry->protocol = protocol;
                __entry->port = port;
                __entry->error = error;
-               __assign_str(program, program);
+               __assign_str(program);
        ),
 
        TP_printk("program=%sv%u proto=%s port=%u family=%s error=%d",
@@ -2511,7 +2505,7 @@ TRACE_EVENT(svc_unregister,
        TP_fast_assign(
                __entry->version = version;
                __entry->error = error;
-               __assign_str(program, program);
+               __assign_str(program);
        ),
 
        TP_printk("program=%sv%u error=%d",
index da05c9ebd224a85a7cdc7533680211bfcd91746f..3b6ddb136e4ee27bd6f4801762194dc2a61cf6c9 100644 (file)
@@ -20,7 +20,7 @@ TRACE_EVENT(swiotlb_bounced,
        ),
 
        TP_fast_assign(
-               __assign_str(dev_name, dev_name(dev));
+               __assign_str(dev_name);
                __entry->dma_mask = (dev->dma_mask ? *dev->dma_mask : 0);
                __entry->dev_addr = dev_addr;
                __entry->size = size;
index 67fad2677ed55d7a8a352c14de3add897077b040..a13cbf2b340505744bbbd4aa731c294fada96b6a 100644 (file)
@@ -154,7 +154,7 @@ TRACE_EVENT(target_sequencer_start,
                __entry->task_attribute = cmd->sam_task_attr;
                __entry->control        = scsi_command_control(cmd->t_task_cdb);
                memcpy(__entry->cdb, cmd->t_task_cdb, TCM_MAX_COMMAND_SIZE);
-               __assign_str(initiator, cmd->se_sess->se_node_acl->initiatorname);
+               __assign_str(initiator);
        ),
 
        TP_printk("%s -> LUN %03u tag %#llx %s data_length %6u  CDB %s  (TA:%s C:%02x)",
@@ -198,7 +198,7 @@ TRACE_EVENT(target_cmd_complete,
                        min(18, ((u8 *) cmd->sense_buffer)[SPC_ADD_SENSE_LEN_OFFSET] + 8) : 0;
                memcpy(__entry->cdb, cmd->t_task_cdb, TCM_MAX_COMMAND_SIZE);
                memcpy(__entry->sense_data, cmd->sense_buffer, __entry->sense_length);
-               __assign_str(initiator, cmd->se_sess->se_node_acl->initiatorname);
+               __assign_str(initiator);
        ),
 
        TP_printk("%s <- LUN %03u tag %#llx status %s (sense len %d%s%s)  %s data_length %6u  CDB %s  (TA:%s C:%02x)",
index 971cd02d2dafe760107880c72f16db44ba733863..6d9f5075baa3e4a91ec45d5351aaa634b5bd295e 100644 (file)
@@ -16,7 +16,7 @@ TRACE_EVENT(tegra_dma_tx_status,
                __field(__u32,  residue)
        ),
        TP_fast_assign(
-               __assign_str(chan, dev_name(&dc->dev->device));
+               __assign_str(chan);
                __entry->cookie = cookie;
                __entry->residue = state ? state->residue : (u32)-1;
        ),
@@ -33,7 +33,7 @@ TRACE_EVENT(tegra_dma_complete_cb,
                __field(void *, ptr)
                ),
        TP_fast_assign(
-               __assign_str(chan, dev_name(&dc->dev->device));
+               __assign_str(chan);
                __entry->count = count;
                __entry->ptr = ptr;
                ),
@@ -49,7 +49,7 @@ TRACE_EVENT(tegra_dma_isr,
                __field(int,    irq)
        ),
        TP_fast_assign(
-               __assign_str(chan, dev_name(&dc->dev->device));
+               __assign_str(chan);
                __entry->irq = irq;
        ),
        TP_printk("%s: irq %d\n",  __get_str(chan), __entry->irq)
index b930669bd1f0518b541e982746ee665aac392182..c4e209fbdfbb355ccb459161e4ddf32afb284f41 100644 (file)
@@ -92,7 +92,7 @@ TRACE_EVENT(ufshcd_clk_gating,
        ),
 
        TP_fast_assign(
-               __assign_str(dev_name, dev_name);
+               __assign_str(dev_name);
                __entry->state = state;
        ),
 
@@ -117,9 +117,9 @@ TRACE_EVENT(ufshcd_clk_scaling,
        ),
 
        TP_fast_assign(
-               __assign_str(dev_name, dev_name);
-               __assign_str(state, state);
-               __assign_str(clk, clk);
+               __assign_str(dev_name);
+               __assign_str(state);
+               __assign_str(clk);
                __entry->prev_state = prev_state;
                __entry->curr_state = curr_state;
        ),
@@ -141,8 +141,8 @@ TRACE_EVENT(ufshcd_auto_bkops_state,
        ),
 
        TP_fast_assign(
-               __assign_str(dev_name, dev_name);
-               __assign_str(state, state);
+               __assign_str(dev_name);
+               __assign_str(state);
        ),
 
        TP_printk("%s: auto bkops - %s",
@@ -163,8 +163,8 @@ DECLARE_EVENT_CLASS(ufshcd_profiling_template,
        ),
 
        TP_fast_assign(
-               __assign_str(dev_name, dev_name);
-               __assign_str(profile_info, profile_info);
+               __assign_str(dev_name);
+               __assign_str(profile_info);
                __entry->time_us = time_us;
                __entry->err = err;
        ),
@@ -206,7 +206,7 @@ DECLARE_EVENT_CLASS(ufshcd_template,
        TP_fast_assign(
                __entry->usecs = usecs;
                __entry->err = err;
-               __assign_str(dev_name, dev_name);
+               __assign_str(dev_name);
                __entry->dev_state = dev_state;
                __entry->link_state = link_state;
        ),
@@ -326,7 +326,7 @@ TRACE_EVENT(ufshcd_uic_command,
        ),
 
        TP_fast_assign(
-               __assign_str(dev_name, dev_name);
+               __assign_str(dev_name);
                __entry->str_t = str_t;
                __entry->cmd = cmd;
                __entry->arg1 = arg1;
@@ -356,7 +356,7 @@ TRACE_EVENT(ufshcd_upiu,
        ),
 
        TP_fast_assign(
-               __assign_str(dev_name, dev_name);
+               __assign_str(dev_name);
                __entry->str_t = str_t;
                memcpy(__entry->hdr, hdr, sizeof(__entry->hdr));
                memcpy(__entry->tsf, tsf, sizeof(__entry->tsf));
@@ -384,7 +384,7 @@ TRACE_EVENT(ufshcd_exception_event,
        ),
 
        TP_fast_assign(
-               __assign_str(dev_name, dev_name);
+               __assign_str(dev_name);
                __entry->status = status;
        ),
 
index 6ef5b7254070314fd053ed789e8093453355bee7..b0de2bc9ed52fa25af65be6126144419b92f6287 100644 (file)
@@ -38,7 +38,7 @@ TRACE_EVENT(workqueue_queue_work,
        TP_fast_assign(
                __entry->work           = work;
                __entry->function       = work->func;
-               __assign_str(workqueue, pwq->wq->name);
+               __assign_str(workqueue);
                __entry->req_cpu        = req_cpu;
                __entry->cpu            = pwq->pool->cpu;
        ),
index 9adc2bdf2f94a5dd534a0a366cc46d30d48e1583..a7e5452b5d21502781027c1824c405c158c5449b 100644 (file)
@@ -416,7 +416,7 @@ TRACE_EVENT(bpf_xdp_link_attach_failed,
        ),
 
        TP_fast_assign(
-               __assign_str(msg, msg);
+               __assign_str(msg);
        ),
 
        TP_printk("errmsg=%s", __get_str(msg))
index 3690e677263f53f105e961bdbc9a52ac44579d67..1691676fd8581784285f79b5ef3c4064035b41a6 100644 (file)
 #define __vstring(item, fmt, ap) __dynamic_array(char, item, -1)
 
 #undef __assign_str
-#define __assign_str(dst, src)                                         \
+#define __assign_str(dst)                                              \
        do {                                                            \
                char *__str__ = __get_str(dst);                         \
                int __len__ = __get_dynamic_array_len(dst) - 1;         \
-               WARN_ON_ONCE(!(void *)(src) != !(void *)__data_offsets.dst##_ptr_); \
-               WARN_ON_ONCE((src) && strcmp((src), __data_offsets.dst##_ptr_)); \
                memcpy(__str__, __data_offsets.dst##_ptr_ ? :           \
                       EVENT_NULL_STR, __len__);                        \
                __str__[__len__] = '\0';                                \
index 9acbc11ac7bbcded039e4982e9d12cfbdb345f6d..c4075b56becc6ae16863c8c91828c97d14df53ff 100644 (file)
@@ -19,7 +19,7 @@ TRACE_EVENT(bpf_trace_printk,
        ),
 
        TP_fast_assign(
-               __assign_str(bpf_string, bpf_string);
+               __assign_str(bpf_string);
        ),
 
        TP_printk("%s", __get_str(bpf_string))
index 5dd52bc5cabb92b46a50f2bc5283d787cc62db2c..6b816cf1a953bba1b7d636ac42b62d93393ddced 100644 (file)
@@ -40,8 +40,8 @@ TRACE_EVENT(batadv_dbg,
            ),
 
            TP_fast_assign(
-                   __assign_str(device, bat_priv->soft_iface->name);
-                   __assign_str(driver, KBUILD_MODNAME);
+                   __assign_str(device);
+                   __assign_str(driver);
                    __assign_vstr(msg, vaf->fmt, vaf->va);
            ),
 
index 567f29a397072af917ab3940e764eefc0f516764..83f3e5f78491740fff992e91e999b30986c3c71b 100644 (file)
@@ -39,8 +39,8 @@ DECLARE_EVENT_CLASS(dsa_port_addr_op_hw,
        ),
 
        TP_fast_assign(
-               __assign_str(dev, dev_name(dp->ds->dev));
-               __assign_str(kind, dsa_port_kind(dp));
+               __assign_str(dev);
+               __assign_str(kind);
                __entry->port = dp->index;
                ether_addr_copy(__entry->addr, addr);
                __entry->vid = vid;
@@ -98,8 +98,8 @@ DECLARE_EVENT_CLASS(dsa_port_addr_op_refcount,
        ),
 
        TP_fast_assign(
-               __assign_str(dev, dev_name(dp->ds->dev));
-               __assign_str(kind, dsa_port_kind(dp));
+               __assign_str(dev);
+               __assign_str(kind);
                __entry->port = dp->index;
                ether_addr_copy(__entry->addr, addr);
                __entry->vid = vid;
@@ -157,8 +157,8 @@ DECLARE_EVENT_CLASS(dsa_port_addr_del_not_found,
        ),
 
        TP_fast_assign(
-               __assign_str(dev, dev_name(dp->ds->dev));
-               __assign_str(kind, dsa_port_kind(dp));
+               __assign_str(dev);
+               __assign_str(kind);
                __entry->port = dp->index;
                ether_addr_copy(__entry->addr, addr);
                __entry->vid = vid;
@@ -199,7 +199,7 @@ TRACE_EVENT(dsa_lag_fdb_add_hw,
        ),
 
        TP_fast_assign(
-               __assign_str(dev, lag_dev->name);
+               __assign_str(dev);
                ether_addr_copy(__entry->addr, addr);
                __entry->vid = vid;
                dsa_db_print(db, __entry->db_buf);
@@ -227,7 +227,7 @@ TRACE_EVENT(dsa_lag_fdb_add_bump,
        ),
 
        TP_fast_assign(
-               __assign_str(dev, lag_dev->name);
+               __assign_str(dev);
                ether_addr_copy(__entry->addr, addr);
                __entry->vid = vid;
                dsa_db_print(db, __entry->db_buf);
@@ -255,7 +255,7 @@ TRACE_EVENT(dsa_lag_fdb_del_hw,
        ),
 
        TP_fast_assign(
-               __assign_str(dev, lag_dev->name);
+               __assign_str(dev);
                ether_addr_copy(__entry->addr, addr);
                __entry->vid = vid;
                dsa_db_print(db, __entry->db_buf);
@@ -283,7 +283,7 @@ TRACE_EVENT(dsa_lag_fdb_del_drop,
        ),
 
        TP_fast_assign(
-               __assign_str(dev, lag_dev->name);
+               __assign_str(dev);
                ether_addr_copy(__entry->addr, addr);
                __entry->vid = vid;
                dsa_db_print(db, __entry->db_buf);
@@ -310,7 +310,7 @@ TRACE_EVENT(dsa_lag_fdb_del_not_found,
        ),
 
        TP_fast_assign(
-               __assign_str(dev, lag_dev->name);
+               __assign_str(dev);
                ether_addr_copy(__entry->addr, addr);
                __entry->vid = vid;
                dsa_db_print(db, __entry->db_buf);
@@ -338,8 +338,8 @@ DECLARE_EVENT_CLASS(dsa_vlan_op_hw,
        ),
 
        TP_fast_assign(
-               __assign_str(dev, dev_name(dp->ds->dev));
-               __assign_str(kind, dsa_port_kind(dp));
+               __assign_str(dev);
+               __assign_str(kind);
                __entry->port = dp->index;
                __entry->vid = vlan->vid;
                __entry->flags = vlan->flags;
@@ -383,8 +383,8 @@ DECLARE_EVENT_CLASS(dsa_vlan_op_refcount,
        ),
 
        TP_fast_assign(
-               __assign_str(dev, dev_name(dp->ds->dev));
-               __assign_str(kind, dsa_port_kind(dp));
+               __assign_str(dev);
+               __assign_str(kind);
                __entry->port = dp->index;
                __entry->vid = vlan->vid;
                __entry->flags = vlan->flags;
@@ -426,8 +426,8 @@ TRACE_EVENT(dsa_vlan_del_not_found,
        ),
 
        TP_fast_assign(
-               __assign_str(dev, dev_name(dp->ds->dev));
-               __assign_str(kind, dsa_port_kind(dp));
+               __assign_str(dev);
+               __assign_str(kind);
                __entry->port = dp->index;
                __entry->vid = vlan->vid;
        ),
index 62aa6465253a345d5d71ad68f8dafdb7985fe310..591ce0a16fc0ddeec1fe89b50e925f59282912de 100644 (file)
@@ -75,7 +75,7 @@ TRACE_EVENT(802154_rdev_add_virtual_intf,
        ),
        TP_fast_assign(
                WPAN_PHY_ASSIGN;
-               __assign_str(vir_intf_name, name ? name : "<noname>");
+               __assign_str(vir_intf_name);
                __entry->type = type;
                __entry->extended_addr = extended_addr;
        ),
index 8e758b5074bde71357079c3f005df0370814294a..b26aacfbc622853f6ed7feeec9f91d5c56bf91d1 100644 (file)
@@ -33,7 +33,7 @@
                        __string(vif_name, sdata->name)
 #define VIF_ASSIGN     __entry->vif_type = sdata->vif.type; __entry->sdata = sdata;    \
                        __entry->p2p = sdata->vif.p2p;                                  \
-                       __assign_str(vif_name, sdata->name)
+                       __assign_str(vif_name)
 #define VIF_PR_FMT     " vif:%s(%d%s)"
 #define VIF_PR_ARG     __get_str(vif_name), __entry->vif_type, __entry->p2p ? "/p2p" : ""
 
index 3eb35d9eb700ff2b434f34d41689616a2e656d27..74d75aaebef4aafd286d27cc6d4c3c0301a24dc4 100644 (file)
@@ -43,8 +43,8 @@ TRACE_EVENT(ovs_do_execute_action,
 
        TP_fast_assign(
                __entry->dpaddr = dp;
-               __assign_str(dp_name, ovs_dp_name(dp));
-               __assign_str(dev_name, skb->dev->name);
+               __assign_str(dp_name);
+               __assign_str(dev_name);
                __entry->skbaddr = skb;
                __entry->len = skb->len;
                __entry->data_len = skb->data_len;
@@ -113,8 +113,8 @@ TRACE_EVENT(ovs_dp_upcall,
 
        TP_fast_assign(
                __entry->dpaddr = dp;
-               __assign_str(dp_name, ovs_dp_name(dp));
-               __assign_str(dev_name, skb->dev->name);
+               __assign_str(dp_name);
+               __assign_str(dev_name);
                __entry->skbaddr = skb;
                __entry->len = skb->len;
                __entry->data_len = skb->data_len;
index 9fc5e586d24ab86b6c043f8b3fae9bb65417c22f..a9a6e3c1113aaad987fb9cbfd610e345bc3923c6 100644 (file)
@@ -60,7 +60,7 @@ DECLARE_EVENT_CLASS(smc_msg_event,
                                   __entry->smc = smc;
                                   __entry->net_cookie = sock_net(sk)->net_cookie;
                                   __entry->len = len;
-                                  __assign_str(name, smc->conn.lnk->ibname);
+                                  __assign_str(name);
                    ),
 
                    TP_printk("smc=%p net=%llu len=%zu dev=%s",
@@ -104,7 +104,7 @@ TRACE_EVENT(smcr_link_down,
                           __entry->lgr = lgr;
                           __entry->net_cookie = lgr->net->net_cookie;
                           __entry->state = lnk->state;
-                          __assign_str(name, lnk->ibname);
+                          __assign_str(name);
                           __entry->location = location;
            ),
 
index 04af83f0500ce25021c0bb3a3db8857808ab56cf..865142ed0ab4da9b88e2c501e895c18e506644ea 100644 (file)
@@ -145,7 +145,7 @@ DECLARE_EVENT_CLASS(tipc_skb_class,
        ),
 
        TP_fast_assign(
-               __assign_str(header, header);
+               __assign_str(header);
                tipc_skb_dump(skb, more, __get_str(buf));
        ),
 
@@ -172,7 +172,7 @@ DECLARE_EVENT_CLASS(tipc_list_class,
        ),
 
        TP_fast_assign(
-               __assign_str(header, header);
+               __assign_str(header);
                tipc_list_dump(list, more, __get_str(buf));
        ),
 
@@ -200,7 +200,7 @@ DECLARE_EVENT_CLASS(tipc_sk_class,
        ),
 
        TP_fast_assign(
-               __assign_str(header, header);
+               __assign_str(header);
                __entry->portid = tipc_sock_get_portid(sk);
                tipc_sk_dump(sk, dqueues, __get_str(buf));
                if (skb)
@@ -254,7 +254,7 @@ DECLARE_EVENT_CLASS(tipc_link_class,
        ),
 
        TP_fast_assign(
-               __assign_str(header, header);
+               __assign_str(header);
                memcpy(__entry->name, tipc_link_name(l), TIPC_MAX_LINK_NAME);
                tipc_link_dump(l, dqueues, __get_str(buf));
        ),
@@ -337,7 +337,7 @@ DECLARE_EVENT_CLASS(tipc_node_class,
        ),
 
        TP_fast_assign(
-               __assign_str(header, header);
+               __assign_str(header);
                __entry->addr = tipc_node_get_addr(n);
                tipc_node_dump(n, more, __get_str(buf));
        ),
@@ -374,7 +374,7 @@ DECLARE_EVENT_CLASS(tipc_fsm_class,
        ),
 
        TP_fast_assign(
-               __assign_str(name, name);
+               __assign_str(name);
                __entry->os = os;
                __entry->ns = ns;
                __entry->evt = evt;
@@ -409,8 +409,8 @@ TRACE_EVENT(tipc_l2_device_event,
        ),
 
        TP_fast_assign(
-               __assign_str(dev_name, dev->name);
-               __assign_str(b_name, b->name);
+               __assign_str(dev_name);
+               __assign_str(b_name);
                __entry->evt = evt;
                __entry->b_up = test_bit(0, &b->up);
                __entry->carrier = netif_carrier_ok(dev);
index 9bf987519811c461fbf195fb4adbbcc272aee02f..87986170d1b10d259581e6d12a9d7e7db0204482 100644 (file)
@@ -372,7 +372,7 @@ TRACE_EVENT(rdev_add_virtual_intf,
        ),
        TP_fast_assign(
                WIPHY_ASSIGN;
-               __assign_str(vir_intf_name, name ? name : "<noname>");
+               __assign_str(vir_intf_name);
                __entry->type = type;
        ),
        TP_printk(WIPHY_PR_FMT ", virtual intf name: %s, type: %d",
index 500981eca74d424a25f1e60ba6062f281070c26d..55f9a3da92d5f9ec45dbe3978ebd239f9fc56e2a 100644 (file)
  *
  *         To assign a string, use the helper macro __assign_str().
  *
- *         __assign_str(foo, bar);
+ *         __assign_str(foo);
  *
- *         In most cases, the __assign_str() macro will take the same
- *         parameters as the __string() macro had to declare the string.
+ *        The __string() macro saves off the string that is passed into
+ *         the second parameter, and the __assign_str() will store than
+ *         saved string into the "foo" field.
  *
  *   __vstring: This is similar to __string() but instead of taking a
  *         dynamic length, it takes a variable list va_list 'va' variable.
  *         The length is saved via the __string_len() and is retrieved in
  *         __assign_str().
  *
- *         __assign_str(foo, bar);
+ *         __assign_str(foo);
  *
  *         Then len + 1 is allocated to the ring buffer, and a nul terminating
  *         byte is added. This is similar to:
@@ -311,8 +312,8 @@ TRACE_EVENT(foo_bar,
                __entry->bar    = bar;
                memcpy(__get_dynamic_array(list), lst,
                       __length_of(lst) * sizeof(int));
-               __assign_str(str, string);
-               __assign_str(lstr, foo);
+               __assign_str(str);
+               __assign_str(lstr);
                __assign_vstr(vstr, fmt, va);
                __assign_bitmask(cpus, cpumask_bits(mask), num_possible_cpus());
                __assign_cpumask(cpum, cpumask_bits(mask));
@@ -418,7 +419,7 @@ TRACE_EVENT_CONDITION(foo_bar_with_cond,
        ),
 
        TP_fast_assign(
-               __assign_str(foo, foo);
+               __assign_str(foo);
                __entry->bar    = bar;
        ),
 
@@ -459,7 +460,7 @@ TRACE_EVENT_FN(foo_bar_with_fn,
        ),
 
        TP_fast_assign(
-               __assign_str(foo, foo);
+               __assign_str(foo);
                __entry->bar    = bar;
        ),
 
@@ -506,7 +507,7 @@ DECLARE_EVENT_CLASS(foo_template,
        ),
 
        TP_fast_assign(
-               __assign_str(foo, foo);
+               __assign_str(foo);
                __entry->bar    = bar;
        ),
 
index 350b40b906ca8010e6d43a4a4e7a87fd89867e90..adb9b1f3bbfa3ed1864412f024b045285847ac4c 100644 (file)
@@ -95,7 +95,7 @@ TRACE_EVENT(hw_ptr_error,
                __entry->device = (substream)->pcm->device;
                __entry->number = (substream)->number;
                __entry->stream = (substream)->stream;
-               __assign_str(reason, why);
+               __assign_str(reason);
        ),
        TP_printk("pcmC%dD%d%s/sub%d: ERROR: %s",
                  __entry->card, __entry->device,
index 2cc493434a8fd47962dd0a4021ba30da22f26f80..280c42f3eb750c077bf463cf972d4f0528161e98 100644 (file)
@@ -24,7 +24,7 @@ TRACE_EVENT(hda_send_cmd,
                __field(u32, cmd)
        ),
        TP_fast_assign(
-               __assign_str(name, dev_name((bus)->dev));
+               __assign_str(name);
                __entry->cmd = cmd;
        ),
        TP_printk("[%s:%d] val=0x%08x", __get_str(name), __entry->cmd >> 28, __entry->cmd)
@@ -39,7 +39,7 @@ TRACE_EVENT(hda_get_response,
                __field(u32, res)
        ),
        TP_fast_assign(
-               __assign_str(name, dev_name((bus)->dev));
+               __assign_str(name);
                __entry->addr = addr;
                __entry->res = res;
        ),
@@ -55,7 +55,7 @@ TRACE_EVENT(hda_unsol_event,
                __field(u32, res_ex)
        ),
        TP_fast_assign(
-               __assign_str(name, dev_name((bus)->dev));
+               __assign_str(name);
                __entry->res = res;
                __entry->res_ex = res_ex;
        ),
index 855b06bb14b06e0d5ee8eb4ad0241397b65311fc..c9eaa5a60ed3ee0b35776a4d9be689708bbc01df 100644 (file)
@@ -24,7 +24,7 @@ TRACE_EVENT(avs_dsp_core_op,
        TP_fast_assign(
                __entry->reg = reg;
                __entry->mask = mask;
-               __assign_str(op, op);
+               __assign_str(op);
                __entry->flag = flag;
        ),
 
@@ -135,7 +135,7 @@ TRACE_EVENT(avs_d0ix,
        ),
 
        TP_fast_assign(
-               __assign_str(op, op);
+               __assign_str(op);
                __entry->proceed = proceed;
                __entry->header = header;
        ),