tracing/treewide: Remove second parameter of __assign_str()

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>
This commit is contained in:
Steven Rostedt (Google) 2024-05-16 13:34:54 -04:00
parent de7e71ef8b
commit 2c92ca849f
147 changed files with 794 additions and 808 deletions

View File

@ -18,7 +18,7 @@ TRACE_EVENT(instruction_emulation,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(instr, instr); __assign_str(instr);
__entry->addr = addr; __entry->addr = addr;
), ),

View File

@ -137,7 +137,7 @@ TRACE_EVENT(rtas_input,
TP_fast_assign( TP_fast_assign(
__entry->nargs = be32_to_cpu(rtas_args->nargs); __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); be32_to_cpu_array(__get_dynamic_array(inputs), rtas_args->args, __entry->nargs);
), ),
@ -162,7 +162,7 @@ TRACE_EVENT(rtas_output,
TP_fast_assign( TP_fast_assign(
__entry->nr_other = be32_to_cpu(rtas_args->nret) - 1; __entry->nr_other = be32_to_cpu(rtas_args->nret) - 1;
__entry->status = be32_to_cpu(rtas_args->rets[0]); __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), be32_to_cpu_array(__get_dynamic_array(other_outputs),
&rtas_args->rets[1], __entry->nr_other); &rtas_args->rets[1], __entry->nr_other);
), ),

View File

@ -1678,7 +1678,7 @@ TRACE_EVENT(kvm_nested_vmenter_failed,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(msg, msg); __assign_str(msg);
__entry->err = err; __entry->err = err;
), ),

View File

@ -27,7 +27,7 @@ DECLARE_EVENT_CLASS(regmap_reg,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, regmap_name(map)); __assign_str(name);
__entry->reg = reg; __entry->reg = reg;
__entry->val = val; __entry->val = val;
), ),
@ -74,7 +74,7 @@ DECLARE_EVENT_CLASS(regmap_bulk,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, regmap_name(map)); __assign_str(name);
__entry->reg = reg; __entry->reg = reg;
__entry->val_len = val_len; __entry->val_len = val_len;
memcpy(__get_dynamic_array(buf), val, val_len); memcpy(__get_dynamic_array(buf), val, val_len);
@ -113,7 +113,7 @@ DECLARE_EVENT_CLASS(regmap_block,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, regmap_name(map)); __assign_str(name);
__entry->reg = reg; __entry->reg = reg;
__entry->count = count; __entry->count = count;
), ),
@ -163,9 +163,9 @@ TRACE_EVENT(regcache_sync,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, regmap_name(map)); __assign_str(name);
__assign_str(status, status); __assign_str(status);
__assign_str(type, type); __assign_str(type);
), ),
TP_printk("%s type=%s status=%s", __get_str(name), TP_printk("%s type=%s status=%s", __get_str(name),
@ -184,7 +184,7 @@ DECLARE_EVENT_CLASS(regmap_bool,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, regmap_name(map)); __assign_str(name);
__entry->flag = flag; __entry->flag = flag;
), ),
@ -216,7 +216,7 @@ DECLARE_EVENT_CLASS(regmap_async,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, regmap_name(map)); __assign_str(name);
), ),
TP_printk("%s", __get_str(name)) TP_printk("%s", __get_str(name))
@ -264,7 +264,7 @@ TRACE_EVENT(regcache_drop_region,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, regmap_name(map)); __assign_str(name);
__entry->from = from; __entry->from = from;
__entry->to = to; __entry->to = to;
), ),

View File

