1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/mellanox/mlx5/core
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
..
diag tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
en dma-mapping updates for Linux 6.10 2024-05-20 10:23:39 -07:00
en_accel Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-04-25 12:41:37 -07:00
esw tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
fpga net/mlx5: remove many unnecessary NULL values 2023-08-07 10:53:52 -07:00
ipoib net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
lag Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-05-14 10:53:19 -07:00
lib Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-04-18 13:12:24 -07:00
sf tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
steering Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-04-11 14:23:47 -07:00
alloc.c
cmd.c net/mlx5: Discard command completions in internal error 2024-05-10 19:38:33 -07:00
cq.c
debugfs.c net/mlx5e: debugfs, Add reset option for command interface stats 2024-04-03 19:47:58 -07:00
dev.c net/mlx5: Change missing SyncE capability print to debug 2024-02-05 16:45:52 -08:00
devlink.c net/mlx5: Check capability for fw_reset 2024-03-01 23:02:26 -08:00
devlink.h net/mlx5: Expose max possible SFs via devlink resource 2023-08-14 14:40:20 -07:00
dpll.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-03-07 10:29:36 -08:00
ecpf.c Revert "mlx5 updates 2023-12-20" 2024-01-07 17:16:11 -08:00
ecpf.h
en.h net/mlx5e: Modifying channels number and updating TX queues 2024-05-13 16:35:47 -07:00
en_arfs.c net/mlx5e: Prevent deadlock while disabling aRFS 2024-04-12 19:13:53 -07:00
en_common.c net/mlx5e: Use the correct lag ports number when creating TISes 2024-01-24 00:15:32 -08:00
en_dcbnl.c net/mlx5e: Remove mlx5e_dbg() and msglvl support 2023-06-16 12:02:07 -07:00
en_dim.c net/mlx5e: Support updating coalescing configuration without resetting channels 2024-04-22 14:22:16 -07:00
en_ethtool.c net/mlx5e: Modifying channels number and updating TX queues 2024-05-13 16:35:47 -07:00
en_fs.c net/mlx5: Support matching on l4_type for ttc_table 2024-04-03 19:47:59 -07:00
en_fs_ethtool.c mlx5-updates-2023-07-24 2023-07-28 13:41:59 -07:00
en_main.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-05-14 10:53:19 -07:00
en_rep.c net/mlx5e: Implement ethtool callbacks for supporting per-queue coalescing 2024-04-22 14:22:16 -07:00
en_rep.h net/mlx5e: rep, store send to vport rules per peer 2023-06-02 12:10:46 -07:00
en_rx.c xsk: use generic DMA sync shortcut instead of a custom one 2024-05-08 08:51:20 +02:00
en_selftest.c net/mlx5e: Use ethtool_sprintf/puts() to fill selftests strings 2024-04-03 19:47:58 -07:00
en_stats.c net/mlx5e: Implement ethtool hardware timestamping statistics 2024-04-05 22:24:09 -07:00
en_stats.h net/mlx5e: Expose the VF/SF RX drop counter on the representor 2024-04-11 19:31:12 -07:00
en_tc.c net/mlx5e: flower: check for unsupported control flags 2024-05-02 18:19:13 -07:00
en_tc.h net/mlx5e: Some cleanup in mlx5e_tc_stats_matchall() 2023-11-15 11:34:29 -08:00
en_tx.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-04-11 14:23:47 -07:00
en_txrx.c net/mlx5e: Dynamically allocate DIM structure for SQs/RQs 2024-04-22 14:22:16 -07:00
eq.c net/mlx5: Skip pages EQ creation for non-page supplier function 2024-04-03 19:47:59 -07:00
eswitch.c devlink: extend devlink_param *set pointer 2024-04-22 13:05:19 -07:00
eswitch.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-05-14 10:53:19 -07:00
eswitch_offloads.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-05-14 10:53:19 -07:00
eswitch_offloads_termtbl.c net/mlx5: Refactor mlx5_flow_destination->rep pointer to vport num 2023-12-13 17:22:18 -08:00
events.c net/mlx5: Parallelize vhca event handling 2023-10-14 10:16:29 -07:00
fs_cmd.c net/mlx5: Bridge, fix multicast packets sent to uplink 2024-01-24 00:15:35 -08:00
fs_cmd.h net/mlx5: fs, Command to control TX flow table root 2023-12-13 18:03:30 -08:00
fs_core.c devlink: extend devlink_param *set pointer 2024-04-22 13:05:19 -07:00
fs_core.h net/mlx5: Annotate struct mlx5_flow_handle with __counted_by 2023-11-15 11:34:30 -08:00
fs_counters.c net/mlx5: Annotate struct mlx5_fc_bulk with __counted_by 2023-11-15 11:34:30 -08:00
fs_ft_pool.c
fs_ft_pool.h
fw.c net/mlx5: Convert uintX_t to uX 2024-04-03 19:47:58 -07:00
fw_reset.c devlink: extend devlink_param *set pointer 2024-04-22 13:05:19 -07:00
fw_reset.h net/mlx5: Check with FW that sync reset completed successfully 2023-08-14 14:40:21 -07:00
health.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-03-07 10:29:36 -08:00
hwmon.c net/mlx5: Expose NIC temperature via hardware monitoring kernel API 2023-08-09 15:52:16 -07:00
hwmon.h net/mlx5: Expose NIC temperature via hardware monitoring kernel API 2023-08-09 15:52:16 -07:00
irq_affinity.c net/mlx5: Free used cpus mask when an IRQ is released 2023-11-15 22:34:09 -08:00
Kconfig mlx5: Implement SyncE support using DPLL infrastructure 2023-09-17 11:50:20 +01:00
main.c net/mlx5: Fix peer devlink set for SF representor devlink port 2024-05-10 19:38:32 -07:00
Makefile net/mlx5: SD, Introduce SD lib 2024-03-07 00:40:38 -08:00
mcg.c
mlx5_core.h net/mlx5: Convert uintX_t to uX 2024-04-03 19:47:58 -07:00
mlx5_irq.h net/mlx5: Refactor completion IRQ request/release API 2023-08-07 10:53:50 -07:00
mr.c net/mlx5e: Use query_special_contexts cmd only once per mdev 2023-05-24 20:44:18 -07:00
pagealloc.c net/mlx5: Don't call give_pages() if request 0 page 2024-04-03 19:47:59 -07:00
pci_irq.c net/mlx5: Remove unused msix related exported APIs 2024-05-13 16:35:47 -07:00
pci_irq.h net/mlx5: Increase size of irq name buffer 2023-11-15 22:34:31 -08:00
pd.c
port.c net/mlx5: Expose Management PCIe Index Register (MPIR) 2023-12-13 18:03:30 -08:00
qos.c net/mlx5e: QoS, Fix wrongfully setting parent_element_id on MODIFY_SCHEDULING_ELEMENT 2023-01-18 00:01:39 -08:00
qos.h net/mlx5e: QoS, Fix wrongfully setting parent_element_id on MODIFY_SCHEDULING_ELEMENT 2023-01-18 00:01:39 -08:00
rdma.c net/mlx5: E-Switch, Use metadata matching for RoCE loopback rule 2023-05-19 10:50:31 -07:00
rdma.h
rl.c
sriov.c net/mlx5: Allow 0 for total host VFs 2023-08-07 11:48:39 -07:00
transobj.c
uar.c net/mlx5e: Remove unneeded io-mapping.h #include 2022-11-29 21:09:41 -08:00
vport.c net/mlx5: Fix query of sd_group field 2024-01-24 00:15:33 -08:00
wq.c
wq.h net/mlx5e: Support enhanced CQE compression 2022-11-12 02:20:19 -08:00