lkml.org 
[lkml]   [2010]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: set_cpus_allowed_ptr
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


\
 
 \ /
  Last update: 2010-03-26 17:41    [from the cache]
©2003-2011 Jasper Spaans