@ -28,7 +28,7 @@ DECLARE_EVENT_CLASS(devres,
__field(size_t, size) __field(size_t, size)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(devname, dev_name(dev)); __assign_str(devname);
__entry->op = op; __entry->op = op;
__entry->node = node; __entry->node = node;
__entry->name = name; __entry->name = name;

View File

@ -27,7 +27,7 @@ DECLARE_EVENT_CLASS(rnbd_srv_link_class,
TP_fast_assign( TP_fast_assign(
__entry->qdepth = srv->queue_depth; __entry->qdepth = srv->queue_depth;
__assign_str(sessname, srv->sessname); __assign_str(sessname);
), ),
TP_printk("sessname: %s qdepth: %d", TP_printk("sessname: %s qdepth: %d",
@ -85,7 +85,7 @@ TRACE_EVENT(process_rdma,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(sessname, srv->sessname); __assign_str(sessname);
__entry->dir = id->dir; __entry->dir = id->dir;
__entry->ver = srv->ver; __entry->ver = srv->ver;
__entry->device_id = le32_to_cpu(msg->device_id); __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->proto_ver = srv->ver;
__entry->clt_ver = msg->ver; __entry->clt_ver = msg->ver;
__entry->srv_ver = RNBD_PROTO_VER_MAJOR; __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)", 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( TP_fast_assign(
__entry->access_mode = msg->access_mode; __entry->access_mode = msg->access_mode;
__assign_str(sessname, srv->sessname); __assign_str(sessname);
__assign_str(dev_name, msg->dev_name); __assign_str(dev_name);
), ),
TP_printk("Open message received: session='%s' path='%s' access_mode=%s", TP_printk("Open message received: session='%s' path='%s' access_mode=%s",
@ -189,7 +189,7 @@ TRACE_EVENT(process_msg_close,
TP_fast_assign( TP_fast_assign(
__entry->device_id = le32_to_cpu(msg->device_id); __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'", TP_printk("Close message received: session='%s' device id='%d'",

View File

@ -103,7 +103,7 @@ TRACE_EVENT(mhi_gen_tre,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, mhi_cntrl->mhi_dev->name); __assign_str(name);
__entry->ch_num = mhi_chan->chan; __entry->ch_num = mhi_chan->chan;
__entry->wp = mhi_tre; __entry->wp = mhi_tre;
__entry->tre_ptr = mhi_tre->ptr; __entry->tre_ptr = mhi_tre->ptr;
@ -131,7 +131,7 @@ TRACE_EVENT(mhi_intvec_states,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, mhi_cntrl->mhi_dev->name); __assign_str(name);
__entry->local_ee = mhi_cntrl->ee; __entry->local_ee = mhi_cntrl->ee;
__entry->state = mhi_cntrl->dev_state; __entry->state = mhi_cntrl->dev_state;
__entry->dev_ee = dev_ee; __entry->dev_ee = dev_ee;
@ -158,7 +158,7 @@ TRACE_EVENT(mhi_tryset_pm_state,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, mhi_cntrl->mhi_dev->name); __assign_str(name);
if (pm_state) if (pm_state)
pm_state = __fls(pm_state); pm_state = __fls(pm_state);
__entry->pm_state = pm_state; __entry->pm_state = pm_state;
@ -184,7 +184,7 @@ DECLARE_EVENT_CLASS(mhi_process_event_ring,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, mhi_cntrl->mhi_dev->name); __assign_str(name);
__entry->rp = rp; __entry->rp = rp;
__entry->ptr = rp->ptr; __entry->ptr = rp->ptr;
__entry->dword0 = rp->dword[0]; __entry->dword0 = rp->dword[0];
@ -226,7 +226,7 @@ DECLARE_EVENT_CLASS(mhi_update_channel_state,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, mhi_cntrl->mhi_dev->name); __assign_str(name);
__entry->ch_num = mhi_chan->chan; __entry->ch_num = mhi_chan->chan;
__entry->state = state; __entry->state = state;
__entry->reason = reason; __entry->reason = reason;
@ -265,7 +265,7 @@ TRACE_EVENT(mhi_pm_st_transition,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, mhi_cntrl->mhi_dev->name); __assign_str(name);
__entry->state = state; __entry->state = state;
), ),

View File

@ -60,8 +60,8 @@ TRACE_EVENT(cxl_aer_uncorrectable_error,
__array(u32, header_log, CXL_HEADERLOG_SIZE_U32) __array(u32, header_log, CXL_HEADERLOG_SIZE_U32)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(memdev, dev_name(&cxlmd->dev)); __assign_str(memdev);
__assign_str(host, dev_name(cxlmd->dev.parent)); __assign_str(host);
__entry->serial = cxlmd->cxlds->serial; __entry->serial = cxlmd->cxlds->serial;
__entry->status = status; __entry->status = status;
__entry->first_error = fe; __entry->first_error = fe;
@ -106,8 +106,8 @@ TRACE_EVENT(cxl_aer_correctable_error,
__field(u32, status) __field(u32, status)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(memdev, dev_name(&cxlmd->dev)); __assign_str(memdev);
__assign_str(host, dev_name(cxlmd->dev.parent)); __assign_str(host);
__entry->serial = cxlmd->cxlds->serial; __entry->serial = cxlmd->cxlds->serial;
__entry->status = status; __entry->status = status;
), ),
@ -142,8 +142,8 @@ TRACE_EVENT(cxl_overflow,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(memdev, dev_name(&cxlmd->dev)); __assign_str(memdev);
__assign_str(host, dev_name(cxlmd->dev.parent)); __assign_str(host);
__entry->serial = cxlmd->cxlds->serial; __entry->serial = cxlmd->cxlds->serial;
__entry->log = log; __entry->log = log;
__entry->count = le16_to_cpu(payload->overflow_err_count); __entry->count = le16_to_cpu(payload->overflow_err_count);
@ -200,8 +200,8 @@ TRACE_EVENT(cxl_overflow,
__field(u8, hdr_maint_op_class) __field(u8, hdr_maint_op_class)
#define CXL_EVT_TP_fast_assign(cxlmd, l, hdr) \ #define CXL_EVT_TP_fast_assign(cxlmd, l, hdr) \
__assign_str(memdev, dev_name(&(cxlmd)->dev)); \ __assign_str(memdev); \
__assign_str(host, dev_name((cxlmd)->dev.parent)); \ __assign_str(host); \
__entry->log = (l); \ __entry->log = (l); \
__entry->serial = (cxlmd)->cxlds->serial; \ __entry->serial = (cxlmd)->cxlds->serial; \
__entry->hdr_length = (hdr).length; \ __entry->hdr_length = (hdr).length; \
@ -359,10 +359,10 @@ TRACE_EVENT(cxl_general_media,
__entry->validity_flags = get_unaligned_le16(&rec->validity_flags); __entry->validity_flags = get_unaligned_le16(&rec->validity_flags);
__entry->hpa = hpa; __entry->hpa = hpa;
if (cxlr) { if (cxlr) {
__assign_str(region_name, dev_name(&cxlr->dev)); __assign_str(region_name);
uuid_copy(&__entry->region_uuid, &cxlr->params.uuid); uuid_copy(&__entry->region_uuid, &cxlr->params.uuid);
} else { } else {
__assign_str(region_name, ""); __assign_str(region_name);
uuid_copy(&__entry->region_uuid, &uuid_null); uuid_copy(&__entry->region_uuid, &uuid_null);
} }
), ),
@ -462,10 +462,10 @@ TRACE_EVENT(cxl_dram,
CXL_EVENT_DER_CORRECTION_MASK_SIZE); CXL_EVENT_DER_CORRECTION_MASK_SIZE);
__entry->hpa = hpa; __entry->hpa = hpa;
if (cxlr) { if (cxlr) {
__assign_str(region_name, dev_name(&cxlr->dev)); __assign_str(region_name);
uuid_copy(&__entry->region_uuid, &cxlr->params.uuid); uuid_copy(&__entry->region_uuid, &cxlr->params.uuid);
} else { } else {
__assign_str(region_name, ""); __assign_str(region_name);
uuid_copy(&__entry->region_uuid, &uuid_null); uuid_copy(&__entry->region_uuid, &uuid_null);
} }
), ),
@ -692,8 +692,8 @@ TRACE_EVENT(cxl_poison,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(memdev, dev_name(&cxlmd->dev)); __assign_str(memdev);
__assign_str(host, dev_name(cxlmd->dev.parent)); __assign_str(host);
__entry->serial = cxlmd->cxlds->serial; __entry->serial = cxlmd->cxlds->serial;
__entry->overflow_ts = cxl_poison_overflow(flags, overflow_ts); __entry->overflow_ts = cxl_poison_overflow(flags, overflow_ts);
__entry->dpa = cxl_poison_record_dpa(record); __entry->dpa = cxl_poison_record_dpa(record);
@ -702,12 +702,12 @@ TRACE_EVENT(cxl_poison,
__entry->trace_type = trace_type; __entry->trace_type = trace_type;
__entry->flags = flags; __entry->flags = flags;
if (cxlr) { if (cxlr) {
__assign_str(region, dev_name(&cxlr->dev)); __assign_str(region);
memcpy(__entry->uuid, &cxlr->params.uuid, 16); memcpy(__entry->uuid, &cxlr->params.uuid, 16);
__entry->hpa = cxl_trace_hpa(cxlr, cxlmd, __entry->hpa = cxl_trace_hpa(cxlr, cxlmd,
__entry->dpa); __entry->dpa);
} else { } else {
__assign_str(region, ""); __assign_str(region);
memset(__entry->uuid, 0, 16); memset(__entry->uuid, 0, 16);
__entry->hpa = ULLONG_MAX; __entry->hpa = ULLONG_MAX;
} }

View File

@ -20,7 +20,7 @@ TRACE_EVENT(sync_timeline,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, timeline->name); __assign_str(name);
__entry->value = timeline->value; __entry->value = timeline->value;
), ),

View File

@ -178,10 +178,10 @@ TRACE_EVENT(amdgpu_cs_ioctl,
TP_fast_assign( TP_fast_assign(
__entry->sched_job_id = job->base.id; __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->context = job->base.s_fence->finished.context;
__entry->seqno = job->base.s_fence->finished.seqno; __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; __entry->num_ibs = job->num_ibs;
), ),
TP_printk("sched_job=%llu, timeline=%s, context=%u, seqno=%u, ring_name=%s, num_ibs=%u", 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( TP_fast_assign(
__entry->sched_job_id = job->base.id; __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->context = job->base.s_fence->finished.context;
__entry->seqno = job->base.s_fence->finished.seqno; __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; __entry->num_ibs = job->num_ibs;
), ),
TP_printk("sched_job=%llu, timeline=%s, context=%u, seqno=%u, ring_name=%s, num_ibs=%u", 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( TP_fast_assign(
__entry->pasid = vm->pasid; __entry->pasid = vm->pasid;
__assign_str(ring, ring->name); __assign_str(ring);
__entry->vmid = job->vmid; __entry->vmid = job->vmid;
__entry->vm_hub = ring->vm_hub, __entry->vm_hub = ring->vm_hub,
__entry->pd_addr = job->vm_pd_addr; __entry->pd_addr = job->vm_pd_addr;
@ -425,7 +425,7 @@ TRACE_EVENT(amdgpu_vm_flush,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(ring, ring->name); __assign_str(ring);
__entry->vmid = vmid; __entry->vmid = vmid;
__entry->vm_hub = ring->vm_hub; __entry->vm_hub = ring->vm_hub;
__entry->pd_addr = pd_addr; __entry->pd_addr = pd_addr;
@ -526,7 +526,7 @@ TRACE_EVENT(amdgpu_ib_pipe_sync,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(ring, sched_job->base.sched->name); __assign_str(ring);
__entry->id = sched_job->base.id; __entry->id = sched_job->base.id;
__entry->fence = fence; __entry->fence = fence;
__entry->ctx = fence->context; __entry->ctx = fence->context;
@ -563,7 +563,7 @@ TRACE_EVENT(amdgpu_runpm_reference_dumps,
), ),
TP_fast_assign( TP_fast_assign(
__entry->index = index; __entry->index = index;
__assign_str(func, func); __assign_str(func);
), ),
TP_printk("amdgpu runpm reference dump 0x%x: 0x%s\n", TP_printk("amdgpu runpm reference dump 0x%x: 0x%s\n",
__entry->index, __entry->index,

View File

@ -87,7 +87,7 @@ TRACE_EVENT(amdgpu_dc_performance,
__entry->writes = write_count; __entry->writes = write_count;
__entry->read_delta = read_count - *last_read; __entry->read_delta = read_count - *last_read;
__entry->write_delta = write_count - *last_write; __entry->write_delta = write_count - *last_write;
__assign_str(func, func); __assign_str(func);
__entry->line = line; __entry->line = line;
*last_read = read_count; *last_read = read_count;
*last_write = write_count; *last_write = write_count;

View File

@ -34,7 +34,7 @@ TRACE_EVENT(intel_pipe_enable,
TP_fast_assign( TP_fast_assign(
struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); struct drm_i915_private *dev_priv = to_i915(crtc->base.dev);
struct intel_crtc *it__; struct intel_crtc *it__;
__assign_str(dev, __dev_name_kms(crtc)); __assign_str(dev);
for_each_intel_crtc(&dev_priv->drm, it__) { for_each_intel_crtc(&dev_priv->drm, it__) {
__entry->frame[it__->pipe] = intel_crtc_get_vblank_counter(it__); __entry->frame[it__->pipe] = intel_crtc_get_vblank_counter(it__);
__entry->scanline[it__->pipe] = intel_get_crtc_scanline(it__); __entry->scanline[it__->pipe] = intel_get_crtc_scanline(it__);
@ -63,7 +63,7 @@ TRACE_EVENT(intel_pipe_disable,
TP_fast_assign( TP_fast_assign(
struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); struct drm_i915_private *dev_priv = to_i915(crtc->base.dev);
struct intel_crtc *it__; struct intel_crtc *it__;
__assign_str(dev, __dev_name_kms(crtc)); __assign_str(dev);
for_each_intel_crtc(&dev_priv->drm, it__) { for_each_intel_crtc(&dev_priv->drm, it__) {
__entry->frame[it__->pipe] = intel_crtc_get_vblank_counter(it__); __entry->frame[it__->pipe] = intel_crtc_get_vblank_counter(it__);
__entry->scanline[it__->pipe] = intel_get_crtc_scanline(it__); __entry->scanline[it__->pipe] = intel_get_crtc_scanline(it__);
@ -91,7 +91,7 @@ TRACE_EVENT(intel_pipe_crc,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev, __dev_name_kms(crtc)); __assign_str(dev);
__entry->pipe = crtc->pipe; __entry->pipe = crtc->pipe;
__entry->frame = intel_crtc_get_vblank_counter(crtc); __entry->frame = intel_crtc_get_vblank_counter(crtc);
__entry->scanline = intel_get_crtc_scanline(crtc); __entry->scanline = intel_get_crtc_scanline(crtc);
@ -119,7 +119,7 @@ TRACE_EVENT(intel_cpu_fifo_underrun,
TP_fast_assign( TP_fast_assign(
struct intel_crtc *crtc = intel_crtc_for_pipe(dev_priv, pipe); 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->pipe = pipe;
__entry->frame = intel_crtc_get_vblank_counter(crtc); __entry->frame = intel_crtc_get_vblank_counter(crtc);
__entry->scanline = intel_get_crtc_scanline(crtc); __entry->scanline = intel_get_crtc_scanline(crtc);
@ -144,7 +144,7 @@ TRACE_EVENT(intel_pch_fifo_underrun,
TP_fast_assign( TP_fast_assign(
enum pipe pipe = pch_transcoder; enum pipe pipe = pch_transcoder;
struct intel_crtc *crtc = intel_crtc_for_pipe(dev_priv, pipe); 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->pipe = pipe;
__entry->frame = intel_crtc_get_vblank_counter(crtc); __entry->frame = intel_crtc_get_vblank_counter(crtc);
__entry->scanline = intel_get_crtc_scanline(crtc); __entry->scanline = intel_get_crtc_scanline(crtc);
@ -169,7 +169,7 @@ TRACE_EVENT(intel_memory_cxsr,
TP_fast_assign( TP_fast_assign(
struct intel_crtc *crtc; struct intel_crtc *crtc;
__assign_str(dev, __dev_name_i915(dev_priv)); __assign_str(dev);
for_each_intel_crtc(&dev_priv->drm, crtc) { for_each_intel_crtc(&dev_priv->drm, crtc) {
__entry->frame[crtc->pipe] = intel_crtc_get_vblank_counter(crtc); __entry->frame[crtc->pipe] = intel_crtc_get_vblank_counter(crtc);
__entry->scanline[crtc->pipe] = intel_get_crtc_scanline(crtc); __entry->scanline[crtc->pipe] = intel_get_crtc_scanline(crtc);
@ -209,7 +209,7 @@ TRACE_EVENT(g4x_wm,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev, __dev_name_kms(crtc)); __assign_str(dev);
__entry->pipe = crtc->pipe; __entry->pipe = crtc->pipe;
__entry->frame = intel_crtc_get_vblank_counter(crtc); __entry->frame = intel_crtc_get_vblank_counter(crtc);
__entry->scanline = intel_get_crtc_scanline(crtc); __entry->scanline = intel_get_crtc_scanline(crtc);
@ -256,7 +256,7 @@ TRACE_EVENT(vlv_wm,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev, __dev_name_kms(crtc)); __assign_str(dev);
__entry->pipe = crtc->pipe; __entry->pipe = crtc->pipe;
__entry->frame = intel_crtc_get_vblank_counter(crtc); __entry->frame = intel_crtc_get_vblank_counter(crtc);
__entry->scanline = intel_get_crtc_scanline(crtc); __entry->scanline = intel_get_crtc_scanline(crtc);
@ -293,7 +293,7 @@ TRACE_EVENT(vlv_fifo_size,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev, __dev_name_kms(crtc)); __assign_str(dev);
__entry->pipe = crtc->pipe; __entry->pipe = crtc->pipe;
__entry->frame = intel_crtc_get_vblank_counter(crtc); __entry->frame = intel_crtc_get_vblank_counter(crtc);
__entry->scanline = intel_get_crtc_scanline(crtc); __entry->scanline = intel_get_crtc_scanline(crtc);
@ -323,8 +323,8 @@ TRACE_EVENT(intel_plane_update_noarm,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev, __dev_name_kms(plane)); __assign_str(dev);
__assign_str(name, plane->base.name); __assign_str(name);
__entry->pipe = crtc->pipe; __entry->pipe = crtc->pipe;
__entry->frame = intel_crtc_get_vblank_counter(crtc); __entry->frame = intel_crtc_get_vblank_counter(crtc);
__entry->scanline = intel_get_crtc_scanline(crtc); __entry->scanline = intel_get_crtc_scanline(crtc);
@ -354,8 +354,8 @@ TRACE_EVENT(intel_plane_update_arm,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev, __dev_name_kms(plane)); __assign_str(dev);
__assign_str(name, plane->base.name); __assign_str(name);
__entry->pipe = crtc->pipe; __entry->pipe = crtc->pipe;
__entry->frame = intel_crtc_get_vblank_counter(crtc); __entry->frame = intel_crtc_get_vblank_counter(crtc);
__entry->scanline = intel_get_crtc_scanline(crtc); __entry->scanline = intel_get_crtc_scanline(crtc);
@ -383,8 +383,8 @@ TRACE_EVENT(intel_plane_disable_arm,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev, __dev_name_kms(plane)); __assign_str(dev);
__assign_str(name, plane->base.name); __assign_str(name);
__entry->pipe = crtc->pipe; __entry->pipe = crtc->pipe;
__entry->frame = intel_crtc_get_vblank_counter(crtc); __entry->frame = intel_crtc_get_vblank_counter(crtc);
__entry->scanline = intel_get_crtc_scanline(crtc); __entry->scanline = intel_get_crtc_scanline(crtc);
@ -410,8 +410,8 @@ TRACE_EVENT(intel_fbc_activate,
TP_fast_assign( TP_fast_assign(
struct intel_crtc *crtc = intel_crtc_for_pipe(to_i915(plane->base.dev), struct intel_crtc *crtc = intel_crtc_for_pipe(to_i915(plane->base.dev),
plane->pipe); plane->pipe);
__assign_str(dev, __dev_name_kms(plane)); __assign_str(dev);
__assign_str(name, plane->base.name); __assign_str(name);
__entry->pipe = crtc->pipe; __entry->pipe = crtc->pipe;
__entry->frame = intel_crtc_get_vblank_counter(crtc); __entry->frame = intel_crtc_get_vblank_counter(crtc);
__entry->scanline = intel_get_crtc_scanline(crtc); __entry->scanline = intel_get_crtc_scanline(crtc);
@ -437,8 +437,8 @@ TRACE_EVENT(intel_fbc_deactivate,
TP_fast_assign( TP_fast_assign(
struct intel_crtc *crtc = intel_crtc_for_pipe(to_i915(plane->base.dev), struct intel_crtc *crtc = intel_crtc_for_pipe(to_i915(plane->base.dev),
plane->pipe); plane->pipe);
__assign_str(dev, __dev_name_kms(plane)); __assign_str(dev);
__assign_str(name, plane->base.name); __assign_str(name);
__entry->pipe = crtc->pipe; __entry->pipe = crtc->pipe;
__entry->frame = intel_crtc_get_vblank_counter(crtc); __entry->frame = intel_crtc_get_vblank_counter(crtc);
__entry->scanline = intel_get_crtc_scanline(crtc); __entry->scanline = intel_get_crtc_scanline(crtc);
@ -464,8 +464,8 @@ TRACE_EVENT(intel_fbc_nuke,
TP_fast_assign( TP_fast_assign(
struct intel_crtc *crtc = intel_crtc_for_pipe(to_i915(plane->base.dev), struct intel_crtc *crtc = intel_crtc_for_pipe(to_i915(plane->base.dev),
plane->pipe); plane->pipe);
__assign_str(dev, __dev_name_kms(plane)); __assign_str(dev);
__assign_str(name, plane->base.name); __assign_str(name);
__entry->pipe = crtc->pipe; __entry->pipe = crtc->pipe;
__entry->frame = intel_crtc_get_vblank_counter(crtc); __entry->frame = intel_crtc_get_vblank_counter(crtc);
__entry->scanline = intel_get_crtc_scanline(crtc); __entry->scanline = intel_get_crtc_scanline(crtc);
@ -488,7 +488,7 @@ TRACE_EVENT(intel_crtc_vblank_work_start,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev, __dev_name_kms(crtc)); __assign_str(dev);
__entry->pipe = crtc->pipe; __entry->pipe = crtc->pipe;
__entry->frame = intel_crtc_get_vblank_counter(crtc); __entry->frame = intel_crtc_get_vblank_counter(crtc);
__entry->scanline = intel_get_crtc_scanline(crtc); __entry->scanline = intel_get_crtc_scanline(crtc);
@ -511,7 +511,7 @@ TRACE_EVENT(intel_crtc_vblank_work_end,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev, __dev_name_kms(crtc)); __assign_str(dev);
__entry->pipe = crtc->pipe; __entry->pipe = crtc->pipe;
__entry->frame = intel_crtc_get_vblank_counter(crtc); __entry->frame = intel_crtc_get_vblank_counter(crtc);
__entry->scanline = intel_get_crtc_scanline(crtc); __entry->scanline = intel_get_crtc_scanline(crtc);
@ -536,7 +536,7 @@ TRACE_EVENT(intel_pipe_update_start,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev, __dev_name_kms(crtc)); __assign_str(dev);
__entry->pipe = crtc->pipe; __entry->pipe = crtc->pipe;
__entry->frame = intel_crtc_get_vblank_counter(crtc); __entry->frame = intel_crtc_get_vblank_counter(crtc);
__entry->scanline = intel_get_crtc_scanline(crtc); __entry->scanline = intel_get_crtc_scanline(crtc);
@ -564,7 +564,7 @@ TRACE_EVENT(intel_pipe_update_vblank_evaded,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev, __dev_name_kms(crtc)); __assign_str(dev);
__entry->pipe = crtc->pipe; __entry->pipe = crtc->pipe;
__entry->frame = crtc->debug.start_vbl_count; __entry->frame = crtc->debug.start_vbl_count;
__entry->scanline = crtc->debug.scanline_start; __entry->scanline = crtc->debug.scanline_start;
@ -590,7 +590,7 @@ TRACE_EVENT(intel_pipe_update_end,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev, __dev_name_kms(crtc)); __assign_str(dev);
__entry->pipe = crtc->pipe; __entry->pipe = crtc->pipe;
__entry->frame = frame; __entry->frame = frame;
__entry->scanline = scanline_end; __entry->scanline = scanline_end;
@ -613,7 +613,7 @@ TRACE_EVENT(intel_frontbuffer_invalidate,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev, __dev_name_i915(i915)); __assign_str(dev);
__entry->frontbuffer_bits = frontbuffer_bits; __entry->frontbuffer_bits = frontbuffer_bits;
__entry->origin = origin; __entry->origin = origin;
), ),
@ -634,7 +634,7 @@ TRACE_EVENT(intel_frontbuffer_flush,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev, __dev_name_i915(i915)); __assign_str(dev);
__entry->frontbuffer_bits = frontbuffer_bits; __entry->frontbuffer_bits = frontbuffer_bits;
__entry->origin = origin; __entry->origin = origin;
), ),

View File

@ -24,7 +24,7 @@ DECLARE_EVENT_CLASS(lima_task,
__entry->task_id = task->base.id; __entry->task_id = task->base.id;
__entry->context = task->base.s_fence->finished.context; __entry->context = task->base.s_fence->finished.context;
__entry->seqno = task->base.s_fence->finished.seqno; __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", TP_printk("task=%llu, context=%u seqno=%u pipe=%s",

View File

@ -113,7 +113,7 @@ TRACE_EVENT(tracing_mark_write,
), ),
TP_fast_assign( TP_fast_assign(
__entry->pid = pid; __entry->pid = pid;
__assign_str(trace_name, name); __assign_str(trace_name);
__entry->trace_begin = trace_begin; __entry->trace_begin = trace_begin;
), ),
TP_printk("%s|%d|%s", __entry->trace_begin ? "B" : "E", TP_printk("%s|%d|%s", __entry->trace_begin ? "B" : "E",
@ -130,7 +130,7 @@ TRACE_EVENT(dpu_trace_counter,
), ),
TP_fast_assign( TP_fast_assign(
__entry->pid = current->tgid; __entry->pid = current->tgid;
__assign_str(counter_name, name); __assign_str(counter_name);
__entry->value = value; __entry->value = value;
), ),
TP_printk("%d|%s|%d", __entry->pid, TP_printk("%d|%s|%d", __entry->pid,
@ -379,7 +379,7 @@ TRACE_EVENT(dpu_enc_rc,
__entry->sw_event = sw_event; __entry->sw_event = sw_event;
__entry->idle_pc_supported = idle_pc_supported; __entry->idle_pc_supported = idle_pc_supported;
__entry->rc_state = rc_state; __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", 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, __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( TP_fast_assign(
__entry->drm_id = drm_id; __entry->drm_id = drm_id;
__entry->event = event; __entry->event = event;
__assign_str(intf_mode_str, intf_mode); __assign_str(intf_mode_str);
__entry->intf_idx = intf_idx; __entry->intf_idx = intf_idx;
__entry->wb_idx = wb_idx; __entry->wb_idx = wb_idx;
), ),
@ -446,7 +446,7 @@ TRACE_EVENT(dpu_enc_trigger_flush,
), ),
TP_fast_assign( TP_fast_assign(
__entry->drm_id = drm_id; __entry->drm_id = drm_id;
__assign_str(intf_mode_str, intf_mode); __assign_str(intf_mode_str);
__entry->intf_idx = intf_idx; __entry->intf_idx = intf_idx;
__entry->wb_idx = wb_idx; __entry->wb_idx = wb_idx;
__entry->pending_kickoff_cnt = pending_kickoff_cnt; __entry->pending_kickoff_cnt = pending_kickoff_cnt;
@ -946,7 +946,7 @@ TRACE_EVENT(dpu_core_perf_update_clk,
__field( u64, clk_rate ) __field( u64, clk_rate )
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev_name, dev->unique); __assign_str(dev_name);
__entry->stop_req = stop_req; __entry->stop_req = stop_req;
__entry->clk_rate = clk_rate; __entry->clk_rate = clk_rate;
), ),

View File

@ -48,7 +48,7 @@ DECLARE_EVENT_CLASS(drm_sched_job,
__entry->entity = entity; __entry->entity = entity;
__entry->id = sched_job->id; __entry->id = sched_job->id;
__entry->fence = &sched_job->s_fence->finished; __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->job_count = spsc_queue_count(&entity->job_queue);
__entry->hw_job_count = atomic_read( __entry->hw_job_count = atomic_read(
&sched_job->sched->credit_count); &sched_job->sched->credit_count);
@ -94,7 +94,7 @@ TRACE_EVENT(drm_sched_job_wait_dep,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, sched_job->sched->name); __assign_str(name);
__entry->id = sched_job->id; __entry->id = sched_job->id;
__entry->fence = fence; __entry->fence = fence;
__entry->ctx = fence->context; __entry->ctx = fence->context;

View File

@ -25,7 +25,7 @@ DECLARE_EVENT_CLASS(virtio_gpu_cmd,
TP_fast_assign( TP_fast_assign(
__entry->dev = vq->vdev->index; __entry->dev = vq->vdev->index;
__entry->vq = vq->index; __entry->vq = vq->index;
__assign_str(name, vq->name); __assign_str(name);
__entry->type = le32_to_cpu(hdr->type); __entry->type = le32_to_cpu(hdr->type);
__entry->flags = le32_to_cpu(hdr->flags); __entry->flags = le32_to_cpu(hdr->flags);
__entry->fence_id = le64_to_cpu(hdr->fence_id); __entry->fence_id = le64_to_cpu(hdr->fence_id);

View File

@ -84,7 +84,7 @@ TRACE_EVENT(cm_id_attach,
sizeof(struct sockaddr_in6)); sizeof(struct sockaddr_in6));
memcpy(__entry->dstaddr, &id_priv->id.route.addr.dst_addr, memcpy(__entry->dstaddr, &id_priv->id.route.addr.dst_addr,
sizeof(struct sockaddr_in6)); sizeof(struct sockaddr_in6));
__assign_str(devname, device->name); __assign_str(devname);
), ),
TP_printk("cm.id=%u src=%pISpc dst=%pISpc device=%s", TP_printk("cm.id=%u src=%pISpc dst=%pISpc device=%s",
@ -334,7 +334,7 @@ DECLARE_EVENT_CLASS(cma_client_class,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, device->name); __assign_str(name);
), ),
TP_printk("device name=%s", TP_printk("device name=%s",

View 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); 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_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, static inline void hfi1_update_ah_attr(struct ib_device *ibdev,
struct rdma_ah_attr *attr) struct rdma_ah_attr *attr)

View File

@ -33,7 +33,7 @@ DECLARE_EVENT_CLASS(hfi1_trace_template,
TP_STRUCT__entry(__string(function, function) TP_STRUCT__entry(__string(function, function)
__vstring(msg, vaf->fmt, vaf->va) __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); __assign_vstr(msg, vaf->fmt, vaf->va);
), ),
TP_printk("(%s) %s", TP_printk("(%s) %s",

View File

@ -90,7 +90,7 @@ TRACE_EVENT(hfi1_mmu_invalidate,
TP_fast_assign( TP_fast_assign(
__entry->ctxt = ctxt; __entry->ctxt = ctxt;
__entry->subctxt = subctxt; __entry->subctxt = subctxt;
__assign_str(type, type); __assign_str(type);
__entry->start = start; __entry->start = start;
__entry->end = end; __entry->end = end;
), ),

View File

@ -358,7 +358,7 @@ DECLARE_EVENT_CLASS(/* msg */
), ),
TP_fast_assign(/* assign */ TP_fast_assign(/* assign */
__entry->qpn = qp ? qp->ibqp.qp_num : 0; __entry->qpn = qp ? qp->ibqp.qp_num : 0;
__assign_str(msg, msg); __assign_str(msg);
__entry->more = more; __entry->more = more;
), ),
TP_printk(/* print */ TP_printk(/* print */
@ -651,7 +651,7 @@ DECLARE_EVENT_CLASS(/* tid_node */
TP_fast_assign(/* assign */ TP_fast_assign(/* assign */
DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)); DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device));
__entry->qpn = qp->ibqp.qp_num; __entry->qpn = qp->ibqp.qp_num;
__assign_str(msg, msg); __assign_str(msg);
__entry->index = index; __entry->index = index;
__entry->base = base; __entry->base = base;
__entry->map = map; __entry->map = map;

View File

@ -740,8 +740,8 @@ TRACE_EVENT(hfi1_sdma_state,
__string(newstate, nstate) __string(newstate, nstate)
), ),
TP_fast_assign(DD_DEV_ASSIGN(sde->dd); TP_fast_assign(DD_DEV_ASSIGN(sde->dd);
__assign_str(curstate, cstate); __assign_str(curstate);
__assign_str(newstate, nstate); __assign_str(newstate);
), ),
TP_printk("[%s] current state %s new state %s", TP_printk("[%s] current state %s new state %s",
__get_str(dev), __get_str(dev),

View File

@ -4,7 +4,7 @@
*/ */
#define RDI_DEV_ENTRY(rdi) __string(dev, rvt_get_ibdev_name(rdi)) #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_rvt.h"
#include "trace_qp.h" #include "trace_qp.h"

View File

@ -24,7 +24,7 @@ TRACE_EVENT(rvt_dbg,
), ),
TP_fast_assign( TP_fast_assign(
RDI_DEV_ASSIGN(rdi); RDI_DEV_ASSIGN(rdi);
__assign_str(msg, msg); __assign_str(msg);
), ),
TP_printk("[%s]: %s", __get_str(dev), __get_str(msg)) TP_printk("[%s]: %s", __get_str(dev), __get_str(msg))
); );

View File

@ -32,9 +32,9 @@ TRACE_EVENT(icc_set_bw,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(path_name, p->name); __assign_str(path_name);
__assign_str(dev, dev_name(p->reqs[i].dev)); __assign_str(dev);
__assign_str(node_name, n->name); __assign_str(node_name);
__entry->avg_bw = avg_bw; __entry->avg_bw = avg_bw;
__entry->peak_bw = peak_bw; __entry->peak_bw = peak_bw;
__entry->node_avg_bw = n->avg_bw; __entry->node_avg_bw = n->avg_bw;
@ -64,8 +64,8 @@ TRACE_EVENT(icc_set_bw_end,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(path_name, p->name); __assign_str(path_name);
__assign_str(dev, dev_name(p->reqs[0].dev)); __assign_str(dev);
__entry->ret = ret; __entry->ret = ret;
), ),

View File

@ -32,7 +32,7 @@ TRACE_EVENT(qi_submit,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(iommu, iommu->name); __assign_str(iommu);
__entry->qw0 = qw0; __entry->qw0 = qw0;
__entry->qw1 = qw1; __entry->qw1 = qw1;
__entry->qw2 = qw2; __entry->qw2 = qw2;
@ -79,8 +79,8 @@ TRACE_EVENT(prq_report,
__entry->dw2 = dw2; __entry->dw2 = dw2;
__entry->dw3 = dw3; __entry->dw3 = dw3;
__entry->seq = seq; __entry->seq = seq;
__assign_str(iommu, iommu->name); __assign_str(iommu);
__assign_str(dev, dev_name(dev)); __assign_str(dev);
), ),
TP_printk("%s/%s seq# %ld: %s", TP_printk("%s/%s seq# %ld: %s",
@ -102,8 +102,8 @@ DECLARE_EVENT_CLASS(cache_tag_log,
__field(u32, users) __field(u32, users)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(iommu, tag->iommu->name); __assign_str(iommu);
__assign_str(dev, dev_name(tag->dev)); __assign_str(dev);
__entry->type = tag->type; __entry->type = tag->type;
__entry->domain_id = tag->domain_id; __entry->domain_id = tag->domain_id;
__entry->pasid = tag->pasid; __entry->pasid = tag->pasid;
@ -152,8 +152,8 @@ DECLARE_EVENT_CLASS(cache_tag_flush,
__field(unsigned long, mask) __field(unsigned long, mask)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(iommu, tag->iommu->name); __assign_str(iommu);
__assign_str(dev, dev_name(tag->dev)); __assign_str(dev);
__entry->type = tag->type; __entry->type = tag->type;
__entry->domain_id = tag->domain_id; __entry->domain_id = tag->domain_id;
__entry->pasid = tag->pasid; __entry->pasid = tag->pasid;

View File

@ -20,7 +20,7 @@ DECLARE_EVENT_CLASS(register_access,
__field(u32, value) __field(u32, value)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(hw_name, tegra_vde_reg_base_name(vde, base)); __assign_str(hw_name);
__entry->offset = offset; __entry->offset = offset;
__entry->value = value; __entry->value = value;
), ),

View File

@ -26,7 +26,7 @@ TRACE_EVENT(mei_reg_read,
__field(u32, val) __field(u32, val)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev, dev_name(dev)); __assign_str(dev);
__entry->reg = reg; __entry->reg = reg;
__entry->offs = offs; __entry->offs = offs;
__entry->val = val; __entry->val = val;
@ -45,7 +45,7 @@ TRACE_EVENT(mei_reg_write,
__field(u32, val) __field(u32, val)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev, dev_name(dev)); __assign_str(dev);
__entry->reg = reg; __entry->reg = reg;
__entry->offs = offs; __entry->offs = offs;
__entry->val = val; __entry->val = val;
@ -64,7 +64,7 @@ TRACE_EVENT(mei_pci_cfg_read,
__field(u32, val) __field(u32, val)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev, dev_name(dev)); __assign_str(dev);
__entry->reg = reg; __entry->reg = reg;
__entry->offs = offs; __entry->offs = offs;
__entry->val = val; __entry->val = val;

View File

@ -28,7 +28,7 @@ DECLARE_EVENT_CLASS(mv88e6xxx_atu_violation,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, dev_name(dev)); __assign_str(name);
__entry->spid = spid; __entry->spid = spid;
__entry->portvec = portvec; __entry->portvec = portvec;
memcpy(__entry->addr, addr, ETH_ALEN); memcpy(__entry->addr, addr, ETH_ALEN);
@ -68,7 +68,7 @@ DECLARE_EVENT_CLASS(mv88e6xxx_vtu_violation,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, dev_name(dev)); __assign_str(name);
__entry->spid = spid; __entry->spid = spid;
__entry->vid = vid; __entry->vid = vid;
), ),

View File

@ -57,7 +57,7 @@ DECLARE_EVENT_CLASS(dpaa_eth_fd,
__entry->fd_offset = qm_fd_get_offset(fd); __entry->fd_offset = qm_fd_get_offset(fd);
__entry->fd_length = qm_fd_get_length(fd); __entry->fd_length = qm_fd_get_length(fd);
__entry->fd_status = fd->status; __entry->fd_status = fd->status;
__assign_str(name, netdev->name); __assign_str(name);
), ),
/* This is what gets printed when the trace event is triggered */ /* This is what gets printed when the trace event is triggered */

View File

@ -48,7 +48,7 @@ DECLARE_EVENT_CLASS(dpaa2_eth_fd,
__entry->fd_addr = dpaa2_fd_get_addr(fd); __entry->fd_addr = dpaa2_fd_get_addr(fd);
__entry->fd_len = dpaa2_fd_get_len(fd); __entry->fd_len = dpaa2_fd_get_len(fd);
__entry->fd_offset = dpaa2_fd_get_offset(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 /* 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->dma_addr = dma_addr;
__entry->map_size = map_size; __entry->map_size = map_size;
__entry->bpid = bpid; __entry->bpid = bpid;
__assign_str(name, netdev->name); __assign_str(name);
), ),
/* This is what gets printed when the trace event is /* This is what gets printed when the trace event is

View File

@ -32,7 +32,7 @@ TRACE_EVENT(funeth_tx,
__entry->len = len; __entry->len = len;
__entry->sqe_idx = sqe_idx; __entry->sqe_idx = sqe_idx;
__entry->ngle = ngle; __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", 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->sqe_idx = sqe_idx;
__entry->num_sqes = num_sqes; __entry->num_sqes = num_sqes;
__entry->hw_head = hw_head; __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", 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->len = pkt_len;
__entry->hash = hash; __entry->hash = hash;
__entry->cls_vec = cls_vec; __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", TP_printk("%s: Rxq %u, CQ head %u, RQEs %u, len %u, hash %u, CV %#x",

View File

@ -84,7 +84,7 @@ TRACE_EVENT(hns3_tx_desc,
__entry->desc_dma = ring->desc_dma_addr, __entry->desc_dma = ring->desc_dma_addr,
memcpy(__entry->desc, &ring->desc[cur_ntu], memcpy(__entry->desc, &ring->desc[cur_ntu],
sizeof(struct hns3_desc)); sizeof(struct hns3_desc));
__assign_str(devname, ring->tqp->handle->kinfo.netdev->name); __assign_str(devname);
), ),
TP_printk( TP_printk(
@ -117,7 +117,7 @@ TRACE_EVENT(hns3_rx_desc,
__entry->buf_dma = ring->desc_cb[ring->next_to_clean].dma; __entry->buf_dma = ring->desc_cb[ring->next_to_clean].dma;
memcpy(__entry->desc, &ring->desc[ring->next_to_clean], memcpy(__entry->desc, &ring->desc[ring->next_to_clean],
sizeof(struct hns3_desc)); sizeof(struct hns3_desc));
__assign_str(devname, ring->tqp->handle->kinfo.netdev->name); __assign_str(devname);
), ),
TP_printk( TP_printk(

View File

@ -33,8 +33,8 @@ TRACE_EVENT(hclge_pf_mbx_get,
__entry->vfid = req->mbx_src_vfid; __entry->vfid = req->mbx_src_vfid;
__entry->code = req->msg.code; __entry->code = req->msg.code;
__entry->subcode = req->msg.subcode; __entry->subcode = req->msg.subcode;
__assign_str(pciname, pci_name(hdev->pdev)); __assign_str(pciname);
__assign_str(devname, hdev->vport[0].nic.kinfo.netdev->name); __assign_str(devname);
memcpy(__entry->mbx_data, req, memcpy(__entry->mbx_data, req,
sizeof(struct hclge_mbx_vf_to_pf_cmd)); sizeof(struct hclge_mbx_vf_to_pf_cmd));
), ),
@ -64,8 +64,8 @@ TRACE_EVENT(hclge_pf_mbx_send,
TP_fast_assign( TP_fast_assign(
__entry->vfid = req->dest_vfid; __entry->vfid = req->dest_vfid;
__entry->code = le16_to_cpu(req->msg.code); __entry->code = le16_to_cpu(req->msg.code);
__assign_str(pciname, pci_name(hdev->pdev)); __assign_str(pciname);
__assign_str(devname, hdev->vport[0].nic.kinfo.netdev->name); __assign_str(devname);
memcpy(__entry->mbx_data, req, memcpy(__entry->mbx_data, req,
sizeof(struct hclge_mbx_pf_to_vf_cmd)); 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->rsv = le16_to_cpu(desc->rsv);
__entry->index = index; __entry->index = index;
__entry->num = num; __entry->num = num;
__assign_str(pciname, pci_name(hw->cmq.csq.pdev)); __assign_str(pciname);
for (i = 0; i < HCLGE_DESC_DATA_LEN; i++) for (i = 0; i < HCLGE_DESC_DATA_LEN; i++)
__entry->data[i] = le32_to_cpu(desc->data[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; TP_fast_assign(int i;
__entry->index = index; __entry->index = index;
__entry->num = num; __entry->num = num;
__assign_str(pciname, pci_name(hw->cmq.csq.pdev)); __assign_str(pciname);
for (i = 0; i < PF_DESC_LEN; i++) for (i = 0; i < PF_DESC_LEN; i++)
__entry->data[i] = le32_to_cpu(data[i]); __entry->data[i] = le32_to_cpu(data[i]);
), ),

View File

@ -30,8 +30,8 @@ TRACE_EVENT(hclge_vf_mbx_get,
TP_fast_assign( TP_fast_assign(
__entry->vfid = req->dest_vfid; __entry->vfid = req->dest_vfid;
__entry->code = le16_to_cpu(req->msg.code); __entry->code = le16_to_cpu(req->msg.code);
__assign_str(pciname, pci_name(hdev->pdev)); __assign_str(pciname);
__assign_str(devname, hdev->nic.kinfo.netdev->name); __assign_str(devname);
memcpy(__entry->mbx_data, req, memcpy(__entry->mbx_data, req,
sizeof(struct hclge_mbx_pf_to_vf_cmd)); 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->vfid = req->mbx_src_vfid;
__entry->code = req->msg.code; __entry->code = req->msg.code;
__entry->subcode = req->msg.subcode; __entry->subcode = req->msg.subcode;
__assign_str(pciname, pci_name(hdev->pdev)); __assign_str(pciname);
__assign_str(devname, hdev->nic.kinfo.netdev->name); __assign_str(devname);
memcpy(__entry->mbx_data, req, memcpy(__entry->mbx_data, req,
sizeof(struct hclge_mbx_vf_to_pf_cmd)); 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->rsv = le16_to_cpu(desc->rsv);
__entry->index = index; __entry->index = index;
__entry->num = num; __entry->num = num;
__assign_str(pciname, pci_name(hw->cmq.csq.pdev)); __assign_str(pciname);
for (i = 0; i < HCLGE_DESC_DATA_LEN; i++) for (i = 0; i < HCLGE_DESC_DATA_LEN; i++)
__entry->data[i] = le32_to_cpu(desc->data[i]);), __entry->data[i] = le32_to_cpu(desc->data[i]);),

View File

@ -89,8 +89,8 @@ TRACE_EVENT(i40e_napi_poll,
__entry->tx_clean_complete = tx_clean_complete; __entry->tx_clean_complete = tx_clean_complete;
__entry->irq_num = q->irq_num; __entry->irq_num = q->irq_num;
__entry->curr_cpu = get_cpu(); __entry->curr_cpu = get_cpu();
__assign_str(qname, q->name); __assign_str(qname);
__assign_str(dev_name, napi->dev ? napi->dev->name : NO_DEV); __assign_str(dev_name);
__assign_bitmask(irq_affinity, cpumask_bits(&q->affinity_mask), __assign_bitmask(irq_affinity, cpumask_bits(&q->affinity_mask),
nr_cpumask_bits); nr_cpumask_bits);
), ),
@ -132,7 +132,7 @@ DECLARE_EVENT_CLASS(
__entry->ring = ring; __entry->ring = ring;
__entry->desc = desc; __entry->desc = desc;
__entry->buf = buf; __entry->buf = buf;
__assign_str(devname, ring->netdev->name); __assign_str(devname);
), ),
TP_printk( TP_printk(
@ -177,7 +177,7 @@ DECLARE_EVENT_CLASS(
__entry->ring = ring; __entry->ring = ring;
__entry->desc = desc; __entry->desc = desc;
__entry->xdp = xdp; __entry->xdp = xdp;
__assign_str(devname, ring->netdev->name); __assign_str(devname);
), ),
TP_printk( TP_printk(
@ -219,7 +219,7 @@ DECLARE_EVENT_CLASS(
TP_fast_assign( TP_fast_assign(
__entry->skb = skb; __entry->skb = skb;
__entry->ring = ring; __entry->ring = ring;
__assign_str(devname, ring->netdev->name); __assign_str(devname);
), ),
TP_printk( TP_printk(

View File

@ -83,7 +83,7 @@ DECLARE_EVENT_CLASS(
__entry->ring = ring; __entry->ring = ring;
__entry->desc = desc; __entry->desc = desc;
__entry->buf = buf; __entry->buf = buf;
__assign_str(devname, ring->netdev->name); __assign_str(devname);
), ),
TP_printk( TP_printk(
@ -128,7 +128,7 @@ DECLARE_EVENT_CLASS(
__entry->ring = ring; __entry->ring = ring;
__entry->desc = desc; __entry->desc = desc;
__entry->skb = skb; __entry->skb = skb;
__assign_str(devname, ring->netdev->name); __assign_str(devname);
), ),
TP_printk( TP_printk(
@ -170,7 +170,7 @@ DECLARE_EVENT_CLASS(
TP_fast_assign( TP_fast_assign(
__entry->skb = skb; __entry->skb = skb;
__entry->ring = ring; __entry->ring = ring;
__assign_str(devname, ring->netdev->name); __assign_str(devname);
), ),
TP_printk( TP_printk(

View File

@ -69,7 +69,7 @@ DECLARE_EVENT_CLASS(ice_rx_dim_template,
TP_fast_assign(__entry->q_vector = q_vector; TP_fast_assign(__entry->q_vector = q_vector;
__entry->dim = dim; __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", 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), __get_str(devname),
@ -96,7 +96,7 @@ DECLARE_EVENT_CLASS(ice_tx_dim_template,
TP_fast_assign(__entry->q_vector = q_vector; TP_fast_assign(__entry->q_vector = q_vector;
__entry->dim = dim; __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", 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), __get_str(devname),
@ -128,7 +128,7 @@ DECLARE_EVENT_CLASS(ice_tx_template,
TP_fast_assign(__entry->ring = ring; TP_fast_assign(__entry->ring = ring;
__entry->desc = desc; __entry->desc = desc;
__entry->buf = buf; __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), TP_printk("netdev: %s ring: %pK desc: %pK buf %pK", __get_str(devname),
__entry->ring, __entry->desc, __entry->buf) __entry->ring, __entry->desc, __entry->buf)
@ -156,7 +156,7 @@ DECLARE_EVENT_CLASS(ice_rx_template,
TP_fast_assign(__entry->ring = ring; TP_fast_assign(__entry->ring = ring;
__entry->desc = desc; __entry->desc = desc;
__assign_str(devname, ring->netdev->name);), __assign_str(devname);),
TP_printk("netdev: %s ring: %pK desc: %pK", __get_str(devname), TP_printk("netdev: %s ring: %pK desc: %pK", __get_str(devname),
__entry->ring, __entry->desc) __entry->ring, __entry->desc)
@ -180,7 +180,7 @@ DECLARE_EVENT_CLASS(ice_rx_indicate_template,
TP_fast_assign(__entry->ring = ring; TP_fast_assign(__entry->ring = ring;
__entry->desc = desc; __entry->desc = desc;
__entry->skb = skb; __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), TP_printk("netdev: %s ring: %pK desc: %pK skb %pK", __get_str(devname),
__entry->ring, __entry->desc, __entry->skb) __entry->ring, __entry->desc, __entry->skb)
@ -203,7 +203,7 @@ DECLARE_EVENT_CLASS(ice_xmit_template,
TP_fast_assign(__entry->ring = ring; TP_fast_assign(__entry->ring = ring;
__entry->skb = skb; __entry->skb = skb;
__assign_str(devname, ring->netdev->name);), __assign_str(devname);),
TP_printk("netdev: %s skb: %pK ring: %pK", __get_str(devname), TP_printk("netdev: %s skb: %pK ring: %pK", __get_str(devname),
__entry->skb, __entry->ring) __entry->skb, __entry->ring)

View File

@ -24,7 +24,7 @@ TRACE_EVENT(otx2_msg_alloc,
__field(u16, id) __field(u16, id)
__field(u64, size) __field(u64, size)
), ),
TP_fast_assign(__assign_str(dev, pci_name(pdev)); TP_fast_assign(__assign_str(dev);
__entry->id = id; __entry->id = id;
__entry->size = size; __entry->size = size;
), ),
@ -39,7 +39,7 @@ TRACE_EVENT(otx2_msg_send,
__field(u16, num_msgs) __field(u16, num_msgs)
__field(u64, msg_size) __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->num_msgs = num_msgs;
__entry->msg_size = msg_size; __entry->msg_size = msg_size;
), ),
@ -55,7 +55,7 @@ TRACE_EVENT(otx2_msg_check,
__field(u16, rspid) __field(u16, rspid)
__field(int, rc) __field(int, rc)
), ),
TP_fast_assign(__assign_str(dev, pci_name(pdev)); TP_fast_assign(__assign_str(dev);
__entry->reqid = reqid; __entry->reqid = reqid;
__entry->rspid = rspid; __entry->rspid = rspid;
__entry->rc = rc; __entry->rc = rc;
@ -72,8 +72,8 @@ TRACE_EVENT(otx2_msg_interrupt,
__string(str, msg) __string(str, msg)
__field(u64, intr) __field(u64, intr)
), ),
TP_fast_assign(__assign_str(dev, pci_name(pdev)); TP_fast_assign(__assign_str(dev);
__assign_str(str, msg); __assign_str(str);
__entry->intr = intr; __entry->intr = intr;
), ),
TP_printk("[%s] mbox interrupt %s (0x%llx)\n", __get_str(dev), 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(u16, id)
__field(int, err) __field(int, err)
), ),
TP_fast_assign(__assign_str(dev, pci_name(pdev)); TP_fast_assign(__assign_str(dev);
__entry->id = id; __entry->id = id;
__entry->err = err; __entry->err = err;
), ),

View File

@ -22,10 +22,10 @@ TRACE_EVENT(mlx5_cmd,
__field(u32, syndrome) __field(u32, syndrome)
__field(int, err) __field(int, err)
), ),
TP_fast_assign(__assign_str(command_str, command_str); TP_fast_assign(__assign_str(command_str);
__entry->opcode = opcode; __entry->opcode = opcode;
__entry->op_mod = op_mod; __entry->op_mod = op_mod;
__assign_str(status_str, status_str); __assign_str(status_str);
__entry->status = status; __entry->status = status;
__entry->syndrome = syndrome; __entry->syndrome = syndrome;
__entry->err = err; __entry->err = err;

View File

@ -25,7 +25,7 @@ TRACE_EVENT(mlx5e_rep_neigh_update,
struct in6_addr *pin6; struct in6_addr *pin6;
__be32 *p32; __be32 *p32;
__assign_str(devname, nhe->neigh_dev->name); __assign_str(devname);
__entry->neigh_connected = neigh_connected; __entry->neigh_connected = neigh_connected;
memcpy(__entry->ha, ha, ETH_ALEN); memcpy(__entry->ha, ha, ETH_ALEN);

View File

@ -86,7 +86,7 @@ TRACE_EVENT(mlx5e_tc_update_neigh_used_value,
struct in6_addr *pin6; struct in6_addr *pin6;
__be32 *p32; __be32 *p32;
__assign_str(devname, nhe->neigh_dev->name); __assign_str(devname);
__entry->neigh_used = neigh_used; __entry->neigh_used = neigh_used;
p32 = (__be32 *)__entry->v4; p32 = (__be32 *)__entry->v4;

View File

@ -55,12 +55,11 @@ TRACE_EVENT(mlx5_fw,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev_name, __assign_str(dev_name);
dev_name(tracer->dev->device));
__entry->trace_timestamp = trace_timestamp; __entry->trace_timestamp = trace_timestamp;
__entry->lost = lost; __entry->lost = lost;
__entry->event_id = event_id; __entry->event_id = event_id;
__assign_str(msg, msg); __assign_str(msg);
), ),
TP_printk("%s [0x%llx] %d [0x%x] %s", TP_printk("%s [0x%llx] %d [0x%x] %s",

View File

@ -17,7 +17,7 @@ TRACE_EVENT(mlx5_esw_vport_qos_destroy,
__field(unsigned short, vport_id) __field(unsigned short, vport_id)
__field(unsigned int, tsar_ix) __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->vport_id = vport->vport;
__entry->tsar_ix = vport->qos.esw_tsar_ix; __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(unsigned int, max_rate)
__field(void *, group) __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->vport_id = vport->vport;
__entry->tsar_ix = vport->qos.esw_tsar_ix; __entry->tsar_ix = vport->qos.esw_tsar_ix;
__entry->bw_share = bw_share; __entry->bw_share = bw_share;
@ -68,7 +68,7 @@ DECLARE_EVENT_CLASS(mlx5_esw_group_qos_template,
__field(const void *, group) __field(const void *, group)
__field(unsigned int, tsar_ix) __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->group = group;
__entry->tsar_ix = tsar_ix; __entry->tsar_ix = tsar_ix;
), ),
@ -102,7 +102,7 @@ TRACE_EVENT(mlx5_esw_group_qos_config,
__field(unsigned int, bw_share) __field(unsigned int, bw_share)
__field(unsigned int, max_rate) __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->group = group;
__entry->tsar_ix = tsar_ix; __entry->tsar_ix = tsar_ix;
__entry->bw_share = bw_share; __entry->bw_share = bw_share;

View File

@ -22,7 +22,7 @@ DECLARE_EVENT_CLASS(mlx5_sf_dev_template,
__field(u16, hw_fn_id) __field(u16, hw_fn_id)
__field(u32, sfnum) __field(u32, sfnum)
), ),
TP_fast_assign(__assign_str(devname, dev_name(dev->device)); TP_fast_assign(__assign_str(devname);
__entry->sfdev = sfdev; __entry->sfdev = sfdev;
__entry->aux_id = aux_id; __entry->aux_id = aux_id;
__entry->hw_fn_id = sfdev->fn_id; __entry->hw_fn_id = sfdev->fn_id;

View File

@ -24,7 +24,7 @@ TRACE_EVENT(mlx5_sf_add,
__field(u16, hw_fn_id) __field(u16, hw_fn_id)
__field(u32, sfnum) __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->port_index = port_index;
__entry->controller = controller; __entry->controller = controller;
__entry->hw_fn_id = hw_fn_id; __entry->hw_fn_id = hw_fn_id;
@ -46,7 +46,7 @@ TRACE_EVENT(mlx5_sf_free,
__field(u32, controller) __field(u32, controller)
__field(u16, hw_fn_id) __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->port_index = port_index;
__entry->controller = controller; __entry->controller = controller;
__entry->hw_fn_id = hw_fn_id; __entry->hw_fn_id = hw_fn_id;
@ -67,7 +67,7 @@ TRACE_EVENT(mlx5_sf_hwc_alloc,
__field(u16, hw_fn_id) __field(u16, hw_fn_id)
__field(u32, sfnum) __field(u32, sfnum)
), ),
TP_fast_assign(__assign_str(devname, dev_name(dev->device)); TP_fast_assign(__assign_str(devname);
__entry->controller = controller; __entry->controller = controller;
__entry->hw_fn_id = hw_fn_id; __entry->hw_fn_id = hw_fn_id;
__entry->sfnum = sfnum; __entry->sfnum = sfnum;
@ -84,7 +84,7 @@ TRACE_EVENT(mlx5_sf_hwc_free,
TP_STRUCT__entry(__string(devname, dev_name(dev->device)) TP_STRUCT__entry(__string(devname, dev_name(dev->device))
__field(u16, hw_fn_id) __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; __entry->hw_fn_id = hw_fn_id;
), ),
TP_printk("(%s) hw_id=0x%x\n", __get_str(devname), __entry->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)) TP_STRUCT__entry(__string(devname, dev_name(dev->device))
__field(u16, hw_fn_id) __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; __entry->hw_fn_id = hw_fn_id;
), ),
TP_printk("(%s) hw_id=0x%x\n", __get_str(devname), __entry->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(unsigned int, port_index)
__field(u32, controller) __field(u32, controller)
__field(u16, hw_fn_id)), __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->port_index = port_index;
__entry->controller = controller; __entry->controller = controller;
__entry->hw_fn_id = hw_fn_id; __entry->hw_fn_id = hw_fn_id;
@ -152,7 +152,7 @@ TRACE_EVENT(mlx5_sf_update_state,
__field(u16, hw_fn_id) __field(u16, hw_fn_id)
__field(u8, state) __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->port_index = port_index;
__entry->controller = controller; __entry->controller = controller;
__entry->hw_fn_id = hw_fn_id; __entry->hw_fn_id = hw_fn_id;

View File

@ -20,7 +20,7 @@ TRACE_EVENT(mlx5_sf_vhca_event,
__field(u32, sfnum) __field(u32, sfnum)
__field(u8, vhca_state) __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->hw_fn_id = event->function_id;
__entry->sfnum = event->sw_function_id; __entry->sfnum = event->sw_function_id;
__entry->vhca_state = event->new_vhca_state; __entry->vhca_state = event->new_vhca_state;

View File

@ -85,7 +85,7 @@ TRACE_EVENT(fjes_hw_request_info_err,
__string(err, err) __string(err, err)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(err, err); __assign_str(err);
), ),
TP_printk("%s", __get_str(err)) TP_printk("%s", __get_str(err))
); );
@ -145,7 +145,7 @@ TRACE_EVENT(fjes_hw_register_buff_addr_err,
__string(err, err) __string(err, err)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(err, err); __assign_str(err);
), ),
TP_printk("%s", __get_str(err)) TP_printk("%s", __get_str(err))
); );
@ -189,7 +189,7 @@ TRACE_EVENT(fjes_hw_unregister_buff_addr_err,
__string(err, err) __string(err, err)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(err, err); __assign_str(err);
), ),
TP_printk("%s", __get_str(err)) TP_printk("%s", __get_str(err))
); );
@ -232,7 +232,7 @@ TRACE_EVENT(fjes_hw_start_debug_err,
__string(err, err) __string(err, err)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(err, err); __assign_str(err);
), ),
TP_printk("%s", __get_str(err)) TP_printk("%s", __get_str(err))
); );
@ -258,7 +258,7 @@ TRACE_EVENT(fjes_hw_stop_debug_err,
__string(err, err) __string(err, err)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(err, err); __assign_str(err);
), ),
TP_printk("%s", __get_str(err)) TP_printk("%s", __get_str(err))
); );

View File

@ -51,7 +51,7 @@ DECLARE_EVENT_CLASS(rndis_msg_class,
__field( u32, msg_len ) __field( u32, msg_len )
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, ndev->name); __assign_str(name);
__entry->queue = q; __entry->queue = q;
__entry->req_id = msg->msg.init_req.req_id; __entry->req_id = msg->msg.init_req.req_id;
__entry->msg_type = msg->ndis_msg_type; __entry->msg_type = msg->ndis_msg_type;
@ -121,7 +121,7 @@ TRACE_EVENT(nvsp_send,
__field( u32, msg_type ) __field( u32, msg_type )
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, ndev->name); __assign_str(name);
__entry->msg_type = msg->hdr.msg_type; __entry->msg_type = msg->hdr.msg_type;
), ),
TP_printk("dev=%s type=%s", TP_printk("dev=%s type=%s",
@ -142,7 +142,7 @@ TRACE_EVENT(nvsp_send_pkt,
__field( u32, section_size ) __field( u32, section_size )
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, ndev->name); __assign_str(name);
__entry->qid = chan->offermsg.offer.sub_channel_index; __entry->qid = chan->offermsg.offer.sub_channel_index;
__entry->channel_type = rpkt->channel_type; __entry->channel_type = rpkt->channel_type;
__entry->section_index = rpkt->send_buf_section_index; __entry->section_index = rpkt->send_buf_section_index;
@ -165,7 +165,7 @@ TRACE_EVENT(nvsp_recv,
__field( u32, msg_type ) __field( u32, msg_type )
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, ndev->name); __assign_str(name);
__entry->qid = chan->offermsg.offer.sub_channel_index; __entry->qid = chan->offermsg.offer.sub_channel_index;
__entry->msg_type = msg->hdr.msg_type; __entry->msg_type = msg->hdr.msg_type;
), ),

View File

@ -55,8 +55,8 @@ DECLARE_EVENT_CLASS(ath10k_log_event,
__vstring(msg, vaf->fmt, vaf->va) __vstring(msg, vaf->fmt, vaf->va)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ar->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ar->dev)); __assign_str(driver);
__assign_vstr(msg, vaf->fmt, vaf->va); __assign_vstr(msg, vaf->fmt, vaf->va);
), ),
TP_printk( TP_printk(
@ -92,8 +92,8 @@ TRACE_EVENT(ath10k_log_dbg,
__vstring(msg, vaf->fmt, vaf->va) __vstring(msg, vaf->fmt, vaf->va)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ar->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ar->dev)); __assign_str(driver);
__entry->level = level; __entry->level = level;
__assign_vstr(msg, vaf->fmt, vaf->va); __assign_vstr(msg, vaf->fmt, vaf->va);
), ),
@ -121,10 +121,10 @@ TRACE_EVENT(ath10k_log_dbg_dump,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ar->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ar->dev)); __assign_str(driver);
__assign_str(msg, msg); __assign_str(msg);
__assign_str(prefix, prefix); __assign_str(prefix);
__entry->buf_len = buf_len; __entry->buf_len = buf_len;
memcpy(__get_dynamic_array(buf), buf, buf_len); memcpy(__get_dynamic_array(buf), buf, buf_len);
), ),
@ -152,8 +152,8 @@ TRACE_EVENT(ath10k_wmi_cmd,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ar->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ar->dev)); __assign_str(driver);
__entry->id = id; __entry->id = id;
__entry->buf_len = buf_len; __entry->buf_len = buf_len;
memcpy(__get_dynamic_array(buf), buf, buf_len); memcpy(__get_dynamic_array(buf), buf, buf_len);
@ -182,8 +182,8 @@ TRACE_EVENT(ath10k_wmi_event,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ar->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ar->dev)); __assign_str(driver);
__entry->id = id; __entry->id = id;
__entry->buf_len = buf_len; __entry->buf_len = buf_len;
memcpy(__get_dynamic_array(buf), buf, buf_len); memcpy(__get_dynamic_array(buf), buf, buf_len);
@ -211,8 +211,8 @@ TRACE_EVENT(ath10k_htt_stats,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ar->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ar->dev)); __assign_str(driver);
__entry->buf_len = buf_len; __entry->buf_len = buf_len;
memcpy(__get_dynamic_array(buf), buf, buf_len); memcpy(__get_dynamic_array(buf), buf, buf_len);
), ),
@ -239,8 +239,8 @@ TRACE_EVENT(ath10k_wmi_dbglog,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ar->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ar->dev)); __assign_str(driver);
__entry->hw_type = ar->hw_rev; __entry->hw_type = ar->hw_rev;
__entry->buf_len = buf_len; __entry->buf_len = buf_len;
memcpy(__get_dynamic_array(buf), buf, buf_len); memcpy(__get_dynamic_array(buf), buf, buf_len);
@ -269,8 +269,8 @@ TRACE_EVENT(ath10k_htt_pktlog,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ar->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ar->dev)); __assign_str(driver);
__entry->hw_type = ar->hw_rev; __entry->hw_type = ar->hw_rev;
__entry->buf_len = buf_len; __entry->buf_len = buf_len;
memcpy(__get_dynamic_array(pktlog), buf, buf_len); memcpy(__get_dynamic_array(pktlog), buf, buf_len);
@ -301,8 +301,8 @@ TRACE_EVENT(ath10k_htt_tx,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ar->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ar->dev)); __assign_str(driver);
__entry->msdu_id = msdu_id; __entry->msdu_id = msdu_id;
__entry->msdu_len = msdu_len; __entry->msdu_len = msdu_len;
__entry->vdev_id = vdev_id; __entry->vdev_id = vdev_id;
@ -332,8 +332,8 @@ TRACE_EVENT(ath10k_txrx_tx_unref,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ar->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ar->dev)); __assign_str(driver);
__entry->msdu_id = msdu_id; __entry->msdu_id = msdu_id;
), ),
@ -358,8 +358,8 @@ DECLARE_EVENT_CLASS(ath10k_hdr_event,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ar->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ar->dev)); __assign_str(driver);
__entry->len = ath10k_frm_hdr_len(data, len); __entry->len = ath10k_frm_hdr_len(data, len);
memcpy(__get_dynamic_array(data), data, __entry->len); memcpy(__get_dynamic_array(data), data, __entry->len);
), ),
@ -386,8 +386,8 @@ DECLARE_EVENT_CLASS(ath10k_payload_event,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ar->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ar->dev)); __assign_str(driver);
__entry->len = len - ath10k_frm_hdr_len(data, len); __entry->len = len - ath10k_frm_hdr_len(data, len);
memcpy(__get_dynamic_array(payload), memcpy(__get_dynamic_array(payload),
data + ath10k_frm_hdr_len(data, len), __entry->len); data + ath10k_frm_hdr_len(data, len), __entry->len);
@ -435,8 +435,8 @@ TRACE_EVENT(ath10k_htt_rx_desc,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ar->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ar->dev)); __assign_str(driver);
__entry->hw_type = ar->hw_rev; __entry->hw_type = ar->hw_rev;
__entry->len = len; __entry->len = len;
memcpy(__get_dynamic_array(rxdesc), data, len); memcpy(__get_dynamic_array(rxdesc), data, len);
@ -472,8 +472,8 @@ TRACE_EVENT(ath10k_wmi_diag_container,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ar->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ar->dev)); __assign_str(driver);
__entry->type = type; __entry->type = type;
__entry->timestamp = timestamp; __entry->timestamp = timestamp;
__entry->code = code; __entry->code = code;
@ -505,8 +505,8 @@ TRACE_EVENT(ath10k_wmi_diag,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ar->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ar->dev)); __assign_str(driver);
__entry->len = len; __entry->len = len;
memcpy(__get_dynamic_array(data), data, len); memcpy(__get_dynamic_array(data), data, len);
), ),

View File

@ -48,8 +48,8 @@ TRACE_EVENT(ath11k_htt_pktlog,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ar->ab->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ar->ab->dev)); __assign_str(driver);
__entry->buf_len = buf_len; __entry->buf_len = buf_len;
__entry->pktlog_checksum = pktlog_checksum; __entry->pktlog_checksum = pktlog_checksum;
memcpy(__get_dynamic_array(pktlog), buf, buf_len); memcpy(__get_dynamic_array(pktlog), buf, buf_len);
@ -77,8 +77,8 @@ TRACE_EVENT(ath11k_htt_ppdu_stats,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ar->ab->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ar->ab->dev)); __assign_str(driver);
__entry->len = len; __entry->len = len;
memcpy(__get_dynamic_array(ppdu), data, len); memcpy(__get_dynamic_array(ppdu), data, len);
), ),
@ -105,8 +105,8 @@ TRACE_EVENT(ath11k_htt_rxdesc,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ar->ab->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ar->ab->dev)); __assign_str(driver);
__entry->len = len; __entry->len = len;
__entry->log_type = log_type; __entry->log_type = log_type;
memcpy(__get_dynamic_array(rxdesc), data, len); memcpy(__get_dynamic_array(rxdesc), data, len);
@ -130,8 +130,8 @@ DECLARE_EVENT_CLASS(ath11k_log_event,
__vstring(msg, vaf->fmt, vaf->va) __vstring(msg, vaf->fmt, vaf->va)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ab->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ab->dev)); __assign_str(driver);
__assign_vstr(msg, vaf->fmt, vaf->va); __assign_vstr(msg, vaf->fmt, vaf->va);
), ),
TP_printk( TP_printk(
@ -171,8 +171,8 @@ TRACE_EVENT(ath11k_wmi_cmd,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ab->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ab->dev)); __assign_str(driver);
__entry->id = id; __entry->id = id;
__entry->buf_len = buf_len; __entry->buf_len = buf_len;
memcpy(__get_dynamic_array(buf), buf, buf_len); memcpy(__get_dynamic_array(buf), buf, buf_len);
@ -201,8 +201,8 @@ TRACE_EVENT(ath11k_wmi_event,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ab->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ab->dev)); __assign_str(driver);
__entry->id = id; __entry->id = id;
__entry->buf_len = buf_len; __entry->buf_len = buf_len;
memcpy(__get_dynamic_array(buf), buf, buf_len); memcpy(__get_dynamic_array(buf), buf, buf_len);
@ -230,8 +230,8 @@ TRACE_EVENT(ath11k_log_dbg,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ab->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ab->dev)); __assign_str(driver);
__entry->level = level; __entry->level = level;
WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg), WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg),
ATH11K_MSG_MAX, vaf->fmt, ATH11K_MSG_MAX, vaf->fmt,
@ -262,10 +262,10 @@ TRACE_EVENT(ath11k_log_dbg_dump,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ab->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ab->dev)); __assign_str(driver);
__assign_str(msg, msg); __assign_str(msg);
__assign_str(prefix, prefix); __assign_str(prefix);
__entry->buf_len = buf_len; __entry->buf_len = buf_len;
memcpy(__get_dynamic_array(buf), buf, buf_len); memcpy(__get_dynamic_array(buf), buf, buf_len);
), ),
@ -292,8 +292,8 @@ TRACE_EVENT(ath11k_wmi_diag,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ab->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ab->dev)); __assign_str(driver);
__entry->len = len; __entry->len = len;
memcpy(__get_dynamic_array(data), data, len); memcpy(__get_dynamic_array(data), data, len);
), ),
@ -318,8 +318,8 @@ TRACE_EVENT(ath11k_ps_timekeeper,
__field(u32, peer_ps_timestamp) __field(u32, peer_ps_timestamp)
), ),
TP_fast_assign(__assign_str(device, dev_name(ar->ab->dev)); TP_fast_assign(__assign_str(device);
__assign_str(driver, dev_driver_string(ar->ab->dev)); __assign_str(driver);
memcpy(__get_dynamic_array(peer_addr), peer_addr, memcpy(__get_dynamic_array(peer_addr), peer_addr,
ETH_ALEN); ETH_ALEN);
__entry->peer_ps_state = peer_ps_state; __entry->peer_ps_state = peer_ps_state;

View File

@ -36,8 +36,8 @@ TRACE_EVENT(ath12k_htt_pktlog,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ar->ab->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ar->ab->dev)); __assign_str(driver);
__entry->buf_len = buf_len; __entry->buf_len = buf_len;
__entry->pktlog_checksum = pktlog_checksum; __entry->pktlog_checksum = pktlog_checksum;
memcpy(__get_dynamic_array(pktlog), buf, buf_len); memcpy(__get_dynamic_array(pktlog), buf, buf_len);
@ -73,8 +73,8 @@ TRACE_EVENT(ath12k_htt_ppdu_stats,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ar->ab->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ar->ab->dev)); __assign_str(driver);
__entry->len = len; __entry->len = len;
__entry->info = ar->pdev->timestamp.info; __entry->info = ar->pdev->timestamp.info;
__entry->sync_tstmp_lo_us = ar->pdev->timestamp.sync_timestamp_hi_us; __entry->sync_tstmp_lo_us = ar->pdev->timestamp.sync_timestamp_hi_us;
@ -117,8 +117,8 @@ TRACE_EVENT(ath12k_htt_rxdesc,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ar->ab->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ar->ab->dev)); __assign_str(driver);
__entry->len = len; __entry->len = len;
__entry->type = type; __entry->type = type;
__entry->info = ar->pdev->timestamp.info; __entry->info = ar->pdev->timestamp.info;
@ -153,8 +153,8 @@ TRACE_EVENT(ath12k_wmi_diag,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, dev_name(ab->dev)); __assign_str(device);
__assign_str(driver, dev_driver_string(ab->dev)); __assign_str(driver);
__entry->len = len; __entry->len = len;
memcpy(__get_dynamic_array(data), data, len); memcpy(__get_dynamic_array(data), data, len);
), ),

View File

@ -304,8 +304,8 @@ TRACE_EVENT(ath6kl_log_dbg_dump,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(msg, msg); __assign_str(msg);
__assign_str(prefix, prefix); __assign_str(prefix);
__entry->buf_len = buf_len; __entry->buf_len = buf_len;
memcpy(__get_dynamic_array(buf), buf, buf_len); memcpy(__get_dynamic_array(buf), buf, buf_len);
), ),

View File

@ -44,8 +44,8 @@ TRACE_EVENT(ath_log,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(device, wiphy_name(wiphy)); __assign_str(device);
__assign_str(driver, KBUILD_MODNAME); __assign_str(driver);
__assign_vstr(msg, vaf->fmt, vaf->va); __assign_vstr(msg, vaf->fmt, vaf->va);
), ),

View File

@ -41,7 +41,7 @@ TRACE_EVENT(brcmf_err,
__vstring(msg, vaf->fmt, vaf->va) __vstring(msg, vaf->fmt, vaf->va)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(func, func); __assign_str(func);
__assign_vstr(msg, vaf->fmt, vaf->va); __assign_vstr(msg, vaf->fmt, vaf->va);
), ),
TP_printk("%s: %s", __get_str(func), __get_str(msg)) TP_printk("%s: %s", __get_str(func), __get_str(msg))
@ -57,7 +57,7 @@ TRACE_EVENT(brcmf_dbg,
), ),
TP_fast_assign( TP_fast_assign(
__entry->level = level; __entry->level = level;
__assign_str(func, func); __assign_str(func);
__assign_vstr(msg, vaf->fmt, vaf->va); __assign_vstr(msg, vaf->fmt, vaf->va);
), ),
TP_printk("%s: %s", __get_str(func), __get_str(msg)) TP_printk("%s: %s", __get_str(func), __get_str(msg))

View File

@ -81,7 +81,7 @@ TRACE_EVENT(brcms_macintstatus,
__field(u32, mask) __field(u32, mask)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev, dev_name(dev)); __assign_str(dev);
__entry->in_isr = in_isr; __entry->in_isr = in_isr;
__entry->macintstatus = macintstatus; __entry->macintstatus = macintstatus;
__entry->mask = mask; __entry->mask = mask;

View File

@ -71,7 +71,7 @@ TRACE_EVENT(brcms_dbg,
), ),
TP_fast_assign( TP_fast_assign(
__entry->level = level; __entry->level = level;
__assign_str(func, func); __assign_str(func);
__assign_vstr(msg, vaf->fmt, vaf->va); __assign_vstr(msg, vaf->fmt, vaf->va);
), ),
TP_printk("%s: %s", __get_str(func), __get_str(msg)) TP_printk("%s: %s", __get_str(func), __get_str(msg))

View File

@ -31,7 +31,7 @@ TRACE_EVENT(brcms_txdesc,
__dynamic_array(u8, txh, txh_len) __dynamic_array(u8, txh, txh_len)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev, dev_name(dev)); __assign_str(dev);
memcpy(__get_dynamic_array(txh), txh, txh_len); memcpy(__get_dynamic_array(txh), txh, txh_len);
), ),
TP_printk("[%s] txdesc", __get_str(dev)) TP_printk("[%s] txdesc", __get_str(dev))
@ -54,7 +54,7 @@ TRACE_EVENT(brcms_txstatus,
__field(u16, ackphyrxsh) __field(u16, ackphyrxsh)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev, dev_name(dev)); __assign_str(dev);
__entry->framelen = framelen; __entry->framelen = framelen;
__entry->frameid = frameid; __entry->frameid = frameid;
__entry->status = status; __entry->status = status;
@ -85,7 +85,7 @@ TRACE_EVENT(brcms_ampdu_session,
__field(u16, dma_len) __field(u16, dma_len)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev, dev_name(dev)); __assign_str(dev);
__entry->max_ampdu_len = max_ampdu_len; __entry->max_ampdu_len = max_ampdu_len;
__entry->max_ampdu_frames = max_ampdu_frames; __entry->max_ampdu_frames = max_ampdu_frames;
__entry->ampdu_len = ampdu_len; __entry->ampdu_len = ampdu_len;

View File

@ -57,7 +57,7 @@ TRACE_EVENT(iwlwifi_dbg,
), ),
TP_fast_assign( TP_fast_assign(
__entry->level = level; __entry->level = level;
__assign_str(function, function); __assign_str(function);
__assign_vstr(msg, vaf->fmt, vaf->va); __assign_vstr(msg, vaf->fmt, vaf->va);
), ),
TP_printk("%s", __get_str(msg)) TP_printk("%s", __get_str(msg))

View File

@ -87,7 +87,7 @@ static inline void trace_ ## name(proto) {}
#endif #endif
#define DEV_ENTRY __string(dev, dev_name(dev)) #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-io.h"
#include "iwl-devtrace-ucode.h" #include "iwl-devtrace-ucode.h"

View File

@ -18,7 +18,7 @@ TRACE_EVENT(pmic_pdcharger_ulog_msg,
__string(msg, msg) __string(msg, msg)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(msg, msg); __assign_str(msg);
), ),
TP_printk("%s", __get_str(msg)) TP_printk("%s", __get_str(msg))
); );

View File

@ -18,7 +18,7 @@ TRACE_EVENT(aoss_send,
__string(msg, msg) __string(msg, msg)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(msg, msg); __assign_str(msg);
), ),
TP_printk("%s", __get_str(msg)) TP_printk("%s", __get_str(msg))
); );
@ -31,7 +31,7 @@ TRACE_EVENT(aoss_send_done,
__field(int, ret) __field(int, ret)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(msg, msg); __assign_str(msg);
__entry->ret = ret; __entry->ret = ret;
), ),
TP_printk("%s: %d", __get_str(msg), __entry->ret) TP_printk("%s: %d", __get_str(msg), __entry->ret)

View File

@ -26,7 +26,7 @@ TRACE_EVENT(rpmh_tx_done,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, d->name); __assign_str(name);
__entry->m = m; __entry->m = m;
__entry->addr = r->cmds[0].addr; __entry->addr = r->cmds[0].addr;
__entry->data = r->cmds[0].data; __entry->data = r->cmds[0].data;
@ -55,7 +55,7 @@ TRACE_EVENT(rpmh_send_msg,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, d->name); __assign_str(name);
__entry->m = m; __entry->m = m;
__entry->state = state; __entry->state = state;
__entry->n = n; __entry->n = n;

View File

@ -37,7 +37,7 @@ TRACE_EVENT(thermal_temperature,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(thermal_zone, tz->type); __assign_str(thermal_zone);
__entry->id = tz->id; __entry->id = tz->id;
__entry->temp_prev = tz->last_temperature; __entry->temp_prev = tz->last_temperature;
__entry->temp = tz->temperature; __entry->temp = tz->temperature;
@ -60,7 +60,7 @@ TRACE_EVENT(cdev_update,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(type, cdev->type); __assign_str(type);
__entry->target = target; __entry->target = target;
), ),
@ -82,7 +82,7 @@ TRACE_EVENT(thermal_zone_trip,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(thermal_zone, tz->type); __assign_str(thermal_zone);
__entry->id = tz->id; __entry->id = tz->id;
__entry->trip = trip; __entry->trip = trip;
__entry->trip_type = trip_type; __entry->trip_type = trip_type;
@ -156,7 +156,7 @@ TRACE_EVENT(thermal_power_devfreq_get_power,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(type, cdev->type); __assign_str(type);
__entry->freq = freq; __entry->freq = freq;
__entry->busy_time = status->busy_time; __entry->busy_time = status->busy_time;
__entry->total_time = status->total_time; __entry->total_time = status->total_time;
@ -184,7 +184,7 @@ TRACE_EVENT(thermal_power_devfreq_limit,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(type, cdev->type); __assign_str(type);
__entry->freq = freq; __entry->freq = freq;
__entry->cdev_state = cdev_state; __entry->cdev_state = cdev_state;
__entry->power = power; __entry->power = power;

View File

@ -33,7 +33,7 @@ TRACE_EVENT(cdns3_halt,
__field(u8, flush) __field(u8, flush)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, ep_priv->name); __assign_str(name);
__entry->halt = halt; __entry->halt = halt;
__entry->flush = flush; __entry->flush = flush;
), ),
@ -49,8 +49,8 @@ TRACE_EVENT(cdns3_wa1,
__string(msg, msg) __string(msg, msg)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(ep_name, ep_priv->name); __assign_str(ep_name);
__assign_str(msg, msg); __assign_str(msg);
), ),
TP_printk("WA1: %s %s", __get_str(ep_name), __get_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) __string(msg, msg)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(ep_name, ep_priv->name); __assign_str(ep_name);
__assign_str(msg, msg); __assign_str(msg);
), ),
TP_printk("WA2: %s %s", __get_str(ep_name), __get_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) __field(u32, ep_trbaddr)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, ep_name); __assign_str(name);
__entry->ep_trbaddr = ep_trbaddr; __entry->ep_trbaddr = ep_trbaddr;
), ),
TP_printk("%s, ep_trbaddr %08x", __get_str(name), TP_printk("%s, ep_trbaddr %08x", __get_str(name),
@ -125,7 +125,7 @@ DECLARE_EVENT_CLASS(cdns3_log_epx_irq,
__field(u32, use_streams) __field(u32, use_streams)
), ),
TP_fast_assign( 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_sts = readl(&priv_dev->regs->ep_sts);
__entry->ep_traddr = readl(&priv_dev->regs->ep_traddr); __entry->ep_traddr = readl(&priv_dev->regs->ep_traddr);
__entry->ep_last_sid = priv_ep->last_stream_id; __entry->ep_last_sid = priv_ep->last_stream_id;
@ -214,7 +214,7 @@ DECLARE_EVENT_CLASS(cdns3_log_request,
__field(unsigned int, stream_id) __field(unsigned int, stream_id)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, req->priv_ep->name); __assign_str(name);
__entry->req = req; __entry->req = req;
__entry->buf = req->request.buf; __entry->buf = req->request.buf;
__entry->actual = req->request.actual; __entry->actual = req->request.actual;
@ -294,7 +294,7 @@ DECLARE_EVENT_CLASS(cdns3_stream_split_transfer_len,
__field(unsigned int, stream_id) __field(unsigned int, stream_id)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, req->priv_ep->name); __assign_str(name);
__entry->req = req; __entry->req = req;
__entry->actual = req->request.length; __entry->actual = req->request.length;
__entry->length = req->request.actual; __entry->length = req->request.actual;
@ -329,7 +329,7 @@ DECLARE_EVENT_CLASS(cdns3_log_aligned_request,
__field(u32, aligned_buf_size) __field(u32, aligned_buf_size)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, priv_req->priv_ep->name); __assign_str(name);
__entry->req = &priv_req->request; __entry->req = &priv_req->request;
__entry->buf = priv_req->request.buf; __entry->buf = priv_req->request.buf;
__entry->dma = priv_req->request.dma; __entry->dma = priv_req->request.dma;
@ -364,7 +364,7 @@ DECLARE_EVENT_CLASS(cdns3_log_map_request,
__field(dma_addr_t, dma) __field(dma_addr_t, dma)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, priv_req->priv_ep->name); __assign_str(name);
__entry->req = &priv_req->request; __entry->req = &priv_req->request;
__entry->buf = priv_req->request.buf; __entry->buf = priv_req->request.buf;
__entry->dma = priv_req->request.dma; __entry->dma = priv_req->request.dma;
@ -395,7 +395,7 @@ DECLARE_EVENT_CLASS(cdns3_log_trb,
__field(unsigned int, last_stream_id) __field(unsigned int, last_stream_id)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, priv_ep->name); __assign_str(name);
__entry->trb = trb; __entry->trb = trb;
__entry->buffer = le32_to_cpu(trb->buffer); __entry->buffer = le32_to_cpu(trb->buffer);
__entry->length = le32_to_cpu(trb->length); __entry->length = le32_to_cpu(trb->length);
@ -467,7 +467,7 @@ DECLARE_EVENT_CLASS(cdns3_log_ep,
__field(u8, dequeue) __field(u8, dequeue)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, priv_ep->name); __assign_str(name);
__entry->maxpacket = priv_ep->endpoint.maxpacket; __entry->maxpacket = priv_ep->endpoint.maxpacket;
__entry->maxpacket_limit = priv_ep->endpoint.maxpacket_limit; __entry->maxpacket_limit = priv_ep->endpoint.maxpacket_limit;
__entry->max_streams = priv_ep->endpoint.max_streams; __entry->max_streams = priv_ep->endpoint.max_streams;

View File

@ -48,7 +48,7 @@ DECLARE_EVENT_CLASS(cdnsp_log_ep,
__field(u8, drbls_count) __field(u8, drbls_count)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, pep->name); __assign_str(name);
__entry->state = pep->ep_state; __entry->state = pep->ep_state;
__entry->stream_id = stream_id; __entry->stream_id = stream_id;
__entry->enabled = pep->ep_state & EP_HAS_STREAMS; __entry->enabled = pep->ep_state & EP_HAS_STREAMS;
@ -138,7 +138,7 @@ DECLARE_EVENT_CLASS(cdnsp_log_simple,
__string(text, msg) __string(text, msg)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(text, msg); __assign_str(text);
), ),
TP_printk("%s", __get_str(text)) TP_printk("%s", __get_str(text))
); );
@ -303,7 +303,7 @@ DECLARE_EVENT_CLASS(cdnsp_log_bounce,
__field(unsigned int, unalign) __field(unsigned int, unalign)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, preq->pep->name); __assign_str(name);
__entry->new_buf_len = new_buf_len; __entry->new_buf_len = new_buf_len;
__entry->offset = offset; __entry->offset = offset;
__entry->dma = dma; __entry->dma = dma;
@ -470,7 +470,7 @@ DECLARE_EVENT_CLASS(cdnsp_log_request,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, req->pep->name); __assign_str(name);
__entry->request = &req->request; __entry->request = &req->request;
__entry->preq = req; __entry->preq = req;
__entry->buf = req->request.buf; __entry->buf = req->request.buf;
@ -674,7 +674,7 @@ DECLARE_EVENT_CLASS(cdnsp_log_td_info,
__field(dma_addr_t, trb_dma) __field(dma_addr_t, trb_dma)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, preq->pep->name); __assign_str(name);
__entry->request = &preq->request; __entry->request = &preq->request;
__entry->preq = preq; __entry->preq = preq;
__entry->first_trb = preq->td.first_trb; __entry->first_trb = preq->td.first_trb;

View File

@ -31,7 +31,7 @@ TRACE_EVENT(ci_log,
__vstring(msg, vaf->fmt, vaf->va) __vstring(msg, vaf->fmt, vaf->va)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, dev_name(ci->dev)); __assign_str(name);
__assign_vstr(msg, vaf->fmt, vaf->va); __assign_vstr(msg, vaf->fmt, vaf->va);
), ),
TP_printk("%s: %s", __get_str(name), __get_str(msg)) TP_printk("%s: %s", __get_str(name), __get_str(msg))
@ -51,7 +51,7 @@ DECLARE_EVENT_CLASS(ci_log_trb,
__field(u32, type) __field(u32, type)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, hwep->name); __assign_str(name);
__entry->req = &hwreq->req; __entry->req = &hwreq->req;
__entry->td = td; __entry->td = td;
__entry->dma = td->dma; __entry->dma = td->dma;

View File

@ -112,7 +112,7 @@ DECLARE_EVENT_CLASS(dwc3_log_request,
__field(int, no_interrupt) __field(int, no_interrupt)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, req->dep->name); __assign_str(name);
__entry->req = req; __entry->req = req;
__entry->actual = req->request.actual; __entry->actual = req->request.actual;
__entry->length = req->request.length; __entry->length = req->request.length;
@ -193,7 +193,7 @@ DECLARE_EVENT_CLASS(dwc3_log_gadget_ep_cmd,
__field(int, cmd_status) __field(int, cmd_status)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, dep->name); __assign_str(name);
__entry->cmd = cmd; __entry->cmd = cmd;
__entry->param0 = params->param0; __entry->param0 = params->param0;
__entry->param1 = params->param1; __entry->param1 = params->param1;
@ -229,7 +229,7 @@ DECLARE_EVENT_CLASS(dwc3_log_trb,
__field(u32, dequeue) __field(u32, dequeue)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, dep->name); __assign_str(name);
__entry->trb = trb; __entry->trb = trb;
__entry->bpl = trb->bpl; __entry->bpl = trb->bpl;
__entry->bph = trb->bph; __entry->bph = trb->bph;
@ -301,7 +301,7 @@ DECLARE_EVENT_CLASS(dwc3_log_ep,
__field(u8, trb_dequeue) __field(u8, trb_dequeue)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, dep->name); __assign_str(name);
__entry->maxpacket = dep->endpoint.maxpacket; __entry->maxpacket = dep->endpoint.maxpacket;
__entry->maxpacket_limit = dep->endpoint.maxpacket_limit; __entry->maxpacket_limit = dep->endpoint.maxpacket_limit;
__entry->max_streams = dep->endpoint.max_streams; __entry->max_streams = dep->endpoint.max_streams;

View File

@ -64,7 +64,7 @@ DECLARE_EVENT_CLASS(cdns2_log_simple,
__string(text, msg) __string(text, msg)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(text, msg); __assign_str(text);
), ),
TP_printk("%s", __get_str(text)) TP_printk("%s", __get_str(text))
); );
@ -103,7 +103,7 @@ TRACE_EVENT(cdns2_ep_halt,
__field(u8, flush) __field(u8, flush)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, ep_priv->name); __assign_str(name);
__entry->halt = halt; __entry->halt = halt;
__entry->flush = flush; __entry->flush = flush;
), ),
@ -119,8 +119,8 @@ TRACE_EVENT(cdns2_wa1,
__string(msg, msg) __string(msg, msg)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(ep_name, ep_priv->name); __assign_str(ep_name);
__assign_str(msg, msg); __assign_str(msg);
), ),
TP_printk("WA1: %s %s", __get_str(ep_name), __get_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) __field(u32, ep_trbaddr)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, pep->name); __assign_str(name);
__entry->ep_trbaddr = ep_trbaddr; __entry->ep_trbaddr = ep_trbaddr;
), ),
TP_printk("%s, ep_trbaddr %08x", __get_str(name), TP_printk("%s, ep_trbaddr %08x", __get_str(name),
@ -196,7 +196,7 @@ DECLARE_EVENT_CLASS(cdns2_log_epx_irq,
__field(u32, ep_traddr) __field(u32, ep_traddr)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(ep_name, pep->name); __assign_str(ep_name);
__entry->ep_sts = readl(&pdev->adma_regs->ep_sts); __entry->ep_sts = readl(&pdev->adma_regs->ep_sts);
__entry->ep_ists = readl(&pdev->adma_regs->ep_ists); __entry->ep_ists = readl(&pdev->adma_regs->ep_ists);
__entry->ep_traddr = readl(&pdev->adma_regs->ep_traddr); __entry->ep_traddr = readl(&pdev->adma_regs->ep_traddr);
@ -288,7 +288,7 @@ DECLARE_EVENT_CLASS(cdns2_log_request,
__field(int, end_trb) __field(int, end_trb)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, preq->pep->name); __assign_str(name);
__entry->request = &preq->request; __entry->request = &preq->request;
__entry->preq = preq; __entry->preq = preq;
__entry->buf = preq->request.buf; __entry->buf = preq->request.buf;
@ -380,7 +380,7 @@ DECLARE_EVENT_CLASS(cdns2_log_map_request,
__field(dma_addr_t, dma) __field(dma_addr_t, dma)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, priv_req->pep->name); __assign_str(name);
__entry->req = &priv_req->request; __entry->req = &priv_req->request;
__entry->buf = priv_req->request.buf; __entry->buf = priv_req->request.buf;
__entry->dma = priv_req->request.dma; __entry->dma = priv_req->request.dma;
@ -411,7 +411,7 @@ DECLARE_EVENT_CLASS(cdns2_log_trb,
__field(u32, type) __field(u32, type)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, pep->name); __assign_str(name);
__entry->trb = trb; __entry->trb = trb;
__entry->buffer = le32_to_cpu(trb->buffer); __entry->buffer = le32_to_cpu(trb->buffer);
__entry->length = le32_to_cpu(trb->length); __entry->length = le32_to_cpu(trb->length);
@ -476,7 +476,7 @@ DECLARE_EVENT_CLASS(cdns2_log_ep,
__field(u8, dequeue) __field(u8, dequeue)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, pep->name); __assign_str(name);
__entry->maxpacket = pep->endpoint.maxpacket; __entry->maxpacket = pep->endpoint.maxpacket;
__entry->maxpacket_limit = pep->endpoint.maxpacket_limit; __entry->maxpacket_limit = pep->endpoint.maxpacket_limit;
__entry->flags = pep->ep_state; __entry->flags = pep->ep_state;
@ -568,7 +568,7 @@ DECLARE_EVENT_CLASS(cdns2_log_epx_reg_config,
__field(u32, ep_cfg_reg) __field(u32, ep_cfg_reg)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(ep_name, pep->name); __assign_str(ep_name);
__entry->burst_size = pep->trb_burst_size; __entry->burst_size = pep->trb_burst_size;
__entry->maxpack_reg = pep->dir ? readw(&pdev->epx_regs->txmaxpack[pep->num - 1]) : __entry->maxpack_reg = pep->dir ? readw(&pdev->epx_regs->txmaxpack[pep->num - 1]) :
readw(&pdev->epx_regs->rxmaxpack[pep->num - 1]); readw(&pdev->epx_regs->rxmaxpack[pep->num - 1]);

View File

@ -157,7 +157,7 @@ DECLARE_EVENT_CLASS(udc_log_ep,
__field(int, ret) __field(int, ret)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, ep->name); __assign_str(name);
__entry->maxpacket = ep->maxpacket; __entry->maxpacket = ep->maxpacket;
__entry->maxpacket_limit = ep->maxpacket_limit; __entry->maxpacket_limit = ep->maxpacket_limit;
__entry->max_streams = ep->max_streams; __entry->max_streams = ep->max_streams;
@ -233,7 +233,7 @@ DECLARE_EVENT_CLASS(udc_log_req,
__field(struct usb_request *, req) __field(struct usb_request *, req)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, ep->name); __assign_str(name);
__entry->length = req->length; __entry->length = req->length;
__entry->actual = req->actual; __entry->actual = req->actual;
__entry->num_sgs = req->num_sgs; __entry->num_sgs = req->num_sgs;

View File

@ -26,7 +26,7 @@ TRACE_EVENT(mtu3_log,
__vstring(msg, vaf->fmt, vaf->va) __vstring(msg, vaf->fmt, vaf->va)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, dev_name(dev)); __assign_str(name);
__assign_vstr(msg, vaf->fmt, vaf->va); __assign_vstr(msg, vaf->fmt, vaf->va);
), ),
TP_printk("%s: %s", __get_str(name), __get_str(msg)) TP_printk("%s: %s", __get_str(name), __get_str(msg))
@ -127,7 +127,7 @@ DECLARE_EVENT_CLASS(mtu3_log_request,
__field(int, no_interrupt) __field(int, no_interrupt)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, mreq->mep->name); __assign_str(name);
__entry->mreq = mreq; __entry->mreq = mreq;
__entry->gpd = mreq->gpd; __entry->gpd = mreq->gpd;
__entry->actual = mreq->request.actual; __entry->actual = mreq->request.actual;
@ -182,7 +182,7 @@ DECLARE_EVENT_CLASS(mtu3_log_gpd,
__field(u32, dw3) __field(u32, dw3)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, mep->name); __assign_str(name);
__entry->gpd = gpd; __entry->gpd = gpd;
__entry->dw0 = le32_to_cpu(gpd->dw0_info); __entry->dw0 = le32_to_cpu(gpd->dw0_info);
__entry->dw1 = le32_to_cpu(gpd->next_gpd); __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) __field(struct mtu3_gpd_ring *, gpd_ring)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, mep->name); __assign_str(name);
__entry->type = mep->type; __entry->type = mep->type;
__entry->slot = mep->slot; __entry->slot = mep->slot;
__entry->maxp = mep->ep.maxpacket; __entry->maxp = mep->ep.maxpacket;

View File

@ -31,7 +31,7 @@ TRACE_EVENT(musb_log,
__vstring(msg, vaf->fmt, vaf->va) __vstring(msg, vaf->fmt, vaf->va)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, dev_name(musb->controller)); __assign_str(name);
__assign_vstr(msg, vaf->fmt, vaf->va); __assign_vstr(msg, vaf->fmt, vaf->va);
), ),
TP_printk("%s: %s", __get_str(name), __get_str(msg)) TP_printk("%s: %s", __get_str(name), __get_str(msg))
@ -46,9 +46,9 @@ TRACE_EVENT(musb_state,
__string(desc, desc) __string(desc, desc)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, dev_name(musb->controller)); __assign_str(name);
__entry->devctl = devctl; __entry->devctl = devctl;
__assign_str(desc, desc); __assign_str(desc);
), ),
TP_printk("%s: devctl: %02x %s", __get_str(name), __entry->devctl, TP_printk("%s: devctl: %02x %s", __get_str(name), __entry->devctl,
__get_str(desc)) __get_str(desc))
@ -160,7 +160,7 @@ TRACE_EVENT(musb_isr,
__field(u16, int_rx) __field(u16, int_rx)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, dev_name(musb->controller)); __assign_str(name);
__entry->int_usb = musb->int_usb; __entry->int_usb = musb->int_usb;
__entry->int_tx = musb->int_tx; __entry->int_tx = musb->int_tx;
__entry->int_rx = musb->int_rx; __entry->int_rx = musb->int_rx;
@ -184,7 +184,7 @@ DECLARE_EVENT_CLASS(musb_urb,
__field(u32, actual_len) __field(u32, actual_len)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, dev_name(musb->controller)); __assign_str(name);
__entry->urb = urb; __entry->urb = urb;
__entry->pipe = urb->pipe; __entry->pipe = urb->pipe;
__entry->status = urb->status; __entry->status = urb->status;
@ -325,7 +325,7 @@ DECLARE_EVENT_CLASS(musb_cppi41,
), ),
TP_fast_assign( TP_fast_assign(
__entry->ch = ch; __entry->ch = ch;
__assign_str(name, dev_name(ch->hw_ep->musb->controller)); __assign_str(name);
__entry->hwep = ch->hw_ep->epnum; __entry->hwep = ch->hw_ep->epnum;
__entry->port = ch->port_num; __entry->port = ch->port_num;
__entry->is_tx = ch->is_tx; __entry->is_tx = ch->is_tx;

View File

@ -43,7 +43,7 @@ DECLARE_EVENT_CLASS(fs_str,
TP_fast_assign( TP_fast_assign(
__entry->dev = c->dev; __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)) 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; __entry->dev = trans->c->dev;
strscpy(__entry->trans_fn, trans->fn, sizeof(__entry->trans_fn)); strscpy(__entry->trans_fn, trans->fn, sizeof(__entry->trans_fn));
__entry->caller_ip = caller_ip; __entry->caller_ip = caller_ip;
__assign_str(str, str); __assign_str(str);
), ),
TP_printk("%d,%d %s %pS %s", TP_printk("%d,%d %s %pS %s",
@ -85,7 +85,7 @@ DECLARE_EVENT_CLASS(trans_str_nocaller,
TP_fast_assign( TP_fast_assign(
__entry->dev = trans->c->dev; __entry->dev = trans->c->dev;
strscpy(__entry->trans_fn, trans->fn, sizeof(__entry->trans_fn)); strscpy(__entry->trans_fn, trans->fn, sizeof(__entry->trans_fn));
__assign_str(str, str); __assign_str(str);
), ),
TP_printk("%d,%d %s %s", TP_printk("%d,%d %s %s",

View File

@ -47,7 +47,7 @@ DECLARE_EVENT_CLASS(nfs4_clientid_event,
TP_fast_assign( TP_fast_assign(
__entry->error = error < 0 ? -error : 0; __entry->error = error < 0 ? -error : 0;
__assign_str(dstaddr, clp->cl_hostname); __assign_str(dstaddr);
), ),
TP_printk( TP_printk(
@ -94,8 +94,8 @@ TRACE_EVENT(nfs4_trunked_exchange_id,
TP_fast_assign( TP_fast_assign(
__entry->error = error < 0 ? -error : 0; __entry->error = error < 0 ? -error : 0;
__assign_str(main_addr, clp->cl_hostname); __assign_str(main_addr);
__assign_str(trunk_addr, addr); __assign_str(trunk_addr);
), ),
TP_printk( TP_printk(
@ -365,7 +365,7 @@ TRACE_EVENT(nfs4_state_mgr,
TP_fast_assign( TP_fast_assign(
__entry->state = clp->cl_state; __entry->state = clp->cl_state;
__assign_str(hostname, clp->cl_hostname); __assign_str(hostname);
), ),
TP_printk( TP_printk(
@ -393,8 +393,8 @@ TRACE_EVENT(nfs4_state_mgr_failed,
TP_fast_assign( TP_fast_assign(
__entry->error = status < 0 ? -status : 0; __entry->error = status < 0 ? -status : 0;
__entry->state = clp->cl_state; __entry->state = clp->cl_state;
__assign_str(hostname, clp->cl_hostname); __assign_str(hostname);
__assign_str(section, section); __assign_str(section);
), ),
TP_printk( TP_printk(
@ -578,7 +578,7 @@ DECLARE_EVENT_CLASS(nfs4_open_event,
__entry->fhandle = 0; __entry->fhandle = 0;
} }
__entry->dir = NFS_FILEID(d_inode(ctx->dentry->d_parent)); __entry->dir = NFS_FILEID(d_inode(ctx->dentry->d_parent));
__assign_str(name, ctx->dentry->d_name.name); __assign_str(name);
), ),
TP_printk( TP_printk(
@ -1072,7 +1072,7 @@ DECLARE_EVENT_CLASS(nfs4_lookup_event,
__entry->dev = dir->i_sb->s_dev; __entry->dev = dir->i_sb->s_dev;
__entry->dir = NFS_FILEID(dir); __entry->dir = NFS_FILEID(dir);
__entry->error = -error; __entry->error = -error;
__assign_str(name, name->name); __assign_str(name);
), ),
TP_printk( TP_printk(
@ -1156,8 +1156,8 @@ TRACE_EVENT(nfs4_rename,
__entry->olddir = NFS_FILEID(olddir); __entry->olddir = NFS_FILEID(olddir);
__entry->newdir = NFS_FILEID(newdir); __entry->newdir = NFS_FILEID(newdir);
__entry->error = error < 0 ? -error : 0; __entry->error = error < 0 ? -error : 0;
__assign_str(oldname, oldname->name); __assign_str(oldname);
__assign_str(newname, newname->name); __assign_str(newname);
), ),
TP_printk( TP_printk(
@ -1359,7 +1359,7 @@ DECLARE_EVENT_CLASS(nfs4_inode_callback_event,
__entry->fileid = 0; __entry->fileid = 0;
__entry->dev = 0; __entry->dev = 0;
} }
__assign_str(dstaddr, clp ? clp->cl_hostname : "unknown"); __assign_str(dstaddr);
), ),
TP_printk( TP_printk(
@ -1416,7 +1416,7 @@ DECLARE_EVENT_CLASS(nfs4_inode_stateid_callback_event,
__entry->fileid = 0; __entry->fileid = 0;
__entry->dev = 0; __entry->dev = 0;
} }
__assign_str(dstaddr, clp ? clp->cl_hostname : "unknown"); __assign_str(dstaddr);
__entry->stateid_seq = __entry->stateid_seq =
be32_to_cpu(stateid->seqid); be32_to_cpu(stateid->seqid);
__entry->stateid_hash = __entry->stateid_hash =
@ -1960,7 +1960,7 @@ DECLARE_EVENT_CLASS(nfs4_deviceid_event,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dstaddr, clp->cl_hostname); __assign_str(dstaddr);
memcpy(__entry->deviceid, deviceid->data, memcpy(__entry->deviceid, deviceid->data,
NFS4_DEVICEID4_SIZE); NFS4_DEVICEID4_SIZE);
), ),
@ -1998,7 +1998,7 @@ DECLARE_EVENT_CLASS(nfs4_deviceid_status,
TP_fast_assign( TP_fast_assign(
__entry->dev = server->s_dev; __entry->dev = server->s_dev;
__entry->status = status; __entry->status = status;
__assign_str(dstaddr, server->nfs_client->cl_hostname); __assign_str(dstaddr);
memcpy(__entry->deviceid, deviceid->data, memcpy(__entry->deviceid, deviceid->data,
NFS4_DEVICEID4_SIZE); NFS4_DEVICEID4_SIZE);
), ),
@ -2036,8 +2036,8 @@ TRACE_EVENT(fl_getdevinfo,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(mds_addr, server->nfs_client->cl_hostname); __assign_str(mds_addr);
__assign_str(ds_ips, ds_remotestr); __assign_str(ds_ips);
memcpy(__entry->deviceid, deviceid->data, memcpy(__entry->deviceid, deviceid->data,
NFS4_DEVICEID4_SIZE); NFS4_DEVICEID4_SIZE);
), ),
@ -2083,9 +2083,7 @@ DECLARE_EVENT_CLASS(nfs4_flexfiles_io_event,
be32_to_cpu(hdr->args.stateid.seqid); be32_to_cpu(hdr->args.stateid.seqid);
__entry->stateid_hash = __entry->stateid_hash =
nfs_stateid_hash(&hdr->args.stateid); nfs_stateid_hash(&hdr->args.stateid);
__assign_str(dstaddr, hdr->ds_clp ? __assign_str(dstaddr);
rpc_peeraddr2str(hdr->ds_clp->cl_rpcclient,
RPC_DISPLAY_ADDR) : "unknown");
), ),
TP_printk( TP_printk(
@ -2139,9 +2137,7 @@ TRACE_EVENT(ff_layout_commit_error,
__entry->dev = inode->i_sb->s_dev; __entry->dev = inode->i_sb->s_dev;
__entry->offset = data->args.offset; __entry->offset = data->args.offset;
__entry->count = data->args.count; __entry->count = data->args.count;
__assign_str(dstaddr, data->ds_clp ? __assign_str(dstaddr);
rpc_peeraddr2str(data->ds_clp->cl_rpcclient,
RPC_DISPLAY_ADDR) : "unknown");
), ),
TP_printk( TP_printk(
@ -2579,7 +2575,7 @@ DECLARE_EVENT_CLASS(nfs4_xattr_event,
__entry->dev = inode->i_sb->s_dev; __entry->dev = inode->i_sb->s_dev;
__entry->fileid = NFS_FILEID(inode); __entry->fileid = NFS_FILEID(inode);
__entry->fhandle = nfs_fhandle_hash(NFS_FH(inode)); __entry->fhandle = nfs_fhandle_hash(NFS_FH(inode));
__assign_str(name, name); __assign_str(name);
), ),
TP_printk( TP_printk(

View File

@ -409,7 +409,7 @@ DECLARE_EVENT_CLASS(nfs_lookup_event,
__entry->dir = NFS_FILEID(dir); __entry->dir = NFS_FILEID(dir);
__entry->flags = flags; __entry->flags = flags;
__entry->fileid = d_is_negative(dentry) ? 0 : NFS_FILEID(d_inode(dentry)); __entry->fileid = d_is_negative(dentry) ? 0 : NFS_FILEID(d_inode(dentry));
__assign_str(name, dentry->d_name.name); __assign_str(name);
), ),
TP_printk( TP_printk(
@ -457,7 +457,7 @@ DECLARE_EVENT_CLASS(nfs_lookup_event_done,
__entry->error = error < 0 ? -error : 0; __entry->error = error < 0 ? -error : 0;
__entry->flags = flags; __entry->flags = flags;
__entry->fileid = d_is_negative(dentry) ? 0 : NFS_FILEID(d_inode(dentry)); __entry->fileid = d_is_negative(dentry) ? 0 : NFS_FILEID(d_inode(dentry));
__assign_str(name, dentry->d_name.name); __assign_str(name);
), ),
TP_printk( TP_printk(
@ -512,7 +512,7 @@ TRACE_EVENT(nfs_atomic_open_enter,
__entry->dir = NFS_FILEID(dir); __entry->dir = NFS_FILEID(dir);
__entry->flags = flags; __entry->flags = flags;
__entry->fmode = (__force unsigned long)ctx->mode; __entry->fmode = (__force unsigned long)ctx->mode;
__assign_str(name, ctx->dentry->d_name.name); __assign_str(name);
), ),
TP_printk( TP_printk(
@ -551,7 +551,7 @@ TRACE_EVENT(nfs_atomic_open_exit,
__entry->dir = NFS_FILEID(dir); __entry->dir = NFS_FILEID(dir);
__entry->flags = flags; __entry->flags = flags;
__entry->fmode = (__force unsigned long)ctx->mode; __entry->fmode = (__force unsigned long)ctx->mode;
__assign_str(name, ctx->dentry->d_name.name); __assign_str(name);
), ),
TP_printk( TP_printk(
@ -587,7 +587,7 @@ TRACE_EVENT(nfs_create_enter,
__entry->dev = dir->i_sb->s_dev; __entry->dev = dir->i_sb->s_dev;
__entry->dir = NFS_FILEID(dir); __entry->dir = NFS_FILEID(dir);
__entry->flags = flags; __entry->flags = flags;
__assign_str(name, dentry->d_name.name); __assign_str(name);
), ),
TP_printk( TP_printk(
@ -623,7 +623,7 @@ TRACE_EVENT(nfs_create_exit,
__entry->dev = dir->i_sb->s_dev; __entry->dev = dir->i_sb->s_dev;
__entry->dir = NFS_FILEID(dir); __entry->dir = NFS_FILEID(dir);
__entry->flags = flags; __entry->flags = flags;
__assign_str(name, dentry->d_name.name); __assign_str(name);
), ),
TP_printk( TP_printk(
@ -654,7 +654,7 @@ DECLARE_EVENT_CLASS(nfs_directory_event,
TP_fast_assign( TP_fast_assign(
__entry->dev = dir->i_sb->s_dev; __entry->dev = dir->i_sb->s_dev;
__entry->dir = NFS_FILEID(dir); __entry->dir = NFS_FILEID(dir);
__assign_str(name, dentry->d_name.name); __assign_str(name);
), ),
TP_printk( TP_printk(
@ -693,7 +693,7 @@ DECLARE_EVENT_CLASS(nfs_directory_event_done,
__entry->dev = dir->i_sb->s_dev; __entry->dev = dir->i_sb->s_dev;
__entry->dir = NFS_FILEID(dir); __entry->dir = NFS_FILEID(dir);
__entry->error = error < 0 ? -error : 0; __entry->error = error < 0 ? -error : 0;
__assign_str(name, dentry->d_name.name); __assign_str(name);
), ),
TP_printk( TP_printk(
@ -747,7 +747,7 @@ TRACE_EVENT(nfs_link_enter,
__entry->dev = inode->i_sb->s_dev; __entry->dev = inode->i_sb->s_dev;
__entry->fileid = NFS_FILEID(inode); __entry->fileid = NFS_FILEID(inode);
__entry->dir = NFS_FILEID(dir); __entry->dir = NFS_FILEID(dir);
__assign_str(name, dentry->d_name.name); __assign_str(name);
), ),
TP_printk( TP_printk(
@ -783,7 +783,7 @@ TRACE_EVENT(nfs_link_exit,
__entry->fileid = NFS_FILEID(inode); __entry->fileid = NFS_FILEID(inode);
__entry->dir = NFS_FILEID(dir); __entry->dir = NFS_FILEID(dir);
__entry->error = error < 0 ? -error : 0; __entry->error = error < 0 ? -error : 0;
__assign_str(name, dentry->d_name.name); __assign_str(name);
), ),
TP_printk( TP_printk(
@ -819,8 +819,8 @@ DECLARE_EVENT_CLASS(nfs_rename_event,
__entry->dev = old_dir->i_sb->s_dev; __entry->dev = old_dir->i_sb->s_dev;
__entry->old_dir = NFS_FILEID(old_dir); __entry->old_dir = NFS_FILEID(old_dir);
__entry->new_dir = NFS_FILEID(new_dir); __entry->new_dir = NFS_FILEID(new_dir);
__assign_str(old_name, old_dentry->d_name.name); __assign_str(old_name);
__assign_str(new_name, new_dentry->d_name.name); __assign_str(new_name);
), ),
TP_printk( TP_printk(
@ -868,8 +868,8 @@ DECLARE_EVENT_CLASS(nfs_rename_event_done,
__entry->error = -error; __entry->error = -error;
__entry->old_dir = NFS_FILEID(old_dir); __entry->old_dir = NFS_FILEID(old_dir);
__entry->new_dir = NFS_FILEID(new_dir); __entry->new_dir = NFS_FILEID(new_dir);
__assign_str(old_name, old_dentry->d_name.name); __assign_str(old_name);
__assign_str(new_name, new_dentry->d_name.name); __assign_str(new_name);
), ),
TP_printk( TP_printk(
@ -1636,8 +1636,8 @@ TRACE_EVENT(nfs_mount_assign,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(option, option); __assign_str(option);
__assign_str(value, value); __assign_str(value);
), ),
TP_printk("option %s=%s", TP_printk("option %s=%s",
@ -1657,7 +1657,7 @@ TRACE_EVENT(nfs_mount_option,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(option, param->key); __assign_str(option);
), ),
TP_printk("option %s", __get_str(option)) TP_printk("option %s", __get_str(option))
@ -1675,7 +1675,7 @@ TRACE_EVENT(nfs_mount_path,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(path, path); __assign_str(path);
), ),
TP_printk("path='%s'", __get_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->xid = be32_to_cpu(rqstp->rq_xid);
__entry->version = task->tk_client->cl_vers; __entry->version = task->tk_client->cl_vers;
__entry->error = error; __entry->error = error;
__assign_str(program, __assign_str(program);
task->tk_client->cl_program->name); __assign_str(procedure);
__assign_str(procedure, task->tk_msg.rpc_proc->p_name);
), ),
TP_printk(SUNRPC_TRACE_TASK_SPECIFIER TP_printk(SUNRPC_TRACE_TASK_SPECIFIER

View File

@ -104,7 +104,7 @@ TRACE_EVENT(nfsd_compound,
TP_fast_assign( TP_fast_assign(
__entry->xid = be32_to_cpu(rqst->rq_xid); __entry->xid = be32_to_cpu(rqst->rq_xid);
__entry->opcnt = opcnt; __entry->opcnt = opcnt;
__assign_str(tag, tag); __assign_str(tag);
), ),
TP_printk("xid=0x%08x opcnt=%u tag=%s", TP_printk("xid=0x%08x opcnt=%u tag=%s",
__entry->xid, __entry->opcnt, __get_str(tag) __entry->xid, __entry->opcnt, __get_str(tag)
@ -127,7 +127,7 @@ TRACE_EVENT(nfsd_compound_status,
__entry->args_opcnt = args_opcnt; __entry->args_opcnt = args_opcnt;
__entry->resp_opcnt = resp_opcnt; __entry->resp_opcnt = resp_opcnt;
__entry->status = be32_to_cpu(status); __entry->status = be32_to_cpu(status);
__assign_str(name, name); __assign_str(name);
), ),
TP_printk("op=%u/%u %s status=%d", TP_printk("op=%u/%u %s status=%d",
__entry->resp_opcnt, __entry->args_opcnt, __entry->resp_opcnt, __entry->args_opcnt,
@ -318,7 +318,7 @@ TRACE_EVENT(nfsd_exp_find_key,
TP_fast_assign( TP_fast_assign(
__entry->fsidtype = key->ek_fsidtype; __entry->fsidtype = key->ek_fsidtype;
memcpy(__entry->fsid, key->ek_fsid, 4*6); memcpy(__entry->fsid, key->ek_fsid, 4*6);
__assign_str(auth_domain, key->ek_client->name); __assign_str(auth_domain);
__entry->status = status; __entry->status = status;
), ),
TP_printk("fsid=%x::%s domain=%s status=%d", TP_printk("fsid=%x::%s domain=%s status=%d",
@ -342,8 +342,8 @@ TRACE_EVENT(nfsd_expkey_update,
TP_fast_assign( TP_fast_assign(
__entry->fsidtype = key->ek_fsidtype; __entry->fsidtype = key->ek_fsidtype;
memcpy(__entry->fsid, key->ek_fsid, 4*6); memcpy(__entry->fsid, key->ek_fsid, 4*6);
__assign_str(auth_domain, key->ek_client->name); __assign_str(auth_domain);
__assign_str(path, exp_path); __assign_str(path);
__entry->cache = !test_bit(CACHE_NEGATIVE, &key->h.flags); __entry->cache = !test_bit(CACHE_NEGATIVE, &key->h.flags);
), ),
TP_printk("fsid=%x::%s domain=%s path=%s cache=%s", 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) __field(int, status)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(path, key->ex_path.dentry->d_name.name); __assign_str(path);
__assign_str(auth_domain, key->ex_client->name); __assign_str(auth_domain);
__entry->status = status; __entry->status = status;
), ),
TP_printk("path=%s domain=%s status=%d", TP_printk("path=%s domain=%s status=%d",
@ -385,8 +385,8 @@ TRACE_EVENT(nfsd_export_update,
__field(bool, cache) __field(bool, cache)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(path, key->ex_path.dentry->d_name.name); __assign_str(path);
__assign_str(auth_domain, key->ex_client->name); __assign_str(auth_domain);
__entry->cache = !test_bit(CACHE_NEGATIVE, &key->h.flags); __entry->cache = !test_bit(CACHE_NEGATIVE, &key->h.flags);
), ),
TP_printk("path=%s domain=%s cache=%s", TP_printk("path=%s domain=%s cache=%s",
@ -485,7 +485,7 @@ TRACE_EVENT(nfsd_dirent,
TP_fast_assign( TP_fast_assign(
__entry->fh_hash = fhp ? knfsd_fh_hash(&fhp->fh_handle) : 0; __entry->fh_hash = fhp ? knfsd_fh_hash(&fhp->fh_handle) : 0;
__entry->ino = ino; __entry->ino = ino;
__assign_str(name, name); __assign_str(name);
), ),
TP_printk("fh_hash=0x%08x ino=%llu name=%s", TP_printk("fh_hash=0x%08x ino=%llu name=%s",
__entry->fh_hash, __entry->ino, __get_str(name) __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; __entry->flavor = clp->cl_cred.cr_flavor;
memcpy(__entry->verifier, (void *)&clp->cl_verifier, memcpy(__entry->verifier, (void *)&clp->cl_verifier,
NFS4_VERIFIER_SIZE); 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", TP_printk("addr=%pISpc name='%s' verifier=0x%s flavor=%s client=%08x:%08x",
__entry->addr, __get_str(name), __entry->addr, __get_str(name),
@ -1519,7 +1519,7 @@ TRACE_EVENT(nfsd_cb_setup,
TP_fast_assign( TP_fast_assign(
__entry->cl_boot = clp->cl_clientid.cl_boot; __entry->cl_boot = clp->cl_clientid.cl_boot;
__entry->cl_id = clp->cl_clientid.cl_id; __entry->cl_id = clp->cl_clientid.cl_id;
__assign_str(netid, netid); __assign_str(netid);
__entry->authflavor = authflavor; __entry->authflavor = authflavor;
__assign_sockaddr(addr, &clp->cl_cb_conn.cb_addr, __assign_sockaddr(addr, &clp->cl_cb_conn.cb_addr,
clp->cl_cb_conn.cb_addrlen) clp->cl_cb_conn.cb_addrlen)
@ -1864,7 +1864,7 @@ TRACE_EVENT(nfsd_ctl_unlock_ip,
), ),
TP_fast_assign( TP_fast_assign(
__entry->netns_ino = net->ns.inum; __entry->netns_ino = net->ns.inum;
__assign_str(address, address); __assign_str(address);
), ),
TP_printk("address=%s", TP_printk("address=%s",
__get_str(address) __get_str(address)
@ -1883,7 +1883,7 @@ TRACE_EVENT(nfsd_ctl_unlock_fs,
), ),
TP_fast_assign( TP_fast_assign(
__entry->netns_ino = net->ns.inum; __entry->netns_ino = net->ns.inum;
__assign_str(path, path); __assign_str(path);
), ),
TP_printk("path=%s", TP_printk("path=%s",
__get_str(path) __get_str(path)
@ -1907,8 +1907,8 @@ TRACE_EVENT(nfsd_ctl_filehandle,
TP_fast_assign( TP_fast_assign(
__entry->netns_ino = net->ns.inum; __entry->netns_ino = net->ns.inum;
__entry->maxsize = maxsize; __entry->maxsize = maxsize;
__assign_str(domain, domain); __assign_str(domain);
__assign_str(path, path); __assign_str(path);
), ),
TP_printk("domain=%s path=%s maxsize=%d", TP_printk("domain=%s path=%s maxsize=%d",
__get_str(domain), __get_str(path), __entry->maxsize __get_str(domain), __get_str(path), __entry->maxsize
@ -1968,7 +1968,7 @@ TRACE_EVENT(nfsd_ctl_version,
), ),
TP_fast_assign( TP_fast_assign(
__entry->netns_ino = net->ns.inum; __entry->netns_ino = net->ns.inum;
__assign_str(mesg, mesg); __assign_str(mesg);
), ),
TP_printk("%s", TP_printk("%s",
__get_str(mesg) __get_str(mesg)
@ -2009,7 +2009,7 @@ TRACE_EVENT(nfsd_ctl_ports_addxprt,
TP_fast_assign( TP_fast_assign(
__entry->netns_ino = net->ns.inum; __entry->netns_ino = net->ns.inum;
__entry->port = port; __entry->port = port;
__assign_str(transport, transport); __assign_str(transport);
), ),
TP_printk("transport=%s port=%d", TP_printk("transport=%s port=%d",
__get_str(transport), __entry->port __get_str(transport), __entry->port
@ -2070,7 +2070,7 @@ TRACE_EVENT(nfsd_ctl_time,
TP_fast_assign( TP_fast_assign(
__entry->netns_ino = net->ns.inum; __entry->netns_ino = net->ns.inum;
__entry->time = time; __entry->time = time;
__assign_str(name, name); __assign_str(name);
), ),
TP_printk("file=%s time=%d", TP_printk("file=%s time=%d",
__get_str(name), __entry->time __get_str(name), __entry->time
@ -2089,7 +2089,7 @@ TRACE_EVENT(nfsd_ctl_recoverydir,
), ),
TP_fast_assign( TP_fast_assign(
__entry->netns_ino = net->ns.inum; __entry->netns_ino = net->ns.inum;
__assign_str(recdir, recdir); __assign_str(recdir);
), ),
TP_printk("recdir=%s", TP_printk("recdir=%s",
__get_str(recdir) __get_str(recdir)

View File

@ -82,7 +82,7 @@ DECLARE_EVENT_CLASS(ocfs2__string,
__string(name,name) __string(name,name)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, name); __assign_str(name);
), ),
TP_printk("%s", __get_str(name)) TP_printk("%s", __get_str(name))
); );
@ -1289,7 +1289,7 @@ DECLARE_EVENT_CLASS(ocfs2__file_ops,
__entry->dentry = dentry; __entry->dentry = dentry;
__entry->ino = ino; __entry->ino = ino;
__entry->d_len = d_len; __entry->d_len = d_len;
__assign_str(d_name, d_name); __assign_str(d_name);
__entry->para = para; __entry->para = para;
), ),
TP_printk("%p %p %p %llu %llu %.*s", __entry->inode, __entry->file, TP_printk("%p %p %p %llu %llu %.*s", __entry->inode, __entry->file,
@ -1425,7 +1425,7 @@ TRACE_EVENT(ocfs2_setattr,
__entry->dentry = dentry; __entry->dentry = dentry;
__entry->ino = ino; __entry->ino = ino;
__entry->d_len = d_len; __entry->d_len = d_len;
__assign_str(d_name, d_name); __assign_str(d_name);
__entry->ia_valid = ia_valid; __entry->ia_valid = ia_valid;
__entry->ia_mode = ia_mode; __entry->ia_mode = ia_mode;
__entry->ia_uid = ia_uid; __entry->ia_uid = ia_uid;
@ -1683,7 +1683,7 @@ TRACE_EVENT(ocfs2_parse_options,
), ),
TP_fast_assign( TP_fast_assign(
__entry->is_remount = is_remount; __entry->is_remount = is_remount;
__assign_str(options, options); __assign_str(options);
), ),
TP_printk("%d %s", __entry->is_remount, __get_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) __field(int, cluster_bits)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(label, label); __assign_str(label);
__assign_str(uuid_str, uuid_str); __assign_str(uuid_str);
__entry->root_dir = root_dir; __entry->root_dir = root_dir;
__entry->system_dir = system_dir; __entry->system_dir = system_dir;
__entry->cluster_bits = cluster_bits; __entry->cluster_bits = cluster_bits;
@ -1746,7 +1746,7 @@ TRACE_EVENT(ocfs2_init_xattr_set_ctxt,
__field(int, credits) __field(int, credits)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, name); __assign_str(name);
__entry->meta = meta; __entry->meta = meta;
__entry->clusters = clusters; __entry->clusters = clusters;
__entry->credits = credits; __entry->credits = credits;
@ -1770,7 +1770,7 @@ DECLARE_EVENT_CLASS(ocfs2__xattr_find,
), ),
TP_fast_assign( TP_fast_assign(
__entry->ino = ino; __entry->ino = ino;
__assign_str(name, name); __assign_str(name);
__entry->name_index = name_index; __entry->name_index = name_index;
__entry->hash = hash; __entry->hash = hash;
__entry->location = location; __entry->location = location;
@ -2019,7 +2019,7 @@ TRACE_EVENT(ocfs2_sync_dquot_helper,
__entry->dq_id = dq_id; __entry->dq_id = dq_id;
__entry->dq_type = dq_type; __entry->dq_type = dq_type;
__entry->type = 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, TP_printk("%u %u %lu %s", __entry->dq_id, __entry->dq_type,
__entry->type, __get_str(s_id)) __entry->type, __get_str(s_id))
@ -2060,7 +2060,7 @@ TRACE_EVENT(ocfs2_dx_dir_search,
TP_fast_assign( TP_fast_assign(
__entry->ino = ino; __entry->ino = ino;
__entry->namelen = namelen; __entry->namelen = namelen;
__assign_str(name, name); __assign_str(name);
__entry->major_hash = major_hash; __entry->major_hash = major_hash;
__entry->minor_hash = minor_hash; __entry->minor_hash = minor_hash;
__entry->blkno = blkno; __entry->blkno = blkno;
@ -2088,7 +2088,7 @@ TRACE_EVENT(ocfs2_find_files_on_disk,
), ),
TP_fast_assign( TP_fast_assign(
__entry->namelen = namelen; __entry->namelen = namelen;
__assign_str(name, name); __assign_str(name);
__entry->blkno = blkno; __entry->blkno = blkno;
__entry->dir = dir; __entry->dir = dir;
), ),
@ -2107,7 +2107,7 @@ TRACE_EVENT(ocfs2_check_dir_for_entry,
TP_fast_assign( TP_fast_assign(
__entry->dir = dir; __entry->dir = dir;
__entry->namelen = namelen; __entry->namelen = namelen;
__assign_str(name, name); __assign_str(name);
), ),
TP_printk("%llu %.*s", __entry->dir, TP_printk("%llu %.*s", __entry->dir,
__entry->namelen, __get_str(name)) __entry->namelen, __get_str(name))
@ -2135,7 +2135,7 @@ TRACE_EVENT(ocfs2_dx_dir_index_root_block,
__entry->major_hash = major_hash; __entry->major_hash = major_hash;
__entry->minor_hash = minor_hash; __entry->minor_hash = minor_hash;
__entry->namelen = namelen; __entry->namelen = namelen;
__assign_str(name, name); __assign_str(name);
__entry->num_used = num_used; __entry->num_used = num_used;
), ),
TP_printk("%llu %x %x %.*s %u", __entry->dir, TP_printk("%llu %x %x %.*s %u", __entry->dir,
@ -2171,7 +2171,7 @@ DECLARE_EVENT_CLASS(ocfs2__dentry_ops,
__entry->dir = dir; __entry->dir = dir;
__entry->dentry = dentry; __entry->dentry = dentry;
__entry->name_len = name_len; __entry->name_len = name_len;
__assign_str(name, name); __assign_str(name);
__entry->dir_blkno = dir_blkno; __entry->dir_blkno = dir_blkno;
__entry->extra = extra; __entry->extra = extra;
), ),
@ -2217,7 +2217,7 @@ TRACE_EVENT(ocfs2_mknod,
__entry->dir = dir; __entry->dir = dir;
__entry->dentry = dentry; __entry->dentry = dentry;
__entry->name_len = name_len; __entry->name_len = name_len;
__assign_str(name, name); __assign_str(name);
__entry->dir_blkno = dir_blkno; __entry->dir_blkno = dir_blkno;
__entry->dev = dev; __entry->dev = dev;
__entry->mode = mode; __entry->mode = mode;
@ -2241,9 +2241,9 @@ TRACE_EVENT(ocfs2_link,
TP_fast_assign( TP_fast_assign(
__entry->ino = ino; __entry->ino = ino;
__entry->old_len = old_len; __entry->old_len = old_len;
__assign_str(old_name, old_name); __assign_str(old_name);
__entry->name_len = name_len; __entry->name_len = name_len;
__assign_str(name, name); __assign_str(name);
), ),
TP_printk("%llu %.*s %.*s", __entry->ino, TP_printk("%llu %.*s %.*s", __entry->ino,
__entry->old_len, __get_str(old_name), __entry->old_len, __get_str(old_name),
@ -2279,9 +2279,9 @@ TRACE_EVENT(ocfs2_rename,
__entry->new_dir = new_dir; __entry->new_dir = new_dir;
__entry->new_dentry = new_dentry; __entry->new_dentry = new_dentry;
__entry->old_len = old_len; __entry->old_len = old_len;
__assign_str(old_name, old_name); __assign_str(old_name);
__entry->new_len = new_len; __entry->new_len = new_len;
__assign_str(new_name, new_name); __assign_str(new_name);
), ),
TP_printk("%p %p %p %p %.*s %.*s", TP_printk("%p %p %p %p %.*s %.*s",
__entry->old_dir, __entry->old_dentry, __entry->old_dir, __entry->old_dentry,
@ -2301,7 +2301,7 @@ TRACE_EVENT(ocfs2_rename_target_exists,
), ),
TP_fast_assign( TP_fast_assign(
__entry->new_len = new_len; __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)) TP_printk("%.*s", __entry->new_len, __get_str(new_name))
); );
@ -2344,7 +2344,7 @@ TRACE_EVENT(ocfs2_symlink_begin,
__entry->dentry = dentry; __entry->dentry = dentry;
__entry->symname = symname; __entry->symname = symname;
__entry->len = len; __entry->len = len;
__assign_str(name, name); __assign_str(name);
), ),
TP_printk("%p %p %s %.*s", __entry->dir, __entry->dentry, TP_printk("%p %p %s %.*s", __entry->dir, __entry->dentry,
__entry->symname, __entry->len, __get_str(name)) __entry->symname, __entry->len, __get_str(name))
@ -2360,7 +2360,7 @@ TRACE_EVENT(ocfs2_blkno_stringify,
), ),
TP_fast_assign( TP_fast_assign(
__entry->blkno = blkno; __entry->blkno = blkno;
__assign_str(name, name); __assign_str(name);
__entry->namelen = namelen; __entry->namelen = namelen;
), ),
TP_printk("%llu %s %d", __entry->blkno, __get_str(name), TP_printk("%llu %s %d", __entry->blkno, __get_str(name),
@ -2381,7 +2381,7 @@ TRACE_EVENT(ocfs2_orphan_del,
), ),
TP_fast_assign( TP_fast_assign(
__entry->dir = dir; __entry->dir = dir;
__assign_str(name, name); __assign_str(name);
__entry->namelen = namelen; __entry->namelen = namelen;
), ),
TP_printk("%llu %s %d", __entry->dir, __get_str(name), TP_printk("%llu %s %d", __entry->dir, __get_str(name),
@ -2403,7 +2403,7 @@ TRACE_EVENT(ocfs2_dentry_revalidate,
TP_fast_assign( TP_fast_assign(
__entry->dentry = dentry; __entry->dentry = dentry;
__entry->len = len; __entry->len = len;
__assign_str(name, name); __assign_str(name);
), ),
TP_printk("%p %.*s", __entry->dentry, __entry->len, __get_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( TP_fast_assign(
__entry->len = len; __entry->len = len;
__assign_str(name, name); __assign_str(name);
__entry->pgen = pgen; __entry->pgen = pgen;
__entry->gen = gen; __entry->gen = gen;
), ),
@ -2445,7 +2445,7 @@ TRACE_EVENT(ocfs2_find_local_alias,
), ),
TP_fast_assign( TP_fast_assign(
__entry->len = len; __entry->len = len;
__assign_str(name, name); __assign_str(name);
), ),
TP_printk("%.*s", __entry->len, __get_str(name)) TP_printk("%.*s", __entry->len, __get_str(name))
); );
@ -2462,7 +2462,7 @@ TRACE_EVENT(ocfs2_dentry_attach_lock,
), ),
TP_fast_assign( TP_fast_assign(
__entry->len = len; __entry->len = len;
__assign_str(name, name); __assign_str(name);
__entry->parent = parent; __entry->parent = parent;
__entry->fsdata = fsdata; __entry->fsdata = fsdata;
), ),
@ -2480,7 +2480,7 @@ TRACE_EVENT(ocfs2_dentry_attach_lock_found,
__field(unsigned long long, ino) __field(unsigned long long, ino)
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, name); __assign_str(name);
__entry->parent = parent; __entry->parent = parent;
__entry->ino = ino; __entry->ino = ino;
), ),
@ -2527,7 +2527,7 @@ TRACE_EVENT(ocfs2_get_parent,
TP_fast_assign( TP_fast_assign(
__entry->child = child; __entry->child = child;
__entry->len = len; __entry->len = len;
__assign_str(name, name); __assign_str(name);
__entry->ino = ino; __entry->ino = ino;
), ),
TP_printk("%p %.*s %llu", __entry->child, __entry->len, TP_printk("%p %.*s %llu", __entry->child, __entry->len,
@ -2551,7 +2551,7 @@ TRACE_EVENT(ocfs2_encode_fh_begin,
TP_fast_assign( TP_fast_assign(
__entry->dentry = dentry; __entry->dentry = dentry;
__entry->name_len = name_len; __entry->name_len = name_len;
__assign_str(name, name); __assign_str(name);
__entry->fh = fh; __entry->fh = fh;
__entry->len = len; __entry->len = len;
__entry->connectable = connectable; __entry->connectable = connectable;

View File

@ -518,7 +518,7 @@ DECLARE_EVENT_CLASS(smb3_inf_compound_enter_class,
__entry->xid = xid; __entry->xid = xid;
__entry->tid = tid; __entry->tid = tid;
__entry->sesid = sesid; __entry->sesid = sesid;
__assign_str(path, full_path); __assign_str(path);
), ),
TP_printk("xid=%u sid=0x%llx tid=0x%x path=%s", TP_printk("xid=%u sid=0x%llx tid=0x%x path=%s",
__entry->xid, __entry->sesid, __entry->tid, __entry->xid, __entry->sesid, __entry->tid,
@ -762,7 +762,7 @@ DECLARE_EVENT_CLASS(smb3_exit_err_class,
), ),
TP_fast_assign( TP_fast_assign(
__entry->xid = xid; __entry->xid = xid;
__assign_str(func_name, func_name); __assign_str(func_name);
__entry->rc = rc; __entry->rc = rc;
), ),
TP_printk("\t%s: xid=%u rc=%d", TP_printk("\t%s: xid=%u rc=%d",
@ -815,7 +815,7 @@ DECLARE_EVENT_CLASS(smb3_enter_exit_class,
), ),
TP_fast_assign( TP_fast_assign(
__entry->xid = xid; __entry->xid = xid;
__assign_str(func_name, func_name); __assign_str(func_name);
), ),
TP_printk("\t%s: xid=%u", TP_printk("\t%s: xid=%u",
__get_str(func_name), __entry->xid) __get_str(func_name), __entry->xid)
@ -852,7 +852,7 @@ DECLARE_EVENT_CLASS(smb3_tcon_class,
__entry->xid = xid; __entry->xid = xid;
__entry->tid = tid; __entry->tid = tid;
__entry->sesid = sesid; __entry->sesid = sesid;
__assign_str(name, unc_name); __assign_str(name);
__entry->rc = rc; __entry->rc = rc;
), ),
TP_printk("xid=%u sid=0x%llx tid=0x%x unc_name=%s rc=%d", 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->xid = xid;
__entry->tid = tid; __entry->tid = tid;
__entry->sesid = sesid; __entry->sesid = sesid;
__assign_str(path, full_path); __assign_str(path);
__entry->create_options = create_options; __entry->create_options = create_options;
__entry->desired_access = desired_access; __entry->desired_access = desired_access;
), ),
@ -1098,7 +1098,7 @@ DECLARE_EVENT_CLASS(smb3_connect_class,
__entry->conn_id = conn_id; __entry->conn_id = conn_id;
pss = (struct sockaddr_storage *)__entry->dst_addr; pss = (struct sockaddr_storage *)__entry->dst_addr;
*pss = *dst_addr; *pss = *dst_addr;
__assign_str(hostname, hostname); __assign_str(hostname);
), ),
TP_printk("conn_id=0x%llx server=%s addr=%pISpsfc", TP_printk("conn_id=0x%llx server=%s addr=%pISpsfc",
__entry->conn_id, __entry->conn_id,
@ -1134,7 +1134,7 @@ DECLARE_EVENT_CLASS(smb3_connect_err_class,
__entry->rc = rc; __entry->rc = rc;
pss = (struct sockaddr_storage *)__entry->dst_addr; pss = (struct sockaddr_storage *)__entry->dst_addr;
*pss = *dst_addr; *pss = *dst_addr;
__assign_str(hostname, hostname); __assign_str(hostname);
), ),
TP_printk("rc=%d conn_id=0x%llx server=%s addr=%pISpsfc", TP_printk("rc=%d conn_id=0x%llx server=%s addr=%pISpsfc",
__entry->rc, __entry->rc,
@ -1166,7 +1166,7 @@ DECLARE_EVENT_CLASS(smb3_reconnect_class,
TP_fast_assign( TP_fast_assign(
__entry->currmid = currmid; __entry->currmid = currmid;
__entry->conn_id = conn_id; __entry->conn_id = conn_id;
__assign_str(hostname, hostname); __assign_str(hostname);
), ),
TP_printk("conn_id=0x%llx server=%s current_mid=%llu", TP_printk("conn_id=0x%llx server=%s current_mid=%llu",
__entry->conn_id, __entry->conn_id,
@ -1255,7 +1255,7 @@ DECLARE_EVENT_CLASS(smb3_credit_class,
TP_fast_assign( TP_fast_assign(
__entry->currmid = currmid; __entry->currmid = currmid;
__entry->conn_id = conn_id; __entry->conn_id = conn_id;
__assign_str(hostname, hostname); __assign_str(hostname);
__entry->credits = credits; __entry->credits = credits;
__entry->credits_to_add = credits_to_add; __entry->credits_to_add = credits_to_add;
__entry->in_flight = in_flight; __entry->in_flight = in_flight;

View File

@ -561,7 +561,7 @@ TRACE_EVENT(xchk_btree_op_error,
__entry->dev = sc->mp->m_super->s_dev; __entry->dev = sc->mp->m_super->s_dev;
__entry->type = sc->sm->sm_type; __entry->type = sc->sm->sm_type;
__assign_str(name, cur->bc_ops->name); __assign_str(name);
__entry->level = level; __entry->level = level;
__entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno); __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno);
__entry->bno = XFS_FSB_TO_AGBNO(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->ino = sc->ip->i_ino;
__entry->whichfork = cur->bc_ino.whichfork; __entry->whichfork = cur->bc_ino.whichfork;
__entry->type = sc->sm->sm_type; __entry->type = sc->sm->sm_type;
__assign_str(name, cur->bc_ops->name); __assign_str(name);
__entry->level = level; __entry->level = level;
__entry->ptr = cur->bc_levels[level].ptr; __entry->ptr = cur->bc_levels[level].ptr;
__entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno); __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); xfs_fsblock_t fsbno = xchk_btree_cur_fsbno(cur, level);
__entry->dev = sc->mp->m_super->s_dev; __entry->dev = sc->mp->m_super->s_dev;
__entry->type = sc->sm->sm_type; __entry->type = sc->sm->sm_type;
__assign_str(name, cur->bc_ops->name); __assign_str(name);
__entry->level = level; __entry->level = level;
__entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno); __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno);
__entry->bno = XFS_FSB_TO_AGBNO(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->ino = sc->ip->i_ino;
__entry->whichfork = cur->bc_ino.whichfork; __entry->whichfork = cur->bc_ino.whichfork;
__entry->type = sc->sm->sm_type; __entry->type = sc->sm->sm_type;
__assign_str(name, cur->bc_ops->name); __assign_str(name);
__entry->level = level; __entry->level = level;
__entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno); __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno);
__entry->bno = XFS_FSB_TO_AGBNO(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->dev = sc->mp->m_super->s_dev;
__entry->type = sc->sm->sm_type; __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->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno);
__entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno);
__entry->level = level; __entry->level = level;

View File

@ -168,7 +168,7 @@ TRACE_EVENT(xlog_intent_recovery_failed,
), ),
TP_fast_assign( TP_fast_assign(
__entry->dev = mp->m_super->s_dev; __entry->dev = mp->m_super->s_dev;
__assign_str(name, ops->name); __assign_str(name);
__entry->error = error; __entry->error = error;
), ),
TP_printk("dev %d:%d optype %s error %d", TP_printk("dev %d:%d optype %s error %d",
@ -1913,7 +1913,7 @@ TRACE_EVENT(xfs_alloc_cur_check,
), ),
TP_fast_assign( TP_fast_assign(
__entry->dev = cur->bc_mp->m_super->s_dev; __entry->dev = cur->bc_mp->m_super->s_dev;
__assign_str(name, cur->bc_ops->name); __assign_str(name);
__entry->bno = bno; __entry->bno = bno;
__entry->len = len; __entry->len = len;
__entry->diff = diff; __entry->diff = diff;
@ -2473,7 +2473,7 @@ DECLARE_EVENT_CLASS(xfs_btree_cur_class,
), ),
TP_fast_assign( TP_fast_assign(
__entry->dev = cur->bc_mp->m_super->s_dev; __entry->dev = cur->bc_mp->m_super->s_dev;
__assign_str(name, cur->bc_ops->name); __assign_str(name);
__entry->level = level; __entry->level = level;
__entry->nlevels = cur->bc_nlevels; __entry->nlevels = cur->bc_nlevels;
__entry->ptr = cur->bc_levels[level].ptr; __entry->ptr = cur->bc_levels[level].ptr;
@ -2523,7 +2523,7 @@ TRACE_EVENT(xfs_btree_alloc_block,
__entry->ino = 0; __entry->ino = 0;
break; break;
} }
__assign_str(name, cur->bc_ops->name); __assign_str(name);
__entry->error = error; __entry->error = error;
if (!error && stat) { if (!error && stat) {
if (cur->bc_ops->ptr_len == XFS_BTREE_LONG_PTR_LEN) { 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; __entry->ino = cur->bc_ino.ip->i_ino;
else else
__entry->ino = 0; __entry->ino = 0;
__assign_str(name, cur->bc_ops->name); __assign_str(name);
__entry->agbno = xfs_daddr_to_agbno(cur->bc_mp, __entry->agbno = xfs_daddr_to_agbno(cur->bc_mp,
xfs_buf_daddr(bp)); xfs_buf_daddr(bp));
), ),
@ -2643,7 +2643,7 @@ DECLARE_EVENT_CLASS(xfs_defer_pending_class,
), ),
TP_fast_assign( TP_fast_assign(
__entry->dev = mp ? mp->m_super->s_dev : 0; __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->intent = dfp->dfp_intent;
__entry->flags = dfp->dfp_flags; __entry->flags = dfp->dfp_flags;
__entry->committed = dfp->dfp_done != NULL; __entry->committed = dfp->dfp_done != NULL;
@ -2732,7 +2732,7 @@ DECLARE_EVENT_CLASS(xfs_defer_pending_item_class,
), ),
TP_fast_assign( TP_fast_assign(
__entry->dev = mp ? mp->m_super->s_dev : 0; __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->intent = dfp->dfp_intent;
__entry->item = item; __entry->item = item;
__entry->committed = dfp->dfp_done != NULL; __entry->committed = dfp->dfp_done != NULL;
@ -4244,7 +4244,7 @@ TRACE_EVENT(xfs_btree_commit_afakeroot,
), ),
TP_fast_assign( TP_fast_assign(
__entry->dev = cur->bc_mp->m_super->s_dev; __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->agno = cur->bc_ag.pag->pag_agno;
__entry->agbno = cur->bc_ag.afake->af_root; __entry->agbno = cur->bc_ag.afake->af_root;
__entry->levels = cur->bc_ag.afake->af_levels; __entry->levels = cur->bc_ag.afake->af_levels;
@ -4273,7 +4273,7 @@ TRACE_EVENT(xfs_btree_commit_ifakeroot,
), ),
TP_fast_assign( TP_fast_assign(
__entry->dev = cur->bc_mp->m_super->s_dev; __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, __entry->agno = XFS_INO_TO_AGNO(cur->bc_mp,
cur->bc_ino.ip->i_ino); cur->bc_ino.ip->i_ino);
__entry->agino = XFS_INO_TO_AGINO(cur->bc_mp, __entry->agino = XFS_INO_TO_AGINO(cur->bc_mp,
@ -4312,7 +4312,7 @@ TRACE_EVENT(xfs_btree_bload_level_geometry,
), ),
TP_fast_assign( TP_fast_assign(
__entry->dev = cur->bc_mp->m_super->s_dev; __entry->dev = cur->bc_mp->m_super->s_dev;
__assign_str(name, cur->bc_ops->name); __assign_str(name);
__entry->level = level; __entry->level = level;
__entry->nlevels = cur->bc_nlevels; __entry->nlevels = cur->bc_nlevels;
__entry->nr_this_level = nr_this_level; __entry->nr_this_level = nr_this_level;
@ -4350,7 +4350,7 @@ TRACE_EVENT(xfs_btree_bload_block,
), ),
TP_fast_assign( TP_fast_assign(
__entry->dev = cur->bc_mp->m_super->s_dev; __entry->dev = cur->bc_mp->m_super->s_dev;
__assign_str(name, cur->bc_ops->name); __assign_str(name);
__entry->level = level; __entry->level = level;
__entry->block_idx = block_idx; __entry->block_idx = block_idx;
__entry->nr_blocks = nr_blocks; __entry->nr_blocks = nr_blocks;
@ -4573,7 +4573,7 @@ TRACE_EVENT(xfs_force_shutdown,
__entry->dev = mp->m_super->s_dev; __entry->dev = mp->m_super->s_dev;
__entry->ptag = ptag; __entry->ptag = ptag;
__entry->flags = flags; __entry->flags = flags;
__assign_str(fname, fname); __assign_str(fname);
__entry->line_num = line_num; __entry->line_num = line_num;
), ),
TP_printk("dev %d:%d tag %s flags %s file %s line_num %d", 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( TP_fast_assign(
__entry->xfino = file_inode(xfbt->target->bt_file)->i_ino; __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->nlevels = cur->bc_nlevels;
__entry->fileoff = fileoff; __entry->fileoff = fileoff;
), ),
@ -5122,7 +5122,7 @@ DECLARE_EVENT_CLASS(xfs_getparents_rec_class,
__entry->bufsize = ppi->gp_bufsize; __entry->bufsize = ppi->gp_bufsize;
__entry->parent_ino = pptr->gpr_parent.ha_fid.fid_ino; __entry->parent_ino = pptr->gpr_parent.ha_fid.fid_ino;
__entry->parent_gen = pptr->gpr_parent.ha_fid.fid_gen; __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'", 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), MAJOR(__entry->dev), MINOR(__entry->dev),

View File

@ -61,7 +61,7 @@ TRACE_EVENT(extlog_mem_event,
else else
__entry->pa_mask_lsb = ~0; __entry->pa_mask_lsb = ~0;
__entry->fru_id = *fru_id; __entry->fru_id = *fru_id;
__assign_str(fru_text, fru_text); __assign_str(fru_text);
cper_mem_err_pack(mem, &__entry->data); cper_mem_err_pack(mem, &__entry->data);
), ),
@ -131,8 +131,8 @@ TRACE_EVENT(mc_event,
TP_fast_assign( TP_fast_assign(
__entry->error_type = err_type; __entry->error_type = err_type;
__assign_str(msg, error_msg); __assign_str(msg);
__assign_str(label, label); __assign_str(label);
__entry->error_count = error_count; __entry->error_count = error_count;
__entry->mc_index = mc_index; __entry->mc_index = mc_index;
__entry->top_layer = top_layer; __entry->top_layer = top_layer;
@ -141,7 +141,7 @@ TRACE_EVENT(mc_event,
__entry->address = address; __entry->address = address;
__entry->grain_bits = grain_bits; __entry->grain_bits = grain_bits;
__entry->syndrome = syndrome; __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)", 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( TP_fast_assign(
memcpy(__entry->sec_type, sec_type, UUID_SIZE); memcpy(__entry->sec_type, sec_type, UUID_SIZE);
memcpy(__entry->fru_id, fru_id, UUID_SIZE); memcpy(__entry->fru_id, fru_id, UUID_SIZE);
__assign_str(fru_text, fru_text); __assign_str(fru_text);
__entry->sev = sev; __entry->sev = sev;
__entry->len = len; __entry->len = len;
memcpy(__get_dynamic_array(buf), err, len); memcpy(__get_dynamic_array(buf), err, len);
@ -313,7 +313,7 @@ TRACE_EVENT(aer_event,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev_name, dev_name); __assign_str(dev_name);
__entry->status = status; __entry->status = status;
__entry->severity = severity; __entry->severity = severity;
__entry->tlp_header_valid = tlp_header_valid; __entry->tlp_header_valid = tlp_header_valid;

View File

@ -32,8 +32,8 @@ DECLARE_EVENT_CLASS(snd_soc_dapm,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(card_name, dapm->card->name); __assign_str(card_name);
__assign_str(comp_name, dapm->component ? dapm->component->name : "(none)"); __assign_str(comp_name);
__entry->val = val; __entry->val = val;
), ),
@ -69,7 +69,7 @@ DECLARE_EVENT_CLASS(snd_soc_dapm_basic,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, card->name); __assign_str(name);
__entry->event = event; __entry->event = event;
), ),
@ -104,7 +104,7 @@ DECLARE_EVENT_CLASS(snd_soc_dapm_widget,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, w->name); __assign_str(name);
__entry->val = val; __entry->val = val;
), ),
@ -150,7 +150,7 @@ TRACE_EVENT(snd_soc_dapm_walk_done,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, card->name); __assign_str(name);
__entry->power_checks = card->dapm_stats.power_checks; __entry->power_checks = card->dapm_stats.power_checks;
__entry->path_checks = card->dapm_stats.path_checks; __entry->path_checks = card->dapm_stats.path_checks;
__entry->neighbour_checks = card->dapm_stats.neighbour_checks; __entry->neighbour_checks = card->dapm_stats.neighbour_checks;
@ -179,9 +179,9 @@ TRACE_EVENT(snd_soc_dapm_path,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(wname, widget->name); __assign_str(wname);
__assign_str(pname, path->name ? path->name : DAPM_DIRECT); __assign_str(pname);
__assign_str(pnname, path->node[dir]->name); __assign_str(pnname);
__entry->path_connect = path->connect; __entry->path_connect = path->connect;
__entry->path_node = (long)path->node[dir]; __entry->path_node = (long)path->node[dir];
__entry->path_dir = dir; __entry->path_dir = dir;
@ -226,7 +226,7 @@ TRACE_EVENT(snd_soc_jack_irq,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, name); __assign_str(name);
), ),
TP_printk("%s", __get_str(name)) TP_printk("%s", __get_str(name))
@ -245,7 +245,7 @@ TRACE_EVENT(snd_soc_jack_report,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, jack->jack->id); __assign_str(name);
__entry->mask = mask; __entry->mask = mask;
__entry->val = val; __entry->val = val;
), ),
@ -266,7 +266,7 @@ TRACE_EVENT(snd_soc_jack_notify,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, jack->jack->id); __assign_str(name);
__entry->val = val; __entry->val = val;
), ),

View File

@ -36,9 +36,9 @@ TRACE_EVENT(selinux_audited,
__entry->denied = sad->denied; __entry->denied = sad->denied;
__entry->audited = sad->audited; __entry->audited = sad->audited;
__entry->result = sad->result; __entry->result = sad->result;
__assign_str(tcontext, tcontext); __assign_str(tcontext);
__assign_str(scontext, scontext); __assign_str(scontext);
__assign_str(tclass, tclass); __assign_str(tclass);
), ),
TP_printk("requested=0x%x denied=0x%x audited=0x%x result=%d scontext=%s tcontext=%s tclass=%s", TP_printk("requested=0x%x denied=0x%x audited=0x%x result=%d scontext=%s tcontext=%s tclass=%s",

View File

@ -25,7 +25,7 @@ TRACE_EVENT(br_fdb_add,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev, dev->name); __assign_str(dev);
memcpy(__entry->addr, addr, ETH_ALEN); memcpy(__entry->addr, addr, ETH_ALEN);
__entry->vid = vid; __entry->vid = vid;
__entry->nlh_flags = nlh_flags; __entry->nlh_flags = nlh_flags;
@ -54,8 +54,8 @@ TRACE_EVENT(br_fdb_external_learn_add,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(br_dev, br->dev->name); __assign_str(br_dev);
__assign_str(dev, p ? p->dev->name : "null"); __assign_str(dev);
memcpy(__entry->addr, addr, ETH_ALEN); memcpy(__entry->addr, addr, ETH_ALEN);
__entry->vid = vid; __entry->vid = vid;
), ),
@ -80,8 +80,8 @@ TRACE_EVENT(fdb_delete,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(br_dev, br->dev->name); __assign_str(br_dev);
__assign_str(dev, f->dst ? f->dst->dev->name : "null"); __assign_str(dev);
memcpy(__entry->addr, f->key.addr.addr, ETH_ALEN); memcpy(__entry->addr, f->key.addr.addr, ETH_ALEN);
__entry->vid = f->key.vlan_id; __entry->vid = f->key.vlan_id;
), ),
@ -108,8 +108,8 @@ TRACE_EVENT(br_fdb_update,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(br_dev, br->dev->name); __assign_str(br_dev);
__assign_str(dev, source->dev->name); __assign_str(dev);
memcpy(__entry->addr, addr, ETH_ALEN); memcpy(__entry->addr, addr, ETH_ALEN);
__entry->vid = vid; __entry->vid = vid;
__entry->flags = flags; __entry->flags = flags;
@ -141,7 +141,7 @@ TRACE_EVENT(br_mdb_full,
TP_fast_assign( TP_fast_assign(
struct in6_addr *in6; struct in6_addr *in6;
__assign_str(dev, dev->name); __assign_str(dev);
__entry->vid = group->vid; __entry->vid = group->vid;
if (!group->proto) { if (!group->proto) {

View File

@ -1140,7 +1140,7 @@ TRACE_EVENT(btrfs_space_reservation,
), ),
TP_fast_assign_btrfs(fs_info, TP_fast_assign_btrfs(fs_info,
__assign_str(type, type); __assign_str(type);
__entry->val = val; __entry->val = val;
__entry->bytes = bytes; __entry->bytes = bytes;
__entry->reserve = reserve; __entry->reserve = reserve;
@ -1169,7 +1169,7 @@ TRACE_EVENT(btrfs_trigger_flush,
__entry->flags = flags; __entry->flags = flags;
__entry->bytes = bytes; __entry->bytes = bytes;
__entry->flush = flush; __entry->flush = flush;
__assign_str(reason, reason); __assign_str(reason);
), ),
TP_printk_btrfs("%s: flush=%d(%s) flags=%llu(%s) bytes=%llu", 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), TP_fast_assign_btrfs(btrfs_workqueue_owner(wq),
__entry->wq = wq; __entry->wq = wq;
__assign_str(name, name); __assign_str(name);
), ),
TP_printk_btrfs("name=%s wq=%p", __get_str(name), TP_printk_btrfs("name=%s wq=%p", __get_str(name),

View File

@ -23,7 +23,7 @@ DECLARE_EVENT_CLASS(cgroup_root,
TP_fast_assign( TP_fast_assign(
__entry->root = root->hierarchy_id; __entry->root = root->hierarchy_id;
__entry->ss_mask = root->subsys_mask; __entry->ss_mask = root->subsys_mask;
__assign_str(name, root->name); __assign_str(name);
), ),
TP_printk("root=%d ss_mask=%#x name=%s", TP_printk("root=%d ss_mask=%#x name=%s",
@ -68,7 +68,7 @@ DECLARE_EVENT_CLASS(cgroup,
__entry->root = cgrp->root->hierarchy_id; __entry->root = cgrp->root->hierarchy_id;
__entry->id = cgroup_id(cgrp); __entry->id = cgroup_id(cgrp);
__entry->level = cgrp->level; __entry->level = cgrp->level;
__assign_str(path, path); __assign_str(path);
), ),
TP_printk("root=%d id=%llu level=%d path=%s", 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_root = dst_cgrp->root->hierarchy_id;
__entry->dst_id = cgroup_id(dst_cgrp); __entry->dst_id = cgroup_id(dst_cgrp);
__entry->dst_level = dst_cgrp->level; __entry->dst_level = dst_cgrp->level;
__assign_str(dst_path, path); __assign_str(dst_path);
__entry->pid = task->pid; __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", 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->root = cgrp->root->hierarchy_id;
__entry->id = cgroup_id(cgrp); __entry->id = cgroup_id(cgrp);
__entry->level = cgrp->level; __entry->level = cgrp->level;
__assign_str(path, path); __assign_str(path);
__entry->val = val; __entry->val = val;
), ),

View File

@ -23,7 +23,7 @@ DECLARE_EVENT_CLASS(clk,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, core->name); __assign_str(name);
), ),
TP_printk("%s", __get_str(name)) TP_printk("%s", __get_str(name))
@ -97,7 +97,7 @@ DECLARE_EVENT_CLASS(clk_rate,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, core->name); __assign_str(name);
__entry->rate = rate; __entry->rate = rate;
), ),
@ -145,7 +145,7 @@ DECLARE_EVENT_CLASS(clk_rate_range,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, core->name); __assign_str(name);
__entry->min = min; __entry->min = min;
__entry->max = max; __entry->max = max;
), ),
@ -174,8 +174,8 @@ DECLARE_EVENT_CLASS(clk_parent,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, core->name); __assign_str(name);
__assign_str(pname, parent ? parent->name : "none"); __assign_str(pname);
), ),
TP_printk("%s %s", __get_str(name), __get_str(pname)) TP_printk("%s %s", __get_str(name), __get_str(pname))
@ -207,7 +207,7 @@ DECLARE_EVENT_CLASS(clk_phase,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, core->name); __assign_str(name);
__entry->phase = phase; __entry->phase = phase;
), ),
@ -241,7 +241,7 @@ DECLARE_EVENT_CLASS(clk_duty_cycle,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, core->name); __assign_str(name);
__entry->num = duty->num; __entry->num = duty->num;
__entry->den = duty->den; __entry->den = duty->den;
), ),
@ -279,8 +279,8 @@ DECLARE_EVENT_CLASS(clk_rate_request,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, req->core ? req->core->name : "none"); __assign_str(name);
__assign_str(pname, req->best_parent_hw ? clk_hw_get_name(req->best_parent_hw) : "none"); __assign_str(pname);
__entry->min = req->min_rate; __entry->min = req->min_rate;
__entry->max = req->max_rate; __entry->max = req->max_rate;
__entry->prate = req->best_parent_rate; __entry->prate = req->best_parent_rate;

View File

@ -23,7 +23,7 @@ TRACE_EVENT(cma_release,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, name); __assign_str(name);
__entry->pfn = pfn; __entry->pfn = pfn;
__entry->page = page; __entry->page = page;
__entry->count = count; __entry->count = count;
@ -49,7 +49,7 @@ TRACE_EVENT(cma_alloc_start,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, name); __assign_str(name);
__entry->count = count; __entry->count = count;
__entry->align = align; __entry->align = align;
), ),
@ -77,7 +77,7 @@ TRACE_EVENT(cma_alloc_finish,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, name); __assign_str(name);
__entry->pfn = pfn; __entry->pfn = pfn;
__entry->page = page; __entry->page = page;
__entry->count = count; __entry->count = count;
@ -110,7 +110,7 @@ TRACE_EVENT(cma_alloc_busy_retry,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(name, name); __assign_str(name);
__entry->pfn = pfn; __entry->pfn = pfn;
__entry->page = page; __entry->page = page;
__entry->count = count; __entry->count = count;

View File

@ -23,7 +23,7 @@ TRACE_EVENT(devfreq_frequency,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dev_name, dev_name(&devfreq->dev)); __assign_str(dev_name);
__entry->freq = freq; __entry->freq = freq;
__entry->prev_freq = prev_freq; __entry->prev_freq = prev_freq;
__entry->busy_time = devfreq->last_status.busy_time; __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->busy_time = devfreq->last_status.busy_time;
__entry->total_time = devfreq->last_status.total_time; __entry->total_time = devfreq->last_status.total_time;
__entry->polling_ms = devfreq->profile->polling_ms; __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", TP_printk("dev_name=%-30s freq=%-12lu polling_ms=%-3u load=%-2lu",

View File

@ -31,9 +31,9 @@ TRACE_EVENT(devlink_hwmsg,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(bus_name, devlink_to_dev(devlink)->bus->name); __assign_str(bus_name);
__assign_str(dev_name, dev_name(devlink_to_dev(devlink))); __assign_str(dev_name);
__assign_str(driver_name, devlink_to_dev(devlink)->driver->name); __assign_str(driver_name);
__entry->incoming = incoming; __entry->incoming = incoming;
__entry->type = type; __entry->type = type;
memcpy(__get_dynamic_array(buf), buf, len); memcpy(__get_dynamic_array(buf), buf, len);
@ -63,11 +63,11 @@ TRACE_EVENT(devlink_hwerr,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(bus_name, devlink_to_dev(devlink)->bus->name); __assign_str(bus_name);
__assign_str(dev_name, dev_name(devlink_to_dev(devlink))); __assign_str(dev_name);
__assign_str(driver_name, devlink_to_dev(devlink)->driver->name); __assign_str(driver_name);
__entry->err = err; __entry->err = err;
__assign_str(msg, msg); __assign_str(msg);
), ),
TP_printk("bus_name=%s dev_name=%s driver_name=%s err=%d %s", 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( TP_fast_assign(
__assign_str(bus_name, devlink_to_dev(devlink)->bus->name); __assign_str(bus_name);
__assign_str(dev_name, dev_name(devlink_to_dev(devlink))); __assign_str(dev_name);
__assign_str(driver_name, devlink_to_dev(devlink)->driver->name); __assign_str(driver_name);
__assign_str(reporter_name, reporter_name); __assign_str(reporter_name);
__assign_str(msg, msg); __assign_str(msg);
), ),
TP_printk("bus_name=%s dev_name=%s driver_name=%s reporter_name=%s: %s", 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( TP_fast_assign(
__assign_str(bus_name, devlink_to_dev(devlink)->bus->name); __assign_str(bus_name);
__assign_str(dev_name, dev_name(devlink_to_dev(devlink))); __assign_str(dev_name);
__assign_str(driver_name, devlink_to_dev(devlink)->driver->name); __assign_str(driver_name);
__assign_str(reporter_name, reporter_name); __assign_str(reporter_name);
__entry->health_state = health_state; __entry->health_state = health_state;
__entry->time_since_last_recover = time_since_last_recover; __entry->time_since_last_recover = time_since_last_recover;
), ),
@ -158,10 +158,10 @@ TRACE_EVENT(devlink_health_reporter_state_update,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(bus_name, devlink_to_dev(devlink)->bus->name); __assign_str(bus_name);
__assign_str(dev_name, dev_name(devlink_to_dev(devlink))); __assign_str(dev_name);
__assign_str(driver_name, devlink_to_dev(devlink)->driver->name); __assign_str(driver_name);
__assign_str(reporter_name, reporter_name); __assign_str(reporter_name);
__entry->new_state = new_state; __entry->new_state = new_state;
), ),
@ -192,11 +192,11 @@ TRACE_EVENT(devlink_trap_report,
TP_fast_assign( TP_fast_assign(
struct net_device *input_dev = metadata->input_dev; struct net_device *input_dev = metadata->input_dev;
__assign_str(bus_name, devlink_to_dev(devlink)->bus->name); __assign_str(bus_name);
__assign_str(dev_name, dev_name(devlink_to_dev(devlink))); __assign_str(dev_name);
__assign_str(driver_name, devlink_to_dev(devlink)->driver->name); __assign_str(driver_name);
__assign_str(trap_name, metadata->trap_name); __assign_str(trap_name);
__assign_str(trap_group_name, metadata->trap_group_name); __assign_str(trap_group_name);
strscpy(__entry->input_dev_name, input_dev ? input_dev->name : "NULL", IFNAMSIZ); strscpy(__entry->input_dev_name, input_dev ? input_dev->name : "NULL", IFNAMSIZ);
), ),

View File

@ -23,8 +23,8 @@ DECLARE_EVENT_CLASS(dma_fence,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(driver, fence->ops->get_driver_name(fence)); __assign_str(driver);
__assign_str(timeline, fence->ops->get_timeline_name(fence)); __assign_str(timeline);
__entry->context = fence->context; __entry->context = fence->context;
__entry->seqno = fence->seqno; __entry->seqno = fence->seqno;
), ),

View File

@ -47,7 +47,7 @@ TRACE_EVENT(erofs_lookup,
TP_fast_assign( TP_fast_assign(
__entry->dev = dir->i_sb->s_dev; __entry->dev = dir->i_sb->s_dev;
__entry->nid = EROFS_I(dir)->nid; __entry->nid = EROFS_I(dir)->nid;
__assign_str(name, dentry->d_name.name); __assign_str(name);
__entry->flags = flags; __entry->flags = flags;
), ),

View File

@ -354,7 +354,7 @@ TRACE_EVENT(f2fs_unlink_enter,
__entry->ino = dir->i_ino; __entry->ino = dir->i_ino;
__entry->size = dir->i_size; __entry->size = dir->i_size;
__entry->blocks = dir->i_blocks; __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, " TP_printk("dev = (%d,%d), dir ino = %lu, i_size = %lld, "
@ -843,7 +843,7 @@ TRACE_EVENT(f2fs_lookup_start,
TP_fast_assign( TP_fast_assign(
__entry->dev = dir->i_sb->s_dev; __entry->dev = dir->i_sb->s_dev;
__entry->ino = dir->i_ino; __entry->ino = dir->i_ino;
__assign_str(name, dentry->d_name.name); __assign_str(name);
__entry->flags = flags; __entry->flags = flags;
), ),
@ -871,7 +871,7 @@ TRACE_EVENT(f2fs_lookup_end,
TP_fast_assign( TP_fast_assign(
__entry->dev = dir->i_sb->s_dev; __entry->dev = dir->i_sb->s_dev;
__entry->ino = dir->i_ino; __entry->ino = dir->i_ino;
__assign_str(name, dentry->d_name.name); __assign_str(name);
__entry->cino = ino; __entry->cino = ino;
__entry->err = err; __entry->err = err;
), ),
@ -903,9 +903,9 @@ TRACE_EVENT(f2fs_rename_start,
TP_fast_assign( TP_fast_assign(
__entry->dev = old_dir->i_sb->s_dev; __entry->dev = old_dir->i_sb->s_dev;
__entry->ino = old_dir->i_ino; __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; __entry->new_pino = new_dir->i_ino;
__assign_str(new_name, new_dentry->d_name.name); __assign_str(new_name);
__entry->flags = flags; __entry->flags = flags;
), ),
@ -937,8 +937,8 @@ TRACE_EVENT(f2fs_rename_end,
TP_fast_assign( TP_fast_assign(
__entry->dev = old_dentry->d_sb->s_dev; __entry->dev = old_dentry->d_sb->s_dev;
__entry->ino = old_dentry->d_inode->i_ino; __entry->ino = old_dentry->d_inode->i_ino;
__assign_str(old_name, old_dentry->d_name.name); __assign_str(old_name);
__assign_str(new_name, new_dentry->d_name.name); __assign_str(new_name);
__entry->flags = flags; __entry->flags = flags;
__entry->ret = ret; __entry->ret = ret;
), ),
@ -1557,7 +1557,7 @@ TRACE_EVENT(f2fs_write_checkpoint,
TP_fast_assign( TP_fast_assign(
__entry->dev = sb->s_dev; __entry->dev = sb->s_dev;
__entry->reason = reason; __entry->reason = reason;
__assign_str(dest_msg, msg); __assign_str(dest_msg);
), ),
TP_printk("dev = (%d,%d), checkpoint for %s, state = %s", 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 * because this screws up the tooling that parses
* the traces. * the traces.
*/ */
__assign_str(pathbuf, pathname); __assign_str(pathbuf);
(void)strreplace(__get_str(pathbuf), ' ', '_'); (void)strreplace(__get_str(pathbuf), ' ', '_');
__entry->offset = offset; __entry->offset = offset;
__entry->bytes = bytes; __entry->bytes = bytes;
__entry->i_size = i_size_read(inode); __entry->i_size = i_size_read(inode);
__assign_str(cmdline, command); __assign_str(cmdline);
(void)strreplace(__get_str(cmdline), ' ', '_'); (void)strreplace(__get_str(cmdline), ' ', '_');
__entry->pid = pid; __entry->pid = pid;
__entry->ino = inode->i_ino; __entry->ino = inode->i_ino;

View File

@ -27,7 +27,7 @@ DECLARE_EVENT_CLASS(habanalabs_mmu_template,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dname, dev_name(dev)); __assign_str(dname);
__entry->virt_addr = virt_addr; __entry->virt_addr = virt_addr;
__entry->phys_addr = phys_addr; __entry->phys_addr = phys_addr;
__entry->page_size = page_size; __entry->page_size = page_size;
@ -64,7 +64,7 @@ DECLARE_EVENT_CLASS(habanalabs_dma_alloc_template,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dname, dev_name(dev)); __assign_str(dname);
__entry->cpu_addr = cpu_addr; __entry->cpu_addr = cpu_addr;
__entry->dma_addr = dma_addr; __entry->dma_addr = dma_addr;
__entry->size = size; __entry->size = size;
@ -103,7 +103,7 @@ DECLARE_EVENT_CLASS(habanalabs_dma_map_template,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dname, dev_name(dev)); __assign_str(dname);
__entry->phys_addr = phys_addr; __entry->phys_addr = phys_addr;
__entry->dma_addr = dma_addr; __entry->dma_addr = dma_addr;
__entry->len = len; __entry->len = len;
@ -141,7 +141,7 @@ DECLARE_EVENT_CLASS(habanalabs_comms_template,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dname, dev_name(dev)); __assign_str(dname);
__entry->op_str = op_str; __entry->op_str = op_str;
), ),
@ -178,7 +178,7 @@ DECLARE_EVENT_CLASS(habanalabs_reg_access_template,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(dname, dev_name(dev)); __assign_str(dname);
__entry->addr = addr; __entry->addr = addr;
__entry->val = val; __entry->val = val;
), ),

View File

@ -191,7 +191,7 @@ TRACE_EVENT(mm_khugepaged_scan_file,
TP_fast_assign( TP_fast_assign(
__entry->mm = mm; __entry->mm = mm;
__entry->pfn = folio ? folio_pfn(folio) : -1; __entry->pfn = folio ? folio_pfn(folio) : -1;
__assign_str(filename, file->f_path.dentry->d_iname); __assign_str(filename);
__entry->present = present; __entry->present = present;
__entry->swap = swap; __entry->swap = swap;
__entry->result = result; __entry->result = result;
@ -228,7 +228,7 @@ TRACE_EVENT(mm_khugepaged_collapse_file,
__entry->index = index; __entry->index = index;
__entry->addr = addr; __entry->addr = addr;
__entry->is_shmem = is_shmem; __entry->is_shmem = is_shmem;
__assign_str(filename, file->f_path.dentry->d_iname); __assign_str(filename);
__entry->nr = nr; __entry->nr = nr;
__entry->result = result; __entry->result = result;
), ),

View File

@ -21,7 +21,7 @@ DECLARE_EVENT_CLASS(hwmon_attr_class,
TP_fast_assign( TP_fast_assign(
__entry->index = index; __entry->index = index;
__assign_str(attr_name, attr_name); __assign_str(attr_name);
__entry->val = val; __entry->val = val;
), ),
@ -57,8 +57,8 @@ TRACE_EVENT(hwmon_attr_show_string,
TP_fast_assign( TP_fast_assign(
__entry->index = index; __entry->index = index;
__assign_str(attr_name, attr_name); __assign_str(attr_name);
__assign_str(label, s); __assign_str(label);
), ),
TP_printk("index=%d, attr_name=%s, val=%s", TP_printk("index=%d, attr_name=%s, val=%s",

View File

@ -18,7 +18,7 @@ TRACE_EVENT(initcall_level,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(level, level); __assign_str(level);
), ),
TP_printk("level=%s", __get_str(level)) TP_printk("level=%s", __get_str(level))

View File

@ -18,7 +18,7 @@ TRACE_EVENT(ishtp_dump,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(message, message); __assign_str(message);
), ),
TP_printk("%s", __get_str(message)) TP_printk("%s", __get_str(message))

View File

@ -164,7 +164,7 @@ TRACE_EVENT(io_uring_queue_async_work,
__entry->work = &req->work; __entry->work = &req->work;
__entry->rw = rw; __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", 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->data = req->cqe.user_data;
__entry->opcode = req->opcode; __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", 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->opcode = req->opcode;
__entry->link = link; __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", 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->flags = (__force unsigned long long) req->flags;
__entry->sq_thread = req->ctx->flags & IORING_SETUP_SQPOLL; __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, " 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->mask = mask;
__entry->events = events; __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", 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->opcode = req->opcode;
__entry->mask = mask; __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", 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->addr3 = sqe->addr3;
__entry->error = error; __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, " TP_printk("ring %p, req %p, user_data 0x%llx, "

View File

@ -34,8 +34,8 @@ DECLARE_EVENT_CLASS(iocost_iocg_state,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(devname, ioc_name(iocg->ioc)); __assign_str(devname);
__assign_str(cgroup, path); __assign_str(cgroup);
__entry->now = now->now; __entry->now = now->now;
__entry->vnow = now->vnow; __entry->vnow = now->vnow;
__entry->vrate = iocg->ioc->vtime_base_rate; __entry->vrate = iocg->ioc->vtime_base_rate;
@ -93,8 +93,8 @@ DECLARE_EVENT_CLASS(iocg_inuse_update,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(devname, ioc_name(iocg->ioc)); __assign_str(devname);
__assign_str(cgroup, path); __assign_str(cgroup);
__entry->now = now->now; __entry->now = now->now;
__entry->old_inuse = old_inuse; __entry->old_inuse = old_inuse;
__entry->new_inuse = new_inuse; __entry->new_inuse = new_inuse;
@ -159,7 +159,7 @@ TRACE_EVENT(iocost_ioc_vrate_adj,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(devname, ioc_name(ioc)); __assign_str(devname);
__entry->old_vrate = ioc->vtime_base_rate; __entry->old_vrate = ioc->vtime_base_rate;
__entry->new_vrate = new_vrate; __entry->new_vrate = new_vrate;
__entry->busy_level = ioc->busy_level; __entry->busy_level = ioc->busy_level;
@ -200,8 +200,8 @@ TRACE_EVENT(iocost_iocg_forgive_debt,
), ),
TP_fast_assign( TP_fast_assign(
__assign_str(devname, ioc_name(iocg->ioc)); __assign_str(devname);
__assign_str(cgroup, path); __assign_str(cgroup);
__entry->now = now->now; __entry->now = now->now;
__entry->vnow = now->vnow; __entry->vnow = now->vnow;
__entry->usage_pct = usage_pct; __entry->usage_pct = usage_pct;

Some files were not shown because too many files have changed in this diff Show More