Re: Improving output for single characters (with SmPL)?

From: Markus Elfring

Date: Fri Jul 24 2026 - 05:09:27 EST


> Which implementation details should be reconsidered here for an affected macro?
> https://elixir.bootlin.com/linux/v7.2-rc4/source/tools/bpf/bpftool/netlink_dumper.h#L25

The shown source code transformation approach can be repeated on demand
for selected areas.

Another test result (according to the software combination “Coccinelle 1.3.1”):
Markus_Elfring@Sonne:…/Projekte/Linux/next-analyses> time /usr/bin/spatch --timeout 23 -j4 --chunksize 1 --no-loops --include-headers -dir tools/bpf/bpftool /home/altes_Heim2/elfring/Projekte/Coccinelle/janitor/use_fputc-20260723.cocci > /home/altes_Heim2/elfring/Projekte/Bau/Linux/scripts/Coccinelle/tuning1/next/20260721/use_fputc-bpftool-2.diff

17 files match

real 0m1,998s
user 0m4,143s
sys 0m0,372s



Now I wonder about the following information.

Markus_Elfring@Sonne:/home/altes_Heim2/elfring/Projekte/Linux/next-analyses> grep 'diff -u -p a/netlink_dumper.h b/netlink_dumper.h' /home/altes_Heim2/elfring/Projekte/Bau/Linux/scripts/Coccinelle/tuning1/next/20260721/use_fputc-bpftool-2.diff | wc -l
2


Should it be sufficient to adjust an affected header file only once
(according to the means of the mentioned development tool)?
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/bd41911b6d35eda4d9a03247043bd3879733fb3f/docs/manual/spatch_options.tex#L43-46

Regards,
Markus