1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/msm/disp/dpu1
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
..
catalog drm/msm/dp: assign correct DP controller ID to x1e80100 interface table 2024-03-29 13:44:51 -07:00
dpu_core_irq.h drm/msm/dpu: shift IRQ indices by 1 2023-10-09 12:17:41 +03:00
dpu_core_perf.c drm/msm/dpu: don't allow overriding data from catalog 2024-03-29 13:28:48 -07:00
dpu_core_perf.h drm/msm/dpu: drop dpu_core_perf_destroy() 2023-08-02 12:39:27 +03:00
dpu_crtc.c drm/msm: merge dpu_format and mdp_format in struct msm_format 2024-04-23 12:56:29 +03:00
dpu_crtc.h drm/msm/dpu: get rid of cached flush_mask 2022-09-18 09:38:03 -07:00
dpu_encoder.c drm/msm: merge dpu_format and mdp_format in struct msm_format 2024-04-23 12:56:29 +03:00
dpu_encoder.h drm/msm/dpu: split dpu_encoder_wait_for_event into two functions 2024-03-04 11:41:09 +02:00
dpu_encoder_phys.h drm/msm: merge dpu_format and mdp_format in struct msm_format 2024-04-23 12:56:29 +03:00
dpu_encoder_phys_cmd.c drm/msm/dpu: Always flush the slave INTF on the CTL 2024-04-22 16:22:50 +03:00
dpu_encoder_phys_vid.c drm/msm: drop msm_kms_funcs::get_format() callback 2024-04-23 12:56:30 +03:00
dpu_encoder_phys_wb.c drm/msm: drop msm_kms_funcs::get_format() callback 2024-04-23 12:56:30 +03:00
dpu_formats.c drm/msm: merge dpu format database to MDP formats 2024-04-23 12:56:30 +03:00
dpu_formats.h drm/msm: merge dpu format database to MDP formats 2024-04-23 12:56:30 +03:00
dpu_hw_catalog.c drm/msm/dpu: Add X1E80100 support 2024-02-22 23:23:24 +02:00
dpu_hw_catalog.h drm/msm/dpu: Add X1E80100 support 2024-02-22 23:23:24 +02:00
dpu_hw_cdm.c drm/msm: merge dpu_format and mdp_format in struct msm_format 2024-04-23 12:56:29 +03:00
dpu_hw_cdm.h drm/msm: merge dpu_format and mdp_format in struct msm_format 2024-04-23 12:56:29 +03:00
dpu_hw_ctl.c drm/msm/dpu: Allow configuring multiple active DSC blocks 2024-04-22 16:22:50 +03:00
dpu_hw_ctl.h drm/msm/dpu: add support of new peripheral flush mechanism 2024-03-04 11:38:50 +02:00
dpu_hw_dsc.c drm/msm/dpu: use devres-managed allocation for HW blocks 2023-12-05 22:14:33 +03:00
dpu_hw_dsc.h drm/msm/dpu: use devres-managed allocation for HW blocks 2023-12-05 22:14:33 +03:00
dpu_hw_dsc_1_2.c drm/msm/dpu: use devres-managed allocation for HW blocks 2023-12-05 22:14:33 +03:00
dpu_hw_dspp.c drm/msm/dpu: use devres-managed allocation for HW blocks 2023-12-05 22:14:33 +03:00
dpu_hw_dspp.h drm/msm/dpu: use devres-managed allocation for HW blocks 2023-12-05 22:14:33 +03:00
dpu_hw_interrupts.c drm/msm/dpu: Add callback function pointer check before its call 2024-04-23 12:56:30 +03:00
dpu_hw_interrupts.h drm/msm/dpu: use devres-managed allocation for interrupts data 2023-12-05 22:14:33 +03:00
dpu_hw_intf.c drm/msm: merge dpu_format and mdp_format in struct msm_format 2024-04-23 12:56:29 +03:00
dpu_hw_intf.h drm/msm: merge dpu_format and mdp_format in struct msm_format 2024-04-23 12:56:29 +03:00
dpu_hw_lm.c drm/msm/dpu: Drop enable and frame_count parameters from dpu_hw_setup_misr() 2023-12-14 09:27:45 +02:00
dpu_hw_lm.h drm/msm/dpu: Drop enable and frame_count parameters from dpu_hw_setup_misr() 2023-12-14 09:27:45 +02:00
dpu_hw_mdss.h drm/msm: merge dpu format database to MDP formats 2024-04-23 12:56:30 +03:00
dpu_hw_merge3d.c drm/msm/dpu: use devres-managed allocation for HW blocks 2023-12-05 22:14:33 +03:00
dpu_hw_merge3d.h drm/msm/dpu: use devres-managed allocation for HW blocks 2023-12-05 22:14:33 +03:00
dpu_hw_pingpong.c drm/msm/dpu: use devres-managed allocation for HW blocks 2023-12-05 22:14:33 +03:00
dpu_hw_pingpong.h drm/msm/dpu: use devres-managed allocation for HW blocks 2023-12-05 22:14:33 +03:00
dpu_hw_sspp.c Merge tag 'drm-msm-next-2024-05-07' of https://gitlab.freedesktop.org/drm/msm into drm-next 2024-05-10 10:22:59 +10:00
dpu_hw_sspp.h drm/msm: merge dpu_format and mdp_format in struct msm_format 2024-04-23 12:56:29 +03:00
dpu_hw_top.c drm/msm/dpu: use devres-managed allocation for MDP TOP 2023-12-05 22:14:33 +03:00
dpu_hw_top.h drm/msm/dpu: use devres-managed allocation for MDP TOP 2023-12-05 22:14:33 +03:00
dpu_hw_util.c drm/msm: merge dpu_format and mdp_format in struct msm_format 2024-04-23 12:56:29 +03:00
dpu_hw_util.h drm/msm: merge dpu_format and mdp_format in struct msm_format 2024-04-23 12:56:29 +03:00
dpu_hw_vbif.c drm/msm/dpu: use devres-managed allocation for VBIF data 2023-12-05 22:14:33 +03:00
dpu_hw_vbif.h drm/msm/dpu: use devres-managed allocation for VBIF data 2023-12-05 22:14:33 +03:00
dpu_hw_wb.c drm/msm: convert msm_format::unpack_align_msb to the flag 2024-04-23 12:56:30 +03:00
dpu_hw_wb.h drm/msm: merge dpu_format and mdp_format in struct msm_format 2024-04-23 12:56:29 +03:00
dpu_hwio.h drm/msm/dpu: Move non-MDP_TOP INTF_INTR offsets out of hwio header 2023-04-26 16:46:57 -07:00
dpu_kms.c drm/msm: drop msm_kms_funcs::get_format() callback 2024-04-23 12:56:30 +03:00
dpu_kms.h drm/msm/dpu: add current resource allocation to dumped state 2024-04-08 18:56:58 +03:00
dpu_plane.c drm/msm: drop msm_kms_funcs::get_format() callback 2024-04-23 12:56:30 +03:00
dpu_plane.h drm/msm/dpu: remove unused dpu_plane_validate_multirect_v2 function 2023-04-06 20:29:43 +03:00
dpu_rm.c drm/msm/dpu: add current resource allocation to dumped state 2024-04-08 18:56:58 +03:00
dpu_rm.h drm/msm/dpu: add current resource allocation to dumped state 2024-04-08 18:56:58 +03:00
dpu_trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
dpu_vbif.c drm/msm/dpu: move setup_force_clk_ctrl handling into plane and wb 2023-10-16 09:38:22 -07:00
dpu_vbif.h drm/msm/dpu: move setup_force_clk_ctrl handling into plane and wb 2023-10-16 09:38:22 -07:00
dpu_writeback.c drm/msm/dpu: move writeback's atomic_check to dpu_writeback.c 2024-02-11 22:38:08 +02:00
dpu_writeback.h drm/msm/dpu: move writeback's atomic_check to dpu_writeback.c 2024-02-11 22:38:08 +02:00
msm_media_info.h drm/msm/dpu: Clean up dpu_media_info.h static inline functions 2018-12-11 13:10:19 -05:00