* [cocci] spatch --use-patch-diff broken?
@ 2024-02-05 17:56 Jakub Kicinski
2024-02-05 19:38 ` Julia Lawall
` (4 more replies)
0 siblings, 5 replies; 9+ messages in thread
From: Jakub Kicinski @ 2024-02-05 17:56 UTC (permalink / raw)
To: Julia Lawall; +Cc: cocci
Hi!
I've been trying to run coccicheck with --use-patch-diff
to try to limit the number of processed files. I _think_
it worked when I set it up early last month but recently
I went back to check and make coccicheck stops after
the first spatch call, all it prints is "hd"
https://netdev-3.bots.linux.dev/cocci/results/452585/new
spatch seems to work fine when run without --use-patch-diff
cocci version is the latest from git as of $now
FWIW the git hashes are from this tree:
https://github.com/linux-netdev/testing.git
(probably best to clone that thing with --depth $number)
Example:
/usr/local/bin/spatch -D report --no-show-diff --very-quiet --cocci-file ./scripts/coccinelle/api/err_cast.cocci --no-includes --include-headers --dir . -I ./arch/x86/include -I ./arch/x86/include/generated -I ./include -I ./arch/x86/include/uapi -I ./arch/x86/include/generated/uapi -I ./include/uapi -I ./include/generated/uapi --include ./include/linux/compiler-version.h --include ./include/linux/kconfig.h --jobs 48 --chunksize 1 --use-patch-diff b9f2444cd114a7f9c44950dc850aa1753b3edd94..be5bf59888403413619dd74e0d5f5386ffafbc90
grep: warning: + at start of expression
grep: warning: + at start of expression
grep: warning: + at start of expression
hd
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [cocci] spatch --use-patch-diff broken?
2024-02-05 17:56 [cocci] spatch --use-patch-diff broken? Jakub Kicinski
@ 2024-02-05 19:38 ` Julia Lawall
2024-02-05 19:39 ` Julia Lawall
` (3 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Julia Lawall @ 2024-02-05 19:38 UTC (permalink / raw)
To: Jakub Kicinski; +Cc: cocci
On Mon, 5 Feb 2024, Jakub Kicinski wrote:
> Hi!
>
> I've been trying to run coccicheck with --use-patch-diff
> to try to limit the number of processed files. I _think_
> it worked when I set it up early last month but recently
> I went back to check and make coccicheck stops after
> the first spatch call, all it prints is "hd"
>
> https://netdev-3.bots.linux.dev/cocci/results/452585/new
>
> spatch seems to work fine when run without --use-patch-diff
> cocci version is the latest from git as of $now
>
> FWIW the git hashes are from this tree:
> https://github.com/linux-netdev/testing.git
> (probably best to clone that thing with --depth $number)
There has been no intent to change --use-patch-diff, and whe I tried it,
everything was fine. It seems to be crashing ungracefully for some other
reason. I don't have very reliable internet access at the moment. I'll
try pulling your tree and check your command line soon.
julia
>
>
> Example:
>
> /usr/local/bin/spatch -D report --no-show-diff --very-quiet --cocci-file ./scripts/coccinelle/api/err_cast.cocci --no-includes --include-headers --dir . -I ./arch/x86/include -I ./arch/x86/include/generated -I ./include -I ./arch/x86/include/uapi -I ./arch/x86/include/generated/uapi -I ./include/uapi -I ./include/generated/uapi --include ./include/linux/compiler-version.h --include ./include/linux/kconfig.h --jobs 48 --chunksize 1 --use-patch-diff b9f2444cd114a7f9c44950dc850aa1753b3edd94..be5bf59888403413619dd74e0d5f5386ffafbc90
> grep: warning: + at start of expression
> grep: warning: + at start of expression
> grep: warning: + at start of expression
> hd
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [cocci] spatch --use-patch-diff broken?
2024-02-05 17:56 [cocci] spatch --use-patch-diff broken? Jakub Kicinski
2024-02-05 19:38 ` Julia Lawall
@ 2024-02-05 19:39 ` Julia Lawall
2024-02-05 20:02 ` Jakub Kicinski
2024-02-05 22:37 ` Julia Lawall
` (2 subsequent siblings)
4 siblings, 1 reply; 9+ messages in thread
From: Julia Lawall @ 2024-02-05 19:39 UTC (permalink / raw)
To: Jakub Kicinski; +Cc: cocci
On Mon, 5 Feb 2024, Jakub Kicinski wrote:
> Hi!
>
> I've been trying to run coccicheck with --use-patch-diff
> to try to limit the number of processed files. I _think_
> it worked when I set it up early last month but recently
> I went back to check and make coccicheck stops after
> the first spatch call, all it prints is "hd"
>
> https://netdev-3.bots.linux.dev/cocci/results/452585/new
>
> spatch seems to work fine when run without --use-patch-diff
> cocci version is the latest from git as of $now
>
> FWIW the git hashes are from this tree:
> https://github.com/linux-netdev/testing.git
> (probably best to clone that thing with --depth $number)
It might help to drop the --very-quiet argument. Then you might get more
information about the source of the problem.
julia
>
>
> Example:
>
> /usr/local/bin/spatch -D report --no-show-diff --very-quiet --cocci-file ./scripts/coccinelle/api/err_cast.cocci --no-includes --include-headers --dir . -I ./arch/x86/include -I ./arch/x86/include/generated -I ./include -I ./arch/x86/include/uapi -I ./arch/x86/include/generated/uapi -I ./include/uapi -I ./include/generated/uapi --include ./include/linux/compiler-version.h --include ./include/linux/kconfig.h --jobs 48 --chunksize 1 --use-patch-diff b9f2444cd114a7f9c44950dc850aa1753b3edd94..be5bf59888403413619dd74e0d5f5386ffafbc90
> grep: warning: + at start of expression
> grep: warning: + at start of expression
> grep: warning: + at start of expression
> hd
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [cocci] spatch --use-patch-diff broken?
2024-02-05 19:39 ` Julia Lawall
@ 2024-02-05 20:02 ` Jakub Kicinski
0 siblings, 0 replies; 9+ messages in thread
From: Jakub Kicinski @ 2024-02-05 20:02 UTC (permalink / raw)
To: Julia Lawall; +Cc: cocci
On Mon, 5 Feb 2024 20:39:16 +0100 (CET) Julia Lawall wrote:
> On Mon, 5 Feb 2024, Jakub Kicinski wrote:
> > I've been trying to run coccicheck with --use-patch-diff
> > to try to limit the number of processed files. I _think_
> > it worked when I set it up early last month but recently
> > I went back to check and make coccicheck stops after
> > the first spatch call, all it prints is "hd"
> >
> > https://netdev-3.bots.linux.dev/cocci/results/452585/new
> >
> > spatch seems to work fine when run without --use-patch-diff
> > cocci version is the latest from git as of $now
> >
> > FWIW the git hashes are from this tree:
> > https://github.com/linux-netdev/testing.git
> > (probably best to clone that thing with --depth $number)
>
> It might help to drop the --very-quiet argument. Then you might get more
> information about the source of the problem.
I was looking for a --verbose argument, I didn't spot the --very-quiet
:) No luck, sadly:
$ /usr/local/bin/spatch -D report --cocci-file ./scripts/coccinelle/api/err_cast.cocci --no-includes --include-headers --dir . -I ./arch/x86/include -I ./arch/x86/include/generated -I ./include -I ./arch/x86/include/uapi -I ./arch/x86/include/generated/uapi -I ./include/uapi -I ./include/generated/uapi --include ./include/linux/compiler-version.h --include ./include/linux/kconfig.h --jobs 48 --chunksize 1 --use-patch-diff b9f2444cd114a7f9c44950dc850aa1753b3edd94..be5bf59888403413619dd74e0d5f5386ffafbc90
init_defs_builtins: /usr/local/lib/coccinelle/standard.h
grep: warning: + at start of expression
grep: warning: + at start of expression
grep: warning: + at start of expression
hd
FWIW:
$ ocaml --version
The OCaml toplevel, version 4.13.1
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [cocci] spatch --use-patch-diff broken?
2024-02-05 17:56 [cocci] spatch --use-patch-diff broken? Jakub Kicinski
2024-02-05 19:38 ` Julia Lawall
2024-02-05 19:39 ` Julia Lawall
@ 2024-02-05 22:37 ` Julia Lawall
2024-02-05 23:36 ` Jakub Kicinski
2024-02-06 11:31 ` Julia Lawall
2024-02-06 13:58 ` Julia Lawall
4 siblings, 1 reply; 9+ messages in thread
From: Julia Lawall @ 2024-02-05 22:37 UTC (permalink / raw)
To: Jakub Kicinski; +Cc: cocci
On Mon, 5 Feb 2024, Jakub Kicinski wrote:
> Hi!
>
> I've been trying to run coccicheck with --use-patch-diff
> to try to limit the number of processed files. I _think_
> it worked when I set it up early last month but recently
> I went back to check and make coccicheck stops after
> the first spatch call, all it prints is "hd"
>
> https://netdev-3.bots.linux.dev/cocci/results/452585/new
>
> spatch seems to work fine when run without --use-patch-diff
> cocci version is the latest from git as of $now
>
> FWIW the git hashes are from this tree:
> https://github.com/linux-netdev/testing.git
> (probably best to clone that thing with --depth $number)
What number do you suggest for the depth? I tried 1000 but I
don't have these hashes,
thanks,
julia
>
>
> Example:
>
> /usr/local/bin/spatch -D report --no-show-diff --very-quiet --cocci-file ./scripts/coccinelle/api/err_cast.cocci --no-includes --include-headers --dir . -I ./arch/x86/include -I ./arch/x86/include/generated -I ./include -I ./arch/x86/include/uapi -I ./arch/x86/include/generated/uapi -I ./include/uapi -I ./include/generated/uapi --include ./include/linux/compiler-version.h --include ./include/linux/kconfig.h --jobs 48 --chunksize 1 --use-patch-diff b9f2444cd114a7f9c44950dc850aa1753b3edd94..be5bf59888403413619dd74e0d5f5386ffafbc90
> grep: warning: + at start of expression
> grep: warning: + at start of expression
> grep: warning: + at start of expression
> hd
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [cocci] spatch --use-patch-diff broken?
2024-02-05 22:37 ` Julia Lawall
@ 2024-02-05 23:36 ` Jakub Kicinski
0 siblings, 0 replies; 9+ messages in thread
From: Jakub Kicinski @ 2024-02-05 23:36 UTC (permalink / raw)
To: Julia Lawall; +Cc: cocci
On Mon, 5 Feb 2024 23:37:30 +0100 (CET) Julia Lawall wrote:
> > FWIW the git hashes are from this tree:
> > https://github.com/linux-netdev/testing.git
> > (probably best to clone that thing with --depth $number)
>
> What number do you suggest for the depth? I tried 1000 but I
> don't have these hashes,
1000 is enough, but the hashes don't exist on the main branch
so you'll also have to specify --no-single-branch when cloning.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [cocci] spatch --use-patch-diff broken?
2024-02-05 17:56 [cocci] spatch --use-patch-diff broken? Jakub Kicinski
` (2 preceding siblings ...)
2024-02-05 22:37 ` Julia Lawall
@ 2024-02-06 11:31 ` Julia Lawall
2024-02-06 13:58 ` Julia Lawall
4 siblings, 0 replies; 9+ messages in thread
From: Julia Lawall @ 2024-02-06 11:31 UTC (permalink / raw)
To: Jakub Kicinski; +Cc: cocci
On Mon, 5 Feb 2024, Jakub Kicinski wrote:
> Hi!
>
> I've been trying to run coccicheck with --use-patch-diff
> to try to limit the number of processed files. I _think_
> it worked when I set it up early last month but recently
> I went back to check and make coccicheck stops after
> the first spatch call, all it prints is "hd"
There was a problem in parsing the added line range, in the case where
there is just a single number (one line added). The fix will be avaialble
shortly.
Thanks for the report.
julia
>
> https://netdev-3.bots.linux.dev/cocci/results/452585/new
>
> spatch seems to work fine when run without --use-patch-diff
> cocci version is the latest from git as of $now
>
> FWIW the git hashes are from this tree:
> https://github.com/linux-netdev/testing.git
> (probably best to clone that thing with --depth $number)
>
>
> Example:
>
> /usr/local/bin/spatch -D report --no-show-diff --very-quiet --cocci-file ./scripts/coccinelle/api/err_cast.cocci --no-includes --include-headers --dir . -I ./arch/x86/include -I ./arch/x86/include/generated -I ./include -I ./arch/x86/include/uapi -I ./arch/x86/include/generated/uapi -I ./include/uapi -I ./include/generated/uapi --include ./include/linux/compiler-version.h --include ./include/linux/kconfig.h --jobs 48 --chunksize 1 --use-patch-diff b9f2444cd114a7f9c44950dc850aa1753b3edd94..be5bf59888403413619dd74e0d5f5386ffafbc90
> grep: warning: + at start of expression
> grep: warning: + at start of expression
> grep: warning: + at start of expression
> hd
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [cocci] spatch --use-patch-diff broken?
2024-02-05 17:56 [cocci] spatch --use-patch-diff broken? Jakub Kicinski
` (3 preceding siblings ...)
2024-02-06 11:31 ` Julia Lawall
@ 2024-02-06 13:58 ` Julia Lawall
2024-02-06 15:14 ` Jakub Kicinski
4 siblings, 1 reply; 9+ messages in thread
From: Julia Lawall @ 2024-02-06 13:58 UTC (permalink / raw)
To: Jakub Kicinski; +Cc: cocci
On Mon, 5 Feb 2024, Jakub Kicinski wrote:
> Hi!
>
> I've been trying to run coccicheck with --use-patch-diff
> to try to limit the number of processed files. I _think_
> it worked when I set it up early last month but recently
> I went back to check and make coccicheck stops after
> the first spatch call, all it prints is "hd"
The problem should be fixed in the github version.
julia
>
> https://netdev-3.bots.linux.dev/cocci/results/452585/new
>
> spatch seems to work fine when run without --use-patch-diff
> cocci version is the latest from git as of $now
>
> FWIW the git hashes are from this tree:
> https://github.com/linux-netdev/testing.git
> (probably best to clone that thing with --depth $number)
>
>
> Example:
>
> /usr/local/bin/spatch -D report --no-show-diff --very-quiet --cocci-file ./scripts/coccinelle/api/err_cast.cocci --no-includes --include-headers --dir . -I ./arch/x86/include -I ./arch/x86/include/generated -I ./include -I ./arch/x86/include/uapi -I ./arch/x86/include/generated/uapi -I ./include/uapi -I ./include/generated/uapi --include ./include/linux/compiler-version.h --include ./include/linux/kconfig.h --jobs 48 --chunksize 1 --use-patch-diff b9f2444cd114a7f9c44950dc850aa1753b3edd94..be5bf59888403413619dd74e0d5f5386ffafbc90
> grep: warning: + at start of expression
> grep: warning: + at start of expression
> grep: warning: + at start of expression
> hd
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [cocci] spatch --use-patch-diff broken?
2024-02-06 13:58 ` Julia Lawall
@ 2024-02-06 15:14 ` Jakub Kicinski
0 siblings, 0 replies; 9+ messages in thread
From: Jakub Kicinski @ 2024-02-06 15:14 UTC (permalink / raw)
To: Julia Lawall; +Cc: cocci
On Tue, 6 Feb 2024 14:58:43 +0100 (CET) Julia Lawall wrote:
> > I've been trying to run coccicheck with --use-patch-diff
> > to try to limit the number of processed files. I _think_
> > it worked when I set it up early last month but recently
> > I went back to check and make coccicheck stops after
> > the first spatch call, all it prints is "hd"
>
> The problem should be fixed in the github version.
Thank you! I pulled & rebuilt and it works now! :)
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2024-02-06 15:16 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-05 17:56 [cocci] spatch --use-patch-diff broken? Jakub Kicinski
2024-02-05 19:38 ` Julia Lawall
2024-02-05 19:39 ` Julia Lawall
2024-02-05 20:02 ` Jakub Kicinski
2024-02-05 22:37 ` Julia Lawall
2024-02-05 23:36 ` Jakub Kicinski
2024-02-06 11:31 ` Julia Lawall
2024-02-06 13:58 ` Julia Lawall
2024-02-06 15:14 ` Jakub Kicinski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.