summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorRolf Evers-Fischer <rolf.evers.fischer@aptiv.com>2018-02-28 18:32:18 +0100
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2018-03-01 11:58:18 +0000
commit36cc14ac14c0d49d33820a82dab52a7edc802fef (patch)
treee105a05c3ac92b47ff21872edb24f4eb1ea30746 /tools/perf/scripts/python/call-graph-from-sql.py
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff)
PCI: endpoint: Simplify name allocation for EPF device
This commit replaces allocating and freeing the intermediate 'buf'/'func_name' with a combination of 'kstrndup()' and 'len'. 'len' is the required length of 'epf->name'. 'epf->name' should be either the first part of 'name' preceding the '.' or the complete 'name', if there is no '.' in the name. Signed-off-by: Rolf Evers-Fischer <rolf.evers.fischer@aptiv.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Acked-by: Kishon Vijay Abraham I <kishon@ti.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions