* [RFC] Sharing data processing resources for selected SmPL scripts?
@ 2025-09-05 9:15 Markus Elfring
2025-09-05 9:42 ` [cocci] " Julia Lawall
0 siblings, 1 reply; 3+ messages in thread
From: Markus Elfring @ 2025-09-05 9:15 UTC (permalink / raw)
To: cocci, kernel-janitors; +Cc: LKML
Hello,
I became curious if further developers would like to try the following script out
for the semantic patch language.
@display@
identifier action;
type t;
@@
*t * action(...)
{
... when any
}
I interpret such a search approach in the way that it should extract some data
from a lot of source code places.
Thus I imagine that it results also in special software run time characteristics
which matter especially for big codebases like Linux.
How do you think about to clarify corresponding data collections
and computation resources?
Related source code analysis concerns can eventually be also clarified.
* Handling of function declarations in header files
* Relevance of some preprocessor directives
Regards,
Markus
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [cocci] [RFC] Sharing data processing resources for selected SmPL scripts?
2025-09-05 9:15 [RFC] Sharing data processing resources for selected SmPL scripts? Markus Elfring
@ 2025-09-05 9:42 ` Julia Lawall
2025-09-05 11:14 ` Markus Elfring
0 siblings, 1 reply; 3+ messages in thread
From: Julia Lawall @ 2025-09-05 9:42 UTC (permalink / raw)
To: Markus Elfring; +Cc: cocci, kernel-janitors, LKML
On Fri, 5 Sep 2025, Markus Elfring wrote:
> Hello,
>
> I became curious if further developers would like to try the following script out
> for the semantic patch language.
>
>
> @display@
> identifier action;
> type t;
> @@
> *t * action(...)
> {
> ... when any
when any is not useful here.
> }
>
>
> I interpret such a search approach in the way that it should extract some data
> from a lot of source code places.
> Thus I imagine that it results also in special software run time characteristics
> which matter especially for big codebases like Linux.
I guess it would be quite fast, because it will just find the deader of
each function.
julia
> How do you think about to clarify corresponding data collections
> and computation resources?
>
> Related source code analysis concerns can eventually be also clarified.
>
> * Handling of function declarations in header files
>
> * Relevance of some preprocessor directives
>
>
> Regards,
> Markus
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [cocci] [RFC] Sharing data processing resources for selected SmPL scripts?
2025-09-05 9:42 ` [cocci] " Julia Lawall
@ 2025-09-05 11:14 ` Markus Elfring
0 siblings, 0 replies; 3+ messages in thread
From: Markus Elfring @ 2025-09-05 11:14 UTC (permalink / raw)
To: Julia Lawall, cocci; +Cc: kernel-janitors, LKML
>> @display@
>> identifier action;
>> type t;
>> @@
>> *t * action(...)
>> {
>> ... when any
…>> }
>>
>>
>> I interpret such a search approach in the way that it should extract some data
>> from a lot of source code places.
>> Thus I imagine that it results also in special software run time characteristics
>> which matter especially for big codebases like Linux.
>
> I guess it would be quite fast,
I am curious how such development views will evolve further
(depending on the data processing environment you may use).
> because it will just find the deader of
> each function.
Header information should be found for several function implementations
from selected directories.
If you would dare to try the shown SmPL script out on the complete Linux codebase,
a huge diff output will probably be generated.
It might be more helpful to try it out on a few header/source files
with a more reasonable size.
Other data structures might become also more attractive for the storage
and documentation of found pointer types in combination with known functions.
Regards,
Markus
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-09-05 11:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-05 9:15 [RFC] Sharing data processing resources for selected SmPL scripts? Markus Elfring
2025-09-05 9:42 ` [cocci] " Julia Lawall
2025-09-05 11:14 ` Markus Elfring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®