1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
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 drm/msm/atomic: Don't try async if crtc not active 2023-04-24 13:18:36 -07:00
msm_atomic_trace.h
msm_atomic_tracepoints.c
msm_debugfs.c drm/msm: don't create GPU-related debugfs files with no GPU present 2023-11-20 18:31:42 -08:00
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 drm/msm: Add MSM-specific DSC helper methods 2023-06-15 12:58:56 +03:00
msm_fb.c drm/msm: drop msm_kms_funcs::get_format() callback 2024-04-23 12:56:30 +03:00
msm_fbdev.c fbdev: Align deferred I/O with naming of helpers 2023-07-31 20:07:24 +02:00
msm_fence.c drm/msm: Fix hw_fence error path cleanup 2023-07-17 12:54:20 -07:00
msm_fence.h drm/msm: Add deadline based boost support 2023-03-28 15:46:15 -07:00
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 drm/msm: Reduce fallout of fence signaling vs reclaim hangs 2023-11-20 17:15:02 -08:00
msm_gem_submit.c drm/msm/gem: Convert to drm_exec 2023-12-10 11:19:44 -08:00
msm_gem_vma.c drm/msm: Remove vma use tracking 2023-08-10 13:08:03 -07:00
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 drm/msm/adreno: Use OPP for every GPU generation 2023-03-20 11:04:59 -07:00
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 drm/msm/mdss: Handle the reg bus ICC path 2023-12-05 04:09:43 +03:00
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 drm/msm: don't create GPU-related debugfs files with no GPU present 2023-11-20 18:31:42 -08:00
msm_ringbuffer.c Revert "drm/msm/gpu: Push gpu lock down past runpm" 2024-02-01 15:24:10 -08:00
msm_ringbuffer.h drm/msm/a6xx: Add skeleton A7xx support 2023-10-09 11:22:05 -07:00
msm_submitqueue.c drm/msm: Switch idr_lock to spinlock 2023-03-25 16:31:44 -07:00
NOTES