From: Julia Lawall <julia@diku.dk>
To: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@elte.hu>, tglx <tglx@linutronix.de>,
Oleg Nesterov <oleg@redhat.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: set_cpus_allowed_ptr
Date: Fri, 26 Mar 2010 17:38:50 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.64.1003261736440.977@ask.diku.dk> (raw)
In-Reply-To: <1269597796.12097.133.camel@laptop>
I tried the following semantic patch:
@@
expression E1,E2;
@@
- set_cpus_allowed(E1, cpumask_of_cpu(E2))
+ set_cpus_allowed_ptr(E1, cpumask_of(E2))
@@
expression E;
identifier I;
@@
- set_cpus_allowed(E, I)
+ set_cpus_allowed_ptr(E, &I)
@@
@@
+BAD(
set_cpus_allowed(...)
+ )
I didn't get any occurrences of BAD in the output, so there seem to be
only calls to cpumask_of_cpu and identifiers. Looking at the result of
grepping for set_cpus_allowed suggested the same. Am I missing anything?
julia
prev parent reply other threads:[~2010-03-26 16:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-26 10:03 set_cpus_allowed_ptr Peter Zijlstra
2010-03-26 11:22 ` set_cpus_allowed_ptr Julia Lawall
2010-03-26 11:52 ` set_cpus_allowed_ptr Peter Zijlstra
2010-03-26 16:38 ` Julia Lawall [this message]
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=Pine.LNX.4.64.1003261736440.977@ask.diku.dk \
--to=julia@diku.dk \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=oleg@redhat.com \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
/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 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®