On 05/09/2019 16:51, Markus Elfring wrote:
> Can a transformation approach like the following work also
> for your software?
>
> @replacement@
>
> identifier func, p, state_var;
>
> @@
>
> func(...,
> struct task_struct *p,
> ...
> ,
> - long
> + int
> state_var
> ,
> ...)
>
> {
>
> ...
>
> }
>
>
I actually got rid of the task_struct* parameter and now just match
against task_struct.p accesses in the function body, which has the
added bonus of not caring about the order of the parameters.
Still not there yet but making progress in the background, hope it's
passable entertainment to see me struggle my way there :)
>
> Regards,
> Markus
>
- Re: [PATCH] sched: make struct task_struct::state ... Alexey Dobriyan
- Re: [PATCH] sched: make struct task_struct::st... Valentin Schneider
- Re: [dm-devel] [PATCH] sched: make struct task_struct::... Christoph Hellwig
- Re: [dm-devel] [PATCH] sched: make struct task_str... Peter Zijlstra
- Re: [PATCH] sched: make struct task_struct::state 32-bi... Valentin Schneider
- Re: [PATCH] sched: make struct task_struct::state ... Alexey Dobriyan
- Re: [PATCH] sched: make struct task_struct::st... Valentin Schneider
- Re: [PATCH] sched: make struct task_struct... Valentin Schneider
- Re: [PATCH] sched: make struct task_st... Valentin Schneider
- Re: sched: make struct task_struct::st... Markus Elfring
- Re: sched: make struct task_struc... Valentin Schneider
- Re: sched: make struct task_s... Valentin Schneider
- Re: sched: make struct task_s... Julia Lawall
- Re: sched: make struct task_s... Valentin Schneider
- Re: sched: make struct task_s... Julia Lawall
- Re: sched: make struct task_s... Valentin Schneider
- Re: sched: make struct task_s... Markus Elfring
- Re: sched: make struct task_s... Markus Elfring
- RE: [PATCH] sched: make struct task_struct::st... David Laight
- Re: [PATCH] sched: make struct task_struct... Valentin Schneider
