From: Paul Chaignon <paul@cilium.io>
To: Markus Elfring <Markus.Elfring@web.de>
Cc: cocci@systeme.lip6.fr
Subject: Re: [Cocci] Excluding function names in SmPL rules
Date: Wed, 3 Jun 2020 11:09:39 +0200 [thread overview]
Message-ID: <20200603090938.GA25007@Mem> (raw)
In-Reply-To: <1a1600a7-faf3-00bc-d616-25281bf5039b@web.de>
On Wed, Jun 03, 2020 at 10:23:59AM +0200, Markus Elfring wrote:
> > I couldn't find a way to do that from the first rule, so I whitelisted
> > send_drop_notify() with a second rule (rule2 below). That seems rather
> > cumbersome and I'm wondering if there's maybe a simpler approach?
>
> Do you find the following source code search approach helpful for
> your software development needs?
No. It's the first approach I tried and it didn't match anything anymore;
I couldn't figure out why. It's the approach I was referring to by 'When I
tried using rule1 as the body of the function in rule2, it just didn't
match anything anymore'.
Paul
>
> @display@
> identifier fn != send_drop_notify;
> type t;
> @@
> t fn(...)
> {
> ... when any
> (ep_tail_call(...);
> ... when forall
> return DROP_MISSED_TAIL_CALL;
> |
> *ep_tail_call(...);
> )
> ... when any
> }
>
>
> Regards,
> Markus
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci
next prev parent reply other threads:[~2020-06-03 9:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-03 8:23 [Cocci] Excluding function names in SmPL rules Markus Elfring
2020-06-03 9:09 ` Paul Chaignon [this message]
2020-06-03 11:04 ` Markus Elfring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200603090938.GA25007@Mem \
--to=paul@cilium.io \
--cc=Markus.Elfring@web.de \
--cc=cocci@systeme.lip6.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.