/// Find double locks. False positives may occur when some paths cannot /// occur at execution, due to the values of variables, and when there is /// an intervening function call that releases the lock. /// // Confidence: Moderate // Copyright: (C) 2010 Nicolas Palix, DIKU. GPLv2. // Copyright: (C) 2010 Julia Lawall, DIKU. GPLv2. // Copyright: (C) 2010 Gilles Muller, INRIA/LiP6. GPLv2. // URL: http://coccinelle.lip6.fr/ // Comments: // Options: --no-includes --include-headers virtual org virtual report @locked@ position p1; expression E1; position p; @@ ( mutex_lock@p1 | mutex_trylock@p1 | spin_lock@p1 | spin_trylock@p1 | read_lock@p1 | read_trylock@p1 | write_lock@p1 | write_trylock@p1 ) (E1@p,...); @balanced@ position p1 != locked.p1; position locked.p; identifier lock,unlock; expression x <= locked.E1; expression E,locked.E1; expression E2; @@ if (E) { <+... when != E1 lock(E1@p,...) ...+> } ... when != E1 when != \(x = E2\|&x\) when forall if (E) { <+... when != E1 unlock@p1(E1,...) ...+> } @r depends on !balanced exists@ expression x <= locked.E1; expression locked.E1; expression E2; identifier lock; position locked.p,p1,p2; @@ lock@p1 (E1@p,...); ... when != E1 when != \(x = E2\|&x\) lock@p2 (E1,...); @script:python depends on org@ p1 << r.p1; p2 << r.p2; lock << r.lock; @@ cocci.print_main(lock,p1) cocci.print_secs("second lock",p2) @script:python depends on report@ p1 << r.p1; p2 << r.p2; lock << r.lock; @@ msg = "second lock on line %s" % (p2[0].line) coccilib.report.print_report(p1[0],msg) inux/net-next.git/'>summaryrefslogtreecommitdiff
path: root/include/trace/events/fib.h
diff options
context:
space:
mode:
authorMarkus Mayer <mmayer@broadcom.com>2016-12-19 12:10:27 -0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-01-27 11:43:48 +0100
commit9b02c54bc951fca884ba5719f42a27e8240965bf (patch)
tree68292e54c6d3482d6b55fc31b3ab9519307b255a /include/trace/events/fib.h
parent7a308bb3016f57e5be11a677d15b821536419d36 (diff)
cpufreq: brcmstb-avs-cpufreq: extend sysfs entry brcm_avs_pmap
We extend the brcm_avs_pmap sysfs entry (which issues the GET_PMAP command to AVS) to include all fields from struct pmap. This means adding mode (AVS, DVS, DVFS) and state (the P-state) to the output. Signed-off-by: Markus Mayer <mmayer@broadcom.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/trace/events/fib.h')