aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorNavya Sri Nizamkari <navyasri.tech@gmail.com>2015-03-01 13:08:00 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-01 15:13:27 -0800
commit95745e9b1de24fc682a47080124819e1808c3a17 (patch)
treec0f827000f738c7b9e5689caabb06ba10995635f /tools/perf/scripts/python/event_analyzing_sample.py
parentStaging: dgnc: Replace printk() with dev_dbg() (diff)
staging: lustre: Use kasprintf.
This patch uses kasprintf as it combines kmalloc and sprintf, and takes care of the size calculation itself. The semantic patch that makes this change is as follows: // <smpl> @@ expression a,flag; expression list args; statement S; @@ a = - \(kmalloc\|kzalloc\)(...,flag) + kasprintf(flag,args) <... when != a if (a == NULL || ...) S ...> - sprintf(a,args); Signed-off-by: Navya Sri Nizamkari <navyasri.tech@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions