linux/drivers/net/ethernet/marvell/octeontx2/af
Steven Rostedt (Google) 2c92ca849f 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>
2024-05-22 20:14:47 -04:00
..
Makefile
cgx.c octeontx2-pf: Reset MAC stats during probe 2024-04-03 11:03:40 +01:00
cgx.h octeontx2-pf: Reset MAC stats during probe 2024-04-03 11:03:40 +01:00
cgx_fw_if.h
common.h
lmac_common.h octeontx2-pf: Reset MAC stats during probe 2024-04-03 11:03:40 +01:00
mbox.c octeontx2: Detect the mbox up or down message via register 2024-03-20 10:49:07 +00:00
mbox.h octeontx2-pf: Reset MAC stats during probe 2024-04-03 11:03:40 +01:00
mcs.c octeontx2-af: Fix mcs stats register address 2023-12-06 13:44:38 +01:00
mcs.h octeontx2-af: Adjust Tx credits when MCS external bypass is disabled 2023-12-06 13:44:38 +01:00
mcs_cnf10kb.c
mcs_reg.h octeontx2-af: Fix mcs stats register address 2023-12-06 13:44:38 +01:00
mcs_rvu_if.c octeontx2: Detect the mbox up or down message via register 2024-03-20 10:49:07 +00:00
npc.h octeontx2-pf: Add TC flower offload support for TCP flags 2024-03-08 10:26:52 +00:00
npc_profile.h octeontx2-af: Add filter profiles in hardware to extract packet headers 2024-01-29 11:28:41 +00:00
ptp.c octeontx2-pf: Enable PTP PPS output support 2023-09-15 10:35:07 +01:00
ptp.h octeontx2-pf: Use PTP HW timestamp counter atomic update feature 2023-08-23 08:20:50 +01:00
rpm.c octeontx2-pf: Reset MAC stats during probe 2024-04-03 11:03:40 +01:00
rpm.h octeontx2-pf: Reset MAC stats during probe 2024-04-03 11:03:40 +01:00
rvu.c octeontx2-af: Use separate handlers for interrupts 2024-03-20 10:49:07 +00:00
rvu.h octeontx2: Detect the mbox up or down message via register 2024-03-20 10:49:07 +00:00
rvu_cgx.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-04-04 18:01:07 -07:00
rvu_cn10k.c octeontx2-af: cn10k: Increase outstanding LMTST transactions 2023-12-06 13:37:32 +01:00
rvu_cpt.c
rvu_debugfs.c octeontx2-af: avoid off-by-one read from userspace 2024-04-25 19:23:51 -07:00
rvu_devlink.c devlink: extend devlink_param *set pointer 2024-04-22 13:05:19 -07:00
rvu_devlink.h
rvu_nix.c octeontx2-af: Fix NIX SQ mode and BP config 2024-04-09 11:59:42 +02:00
rvu_npa.c
rvu_npc.c octeontx2-af: fix the double free in rvu_npc_freemem() 2024-04-25 08:28:36 -07:00
rvu_npc_fs.c octeontx2-pf: Add support for offload tc with skbedit mark action 2024-04-22 10:14:14 +01:00
rvu_npc_fs.h
rvu_npc_hash.c
rvu_npc_hash.h
rvu_reg.c octeontx2-af: Update Tx link register range 2023-12-06 13:44:38 +01:00
rvu_reg.h octeontx2-af: Create BPIDs free pool 2024-02-02 12:12:35 +00:00
rvu_sdp.c Octeontx2-af: Fetch MAC channel info from firmware 2024-02-14 10:35:25 +00:00
rvu_struct.h octeontx2-af: debugfs: update CQ context fields 2023-12-01 20:06:12 -08:00
rvu_switch.c
rvu_trace.c
rvu_trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00