original_kernel/fs/bcachefs
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
Makefile
acl.c
acl.h
alloc_background.c bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
alloc_background.h bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
alloc_background_format.h
alloc_foreground.c bcachefs: Allocator prefers not to expand mi.btree_allocated bitmap 2024-05-08 17:29:24 -04:00
alloc_foreground.h bcachefs: ob_dev() 2024-05-08 17:29:23 -04:00
alloc_types.h bcachefs: Allocator prefers not to expand mi.btree_allocated bitmap 2024-05-08 17:29:24 -04:00
backpointers.c bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
backpointers.h bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
bbpos.h
bbpos_types.h
bcachefs.h bcachefs: add no_invalid_checks flag 2024-05-09 16:24:30 -04:00
bcachefs_format.h bcachefs: Move BCACHEFS_STATFS_MAGIC value to UAPI magic.h 2024-05-08 17:29:24 -04:00
bcachefs_ioctl.h
bkey.c bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
bkey.h bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
bkey_buf.h
bkey_cmp.h
bkey_methods.c bcachefs: add no_invalid_checks flag 2024-05-09 16:24:30 -04:00
bkey_methods.h bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
bkey_sort.c
bkey_sort.h
bkey_types.h
bset.c bcachefs: for_each_bset() declares loop iter 2024-05-09 16:23:34 -04:00
bset.h bcachefs: for_each_bset() declares loop iter 2024-05-09 16:23:34 -04:00
btree_cache.c bcachefs: add counters for failed shrinker reclaim 2024-05-09 16:24:29 -04:00
btree_cache.h bcachefs: add counters for failed shrinker reclaim 2024-05-09 16:24:29 -04:00
btree_gc.c bcachefs: kill bch2_dev_bkey_exists() in btree_gc.c 2024-05-08 17:29:23 -04:00
btree_gc.h bcachefs: Kill gc_init_recurse() 2024-05-08 17:29:21 -04:00
btree_io.c bcachefs: bch2_dev_get_ioref() checks for device not present 2024-05-09 16:23:36 -04:00
btree_io.h bcachefs: for_each_bset() declares loop iter 2024-05-09 16:23:34 -04:00
btree_iter.c bcachefs: x-macroize journal flags enums 2024-05-08 17:29:22 -04:00
btree_iter.h bcachefs: uninline set_btree_iter_dontneed() 2024-05-08 17:29:21 -04:00
btree_journal_iter.c
btree_journal_iter.h
btree_key_cache.c bcachefs: x-macroize journal flags enums 2024-05-08 17:29:22 -04:00
btree_key_cache.h
btree_key_cache_types.h bcachefs: Btree key cache instrumentation 2024-05-08 17:29:20 -04:00
btree_locking.c
btree_locking.h
btree_node_scan.c
btree_node_scan.h
btree_node_scan_types.h
btree_trans_commit.c bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
btree_types.h bcachefs: add counters for failed shrinker reclaim 2024-05-09 16:24:29 -04:00
btree_update.c bcachefs: x-macroize journal flags enums 2024-05-08 17:29:22 -04:00
btree_update.h
btree_update_interior.c bcachefs: for_each_bset() declares loop iter 2024-05-09 16:23:34 -04:00
btree_update_interior.h
btree_write_buffer.c
btree_write_buffer.h
btree_write_buffer_types.h
buckets.c bcachefs: kill bch2_dev_bkey_exists() in bch2_check_fix_ptrs() 2024-05-09 16:23:36 -04:00
buckets.h bcachefs: ptr_stale() -> dev_ptr_stale() 2024-05-08 17:29:23 -04:00
buckets_types.h
buckets_waiting_for_journal.c
buckets_waiting_for_journal.h
buckets_waiting_for_journal_types.h
chardev.c bcachefs: Convert to bch2_dev_tryget_noerror() 2024-05-08 17:29:22 -04:00
chardev.h
checksum.c bcachefs: Plumb bch_validate_flags to sb_field_ops.validate() 2024-05-09 16:23:36 -04:00
checksum.h
clock.c
clock.h
clock_types.h
compress.c
compress.h
darray.c
darray.h
data_update.c bcachefs: bch2_dev_have_ref() 2024-05-08 17:29:24 -04:00
data_update.h
debug.c bcachefs: bch2_dev_get_ioref() checks for device not present 2024-05-09 16:23:36 -04:00
debug.h
dirent.c bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
dirent.h bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
dirent_format.h
disk_groups.c bcachefs: Plumb bch_validate_flags to sb_field_ops.validate() 2024-05-09 16:23:36 -04:00
disk_groups.h
disk_groups_types.h
ec.c bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
ec.h bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
ec_format.h
ec_types.h
errcode.c
errcode.h
error.c
error.h
extent_update.c
extent_update.h
extents.c bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
extents.h bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
extents_format.h
extents_types.h
eytzinger.c
eytzinger.h
fifo.h
fs-common.c bcachefs: Fix error path of bch2_link_trans() 2024-05-08 17:29:21 -04:00
fs-common.h
fs-io-buffered.c
fs-io-buffered.h
fs-io-direct.c
fs-io-direct.h
fs-io-pagecache.c
fs-io-pagecache.h
fs-io.c bcachefs: fsync() should not return -EROFS 2024-05-09 16:23:36 -04:00
fs-io.h
fs-ioctl.c bcachefs: Correct the FS_IOC_GETFLAGS to FS_IOC32_GETFLAGS in bch2_compat_fs_ioctl() 2024-05-08 17:29:21 -04:00
fs-ioctl.h
fs.c bcachefs changes for 6.10-rc1 2024-05-19 13:45:48 -07:00
fs.h
fsck.c bcachefs: check for inodes that should have backpointers in fsck 2024-05-08 17:29:21 -04:00
fsck.h
inode.c bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
inode.h bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
inode_format.h
io_misc.c
io_misc.h
io_read.c bcachefs: kill bch2_dev_bkey_exists() in bch2_read_endio() 2024-05-09 16:23:36 -04:00
io_read.h
io_write.c bcachefs: bch2_dev_get_ioref() checks for device not present 2024-05-09 16:23:36 -04:00
io_write.h
io_write_types.h bcachefs: Move nocow unlock to bch2_write_endio() 2024-05-08 17:29:24 -04:00
journal.c bcachefs: bch2_print_allocator_stuck() 2024-05-08 17:29:22 -04:00
journal.h bcachefs: x-macroize journal flags enums 2024-05-08 17:29:22 -04:00
journal_io.c bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
journal_io.h bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
journal_reclaim.c bcachefs: x-macroize journal flags enums 2024-05-08 17:29:22 -04:00
journal_reclaim.h
journal_sb.c bcachefs: Plumb bch_validate_flags to sb_field_ops.validate() 2024-05-09 16:23:36 -04:00
journal_sb.h
journal_seq_blacklist.c bcachefs: Plumb bch_validate_flags to sb_field_ops.validate() 2024-05-09 16:23:36 -04:00
journal_seq_blacklist.h bcachefs: journal seq blacklist gc no longer has to walk btree 2024-05-08 17:29:20 -04:00
journal_types.h bcachefs: x-macroize journal flags enums 2024-05-08 17:29:22 -04:00
keylist.c
keylist.h
keylist_types.h
logged_ops.c
logged_ops.h
logged_ops_format.h
lru.c bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
lru.h bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
mean_and_variance.c
mean_and_variance.h
mean_and_variance_test.c
migrate.c
migrate.h
move.c bcachefs: extent_ptr_durability() -> bch2_dev_rcu() 2024-05-08 17:29:23 -04:00
move.h
move_types.h
movinggc.c
movinggc.h
nocow_locking.c
nocow_locking.h
nocow_locking_types.h
opts.c
opts.h bcachefs: Kill opts.buckets_nouse 2024-05-08 17:29:22 -04:00
printbuf.c
printbuf.h
quota.c bcachefs: Plumb bch_validate_flags to sb_field_ops.validate() 2024-05-09 16:23:36 -04:00
quota.h bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
quota_format.h
quota_types.h
rebalance.c
rebalance.h
rebalance_types.h
recovery.c bcachefs: journal_replay_entry_early() checks for nonexistent device 2024-05-08 17:29:22 -04:00
recovery.h
recovery_passes.c
recovery_passes.h
recovery_passes_types.h
reflink.c bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
reflink.h bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
reflink_format.h
replicas.c bcachefs: Plumb bch_validate_flags to sb_field_ops.validate() 2024-05-09 16:23:36 -04:00
replicas.h
replicas_types.h
sb-clean.c bcachefs: Plumb bch_validate_flags to sb_field_ops.validate() 2024-05-09 16:23:36 -04:00
sb-clean.h
sb-counters.c bcachefs: Plumb bch_validate_flags to sb_field_ops.validate() 2024-05-09 16:23:36 -04:00
sb-counters.h
sb-counters_format.h
sb-downgrade.c bcachefs: Fix sb_field_downgrade validation 2024-05-09 16:23:36 -04:00
sb-downgrade.h
sb-errors.c bcachefs: Plumb bch_validate_flags to sb_field_ops.validate() 2024-05-09 16:23:36 -04:00
sb-errors.h
sb-errors_types.h
sb-members.c bcachefs: Plumb bch_validate_flags to sb_field_ops.validate() 2024-05-09 16:23:36 -04:00
sb-members.h bcachefs: kill bch2_dev_bkey_exists() in bch2_check_fix_ptrs() 2024-05-09 16:23:36 -04:00
sb-members_types.h
seqmutex.h
siphash.c
siphash.h
six.c
six.h
snapshot.c bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
snapshot.h bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
snapshot_format.h
str_hash.h
subvolume.c bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
subvolume.h bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
subvolume_format.h
subvolume_types.h
super-io.c bcachefs: Plumb bch_validate_flags to sb_field_ops.validate() 2024-05-09 16:23:36 -04:00
super-io.h bcachefs: Plumb bch_validate_flags to sb_field_ops.validate() 2024-05-09 16:23:36 -04:00
super.c bcachefs: move replica_set from bch_dev to bch_fs 2024-05-08 17:29:23 -04:00
super.h
super_types.h
sysfs.c bcachefs: add counters for failed shrinker reclaim 2024-05-09 16:24:29 -04:00
sysfs.h
tests.c
tests.h
thread_with_file.c
thread_with_file.h
thread_with_file_types.h
time_stats.c
time_stats.h
trace.c
trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
two_state_shared_lock.c
two_state_shared_lock.h
util.c
util.h
varint.c
varint.h
vstructs.h
xattr.c bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
xattr.h bcachefs: s/bkey_invalid_flags/bch_validate_flags 2024-05-09 16:23:36 -04:00
xattr_format.h