linux/drivers/hwtracing/coresight
Kees Cook 3a2c4d55e3 treewide: refresh kmalloc_obj() conversions
This is another run of the Coccinelle script for converting kmalloc()
family of allocations to kmalloc_obj() via the existing rules in
scripts/coccinelle/api/kmalloc_objs.cocci

This catches both the set of kmalloc() uses added since the first
kmalloc_obj() conversions in v7.0 and adds a large group missed in the
first pass due to Coccinelle not interacting well with the cleanup.h
scoped_...() family of macros[1]. I worked around this with spatch's
"--macro-file" argument to a file with all the scoped_...() macros mapped
to Coccinelle's YACFE_ITERATOR[2] as that was the closest viable control
flow indicator I could find.

Build tested allmodconfig on x86, arm64, arm, loongarch, mips, powerpc,
riscv, and s390 with no new warnings.

Link: https://lore.kernel.org/lkml/202609021314.8A9C0B8@keescook/ [1]
Link: https://github.com/coccinelle/coccinelle/blob/master/standard.h [2]
Signed-off-by: Kees Cook <kees+treewide@kernel.org>
2026-09-04 21:37:00 -07:00
..
coresight-catu.c Char/Misc/IIO/FPGA/GPIB/etc driver updates for 7.2-rc1 2026-06-22 12:20:21 -07:00
coresight-catu.h coresight: catu: Support atclk 2025-09-23 14:14:12 +01:00
coresight-cfg-afdo.c coresight: Fix undeclared variable warnings from sparse checker 2024-02-12 10:18:41 +00:00
coresight-cfg-preload.c coresight: config: Add preloaded configuration 2025-02-21 16:17:36 +00:00
coresight-cfg-preload.h coresight: config: Add preloaded configuration 2025-02-21 16:17:36 +00:00
coresight-cfg-pstop.c coresight: config: Add preloaded configuration 2025-02-21 16:17:36 +00:00
coresight-config.c coresight-etm4x: change etmv4_drvdata spinlock type to raw_spinlock_t 2025-03-10 10:40:25 +00:00
coresight-config.h coresight: prevent deactivate active config while enabling the config 2025-05-20 16:38:54 +01:00
coresight-core.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
coresight-cpu-debug.c coresight: pass THIS_MODULE implicitly through a macro 2026-06-08 23:28:11 +02:00
coresight-ctcu-core.c coresight: ctcu: fix the spin_bug 2026-02-26 10:01:16 +00:00
coresight-ctcu.h Coresight: Add Coresight TMC Control Unit driver 2025-03-04 18:06:19 +00:00
coresight-cti-core.c coresight: Populate CPU ID into coresight_device 2026-05-18 10:18:45 +01:00
coresight-cti-platform.c coresight: cti: Fix DT filter signals silently ignored 2026-05-06 09:22:17 +01:00
coresight-cti-sysfs.c Char/Misc/IIO/and others driver updates for 7.1-rc1 2026-04-24 13:23:50 -07:00
coresight-cti.h coresight: cti: Remove hw_enabled flag 2026-03-03 10:23:46 +00:00
coresight-dummy.c coresight: Fix memory leak in coresight_alloc_device_name() 2026-02-25 11:14:44 +00:00
coresight-etb10.c coresight: etb10: restore atomic_t for shared reading state 2026-05-29 10:13:05 +01:00
coresight-etm-cp14.c
coresight-etm-perf.c coresight: Introduce coresight_enable_source() helper 2026-05-18 10:18:46 +01:00
coresight-etm-perf.h coresight: Extend width of timestamp format attribute 2025-12-22 15:30:54 +00:00
coresight-etm.h coresight: etm3x: Convert raw base pointer to struct coresight access 2025-04-30 14:58:19 +01:00
coresight-etm3x-core.c coresight: Move CPU hotplug callbacks to core layer 2026-05-18 12:48:32 +01:00
coresight-etm3x-sysfs.c coresight: etm3x: Fix cntr_val_show() to match cntr_val_store() behavior 2026-08-07 10:45:10 +01:00
coresight-etm4x-cfg.c coresight: etm4x: fix underflow for usage of (nrseqstate - 1) 2026-08-07 10:45:11 +01:00
coresight-etm4x-cfg.h
coresight-etm4x-core.c coresight: etm4x: missing cscfg_csdev_disable_active_config() in perf enable 2026-08-07 10:45:11 +01:00
coresight-etm4x-sysfs.c coresight: etm4x: fix underflow for usage of (nrseqstate - 1) 2026-08-07 10:45:11 +01:00
coresight-etm4x.h coresight: etm4x: remove redundant fields in etmv4_save_state 2026-08-07 10:45:11 +01:00
coresight-funnel.c coresight: pass THIS_MODULE implicitly through a macro 2026-06-08 23:28:11 +02:00
coresight-kunit-tests.c coresight: Add a KUnit test for coresight_find_default_sink() 2025-04-30 16:59:27 +01:00
coresight-platform.c coresight: platform: defer connection counter increment until alloc succeeds 2026-05-19 14:24:55 +01:00
coresight-priv.h coresight: Introduce coresight_enable_source() helper 2026-05-18 10:18:46 +01:00
coresight-replicator.c coresight: pass THIS_MODULE implicitly through a macro 2026-06-08 23:28:11 +02:00
coresight-self-hosted-trace.h coresight: Pass guest TRFCR value to KVM 2025-01-12 12:50:11 +00:00
coresight-stm.c coresight: pass THIS_MODULE implicitly through a macro 2026-06-08 23:28:11 +02:00
coresight-syscfg-configfs.c coresight: Remove inlines from static function definitions 2025-04-30 14:58:19 +01:00
coresight-syscfg-configfs.h
coresight-syscfg.c coresight: syscfg: Use IRQ-safe spinlock to protect active variables 2026-05-18 10:18:46 +01:00
coresight-syscfg.h coresight: syscfg: Use IRQ-safe spinlock to protect active variables 2026-05-18 10:18:46 +01:00
coresight-sysfs.c coresight: sysfs: Validate CPU online status for per-CPU sources 2026-05-18 12:52:33 +01:00
coresight-tmc-core.c coresight: pass THIS_MODULE implicitly through a macro 2026-06-08 23:28:11 +02:00
coresight-tmc-etf.c coresight: change the sink_ops to accept coresight_path 2025-11-10 10:07:42 +00:00
coresight-tmc-etr.c coresight: tmc: Fix overflow when calculating is bigger than 2GiB 2026-05-07 14:40:03 +01:00
coresight-tmc.h coresight: tmc: Add missing doc including reading and etr_mode of struct tmc_drvdata 2026-01-21 10:32:26 +00:00
coresight-tnoc.c coresight: pass THIS_MODULE implicitly through a macro 2026-06-08 23:28:11 +02:00
coresight-tpda.c coresight: Fix memory leak in coresight_alloc_device_name() 2026-02-25 11:14:44 +00:00
coresight-tpda.h coresight: tpda: add sysfs node to flush specific port 2026-01-05 16:54:02 +00:00
coresight-tpdm.c coresight: pass THIS_MODULE implicitly through a macro 2026-06-08 23:28:11 +02:00
coresight-tpdm.h coresight: tpdm: add traceid_show for checking traceid 2026-03-31 11:53:50 +01:00
coresight-tpiu.c coresight: pass THIS_MODULE implicitly through a macro 2026-06-08 23:28:11 +02:00
coresight-trace-id.c coresight: change coresight_trace_id_map's lock type to raw_spinlock_t 2025-03-10 10:40:25 +00:00
coresight-trace-id.h coresight: Add support to get static id for system trace sources 2024-12-11 10:15:37 +00:00
coresight-trbe.c coresight: trbe: Save and restore state across CPU low power state 2026-05-18 10:48:44 +01:00
coresight-trbe.h coresight: trbe: Enable ACPI based TRBE devices 2023-11-16 11:34:59 +00:00
Kconfig coresight: add coresight Trace Network On Chip driver 2025-09-02 09:12:58 +01:00
Makefile coresight: add coresight Trace Network On Chip driver 2025-09-02 09:12:58 +01:00
ultrasoc-smb.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
ultrasoc-smb.h coresight: Fix missing include for FIELD_GET 2025-09-02 09:12:58 +01:00