1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/lima
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
..
Kconfig drm/lima: Add optional devfreq and cooling device support 2020-03-28 16:29:46 +08:00
lima_bcast.c drm/lima: add mask irq callback to gp and pp 2024-04-15 09:05:38 +08:00
lima_bcast.h drm/lima: add mask irq callback to gp and pp 2024-04-15 09:05:38 +08:00
lima_ctx.c drm/lima: remove guilty drm_sched context handling 2024-02-12 16:27:28 +08:00
lima_ctx.h drm/lima: remove guilty drm_sched context handling 2024-02-12 16:27:28 +08:00
lima_devfreq.c drm/lima: Fix opp clkname setting in case of missing regulator 2022-11-14 19:08:21 +08:00
lima_devfreq.h drm for 5.13-rc1 2021-04-28 10:01:40 -07:00
lima_device.c drm/sched: implement dynamic job-flow control 2023-11-10 02:54:29 +01:00
lima_device.h Revert "drm/lima: allocate unique id per drm_file" 2023-04-05 08:40:06 +08:00
lima_dlbu.c drm/lima: add resume/suspend callback for each ip 2020-04-24 20:51:10 +08:00
lima_dlbu.h drm/lima: add resume/suspend callback for each ip 2020-04-24 20:51:10 +08:00
lima_drv.c drm/lima: fix void pointer to enum lima_gpu_id cast warning 2024-04-15 09:06:27 +08:00
lima_drv.h drm/lima: fix void pointer to enum lima_gpu_id cast warning 2024-04-15 09:06:27 +08:00
lima_dump.h drm/lima: save task info dump when task fail 2020-03-22 09:35:19 +08:00
lima_gem.c drm/lima: fix a memleak in lima_heap_alloc 2024-01-19 10:12:01 +08:00
lima_gem.h drm/lima: support heap buffer creation 2020-01-27 22:01:09 +08:00
lima_gp.c drm/lima: fix shared irq handling on driver remove 2024-04-15 09:06:18 +08:00
lima_gp.h drm/lima: add resume/suspend callback for each ip 2020-04-24 20:51:10 +08:00
lima_l2_cache.c drm/lima: standardize debug messages by ip name 2024-02-12 16:27:48 +08:00
lima_l2_cache.h drm/lima: add resume/suspend callback for each ip 2020-04-24 20:51:10 +08:00
lima_mmu.c drm/lima: fix shared irq handling on driver remove 2024-04-15 09:06:18 +08:00
lima_mmu.h drm/lima: add resume/suspend callback for each ip 2020-04-24 20:51:10 +08:00
lima_pmu.c drm/lima: standardize debug messages by ip name 2024-02-12 16:27:48 +08:00
lima_pmu.h drm/lima: add resume/suspend callback for each ip 2020-04-24 20:51:10 +08:00
lima_pp.c drm/lima: fix shared irq handling on driver remove 2024-04-15 09:06:18 +08:00
lima_pp.h drm/lima: add resume/suspend callback for each ip 2020-04-24 20:51:10 +08:00
lima_regs.h drm/lima: update register info 2020-01-27 22:00:12 +08:00
lima_sched.c drm/lima: mask irqs in timeout path before hard reset 2024-04-15 09:06:04 +08:00
lima_sched.h drm/lima: add mask irq callback to gp and pp 2024-04-15 09:05:38 +08:00
lima_trace.c drm/lima: add trace point for tasks 2020-03-22 09:57:21 +08:00
lima_trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
lima_vm.c drm: lima: fix common struct sg_table related issues 2020-09-10 08:18:35 +02:00
lima_vm.h drm/lima: check vm != NULL in lima_vm_put 2020-04-24 20:50:46 +08:00
Makefile drm/lima: Add optional devfreq and cooling device support 2020-03-28 16:29:46 +08:00