Re: [Cocci] what is needed to match a set of fields?

2017-09-16 Thread Julia Lawall
On Sat, 16 Sep 2017, Kees Cook wrote: > Hi, > > If I have several structures inline, "identifier" doesn't match it. For > example: > > setup_timer(>thermal_throttle.ct_kill_exit_tm, > iwl_tt_check_exit_ct_kill, (unsigned long)priv); > > @@ > expression _E; >

Re: [Cocci] what is needed to match a set of fields?

2017-09-16 Thread Kees Cook
On Sat, Sep 16, 2017 at 10:25 PM, Julia Lawall wrote: > > > On Sat, 16 Sep 2017, Kees Cook wrote: > >> Hi, >> >> If I have several structures inline, "identifier" doesn't match it. For >> example: >> >> setup_timer(>thermal_throttle.ct_kill_exit_tm, >>

[Cocci] what is needed to match a set of fields?

2017-09-16 Thread Kees Cook
Hi, If I have several structures inline, "identifier" doesn't match it. For example: setup_timer(>thermal_throttle.ct_kill_exit_tm, iwl_tt_check_exit_ct_kill, (unsigned long)priv); @@ expression _E; identifier _timer; @@ -setup_timer(&_E->_timer, ...); This doesn't