linux/drivers/gpu/drm/msm
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
..
adreno drm/msm/a6xx: Cleanup indexed regs const'ness 2024-05-07 07:56:35 -07:00
disp tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
dp drm/msm/dp: Use function arguments for audio operations 2024-04-22 16:22:49 +03:00
dsi drm/msm/dsi: Print dual-DSI-adjusted pclk instead of original mode pclk 2024-04-22 16:22:50 +03:00
hdmi drm/msm: Drop msm_read/writel 2024-04-22 16:22:50 +03:00
registers drm/msm/gen_header: allow skipping the validation 2024-05-07 07:56:40 -07:00
.gitignore drm/msm: generate headers on the fly 2024-04-22 16:22:50 +03:00
Kconfig Merge tag 'drm-misc-next-fixes-2024-05-08' of https://gitlab.freedesktop.org/drm/misc/kernel into drm-next 2024-05-10 12:06:28 +10:00
Makefile Kbuild updates for v6.10 2024-05-18 12:39:20 -07:00
msm_atomic.c
msm_atomic_trace.h
msm_atomic_tracepoints.c
msm_debugfs.c
msm_debugfs.h
msm_drv.c drm/msm: remove dependencies from core onto adreno headers 2024-04-22 16:22:49 +03:00
msm_drv.h drm/msm: merge dpu format database to MDP formats 2024-04-23 12:56:30 +03:00
msm_dsc_helper.h
msm_fb.c drm/msm: drop msm_kms_funcs::get_format() callback 2024-04-23 12:56:30 +03:00
msm_fbdev.c
msm_fence.c
msm_fence.h
msm_gem.c drm/msm: Acquire reservation lock in GEM pin/unpin callback 2024-03-11 13:33:50 +01:00
msm_gem.h drm/msm: Acquire reservation lock in GEM pin/unpin callback 2024-03-11 13:33:50 +01:00
msm_gem_prime.c drm/gem: Acquire reservation lock in drm_gem_{pin/unpin}() 2024-03-11 13:33:50 +01:00
msm_gem_shrinker.c
msm_gem_submit.c
msm_gem_vma.c
msm_gpu.c drm/msm: remove dependencies from core onto adreno headers 2024-04-22 16:22:49 +03:00
msm_gpu.h drm/msm: Drop msm_read/writel 2024-04-22 16:22:50 +03:00
msm_gpu_devfreq.c
msm_gpu_trace.h
msm_gpu_tracepoints.c
msm_io_utils.c drm/msm/dpu: support binding to the mdp5 devices 2024-02-19 13:39:39 +02:00
msm_iommu.c drm/msm: Wire up tlb ops 2024-02-15 08:51:31 -08:00
msm_kms.c drm/msm: Add newlines to some debug prints 2024-03-29 13:25:22 -07:00
msm_kms.h drm/msm: drop msm_kms_funcs::get_format() callback 2024-04-23 12:56:30 +03:00
msm_mdss.c drm/msm: mdss: Add X1E80100 support 2024-02-22 23:23:24 +02:00
msm_mdss.h
msm_mmu.h drm/msm: move msm_gpummu.c to adreno/a2xx_gpummu.c 2024-04-22 16:22:49 +03:00
msm_perf.c
msm_rd.c
msm_ringbuffer.c
msm_ringbuffer.h
msm_submitqueue.c
NOTES