Messages in this thread | | | Date | Wed, 23 Dec 2015 17:04:48 +0100 | From | Jiri Olsa <> | Subject | Re: [PATCH 8/8] perf script: Add stat-cpi.py script |
| |
On Wed, Dec 23, 2015 at 10:44:20PM +0900, Namhyung Kim wrote:
SNIP
> > $ perf stat -e cycles,instructions -a -I 1000 record sleep 3 | perf script -s ./scripts/python/stat-cpi.py > > 1.000202: cpu -1, thread -1 -> cpi 1.035091 (940778881/908885530) > > 2.000392: cpu -1, thread -1 -> cpi 1.442600 (627493992/434974455) > > 3.000545: cpu -1, thread -1 -> cpi 1.353612 (741463930/547766890) > > 3.000622: cpu -1, thread -1 -> cpi 2.642110 (784083/296764) > > > > Tested-by: Kan Liang <kan.liang@intel.com> > > Link: http://lkml.kernel.org/n/tip-15vwwb4yea15wzz6bqbxdpc0@git.kernel.org > > Signed-off-by: Jiri Olsa <jolsa@kernel.org> > > --- > > tools/perf/scripts/python/stat-cpi.py | 77 +++++++++++++++++++++++++++++++++++ > > 1 file changed, 77 insertions(+) > > create mode 100644 tools/perf/scripts/python/stat-cpi.py > > > > diff --git a/tools/perf/scripts/python/stat-cpi.py b/tools/perf/scripts/python/stat-cpi.py > > new file mode 100644 > > index 000000000000..32689a83b6e6 > > --- /dev/null > > +++ b/tools/perf/scripts/python/stat-cpi.py > > @@ -0,0 +1,77 @@ > > +#!/bin/python > > It an unusual place IMHO. Wouldn't it be '#!/usr/bin/env python' ?
yep, I'll change that
thanks, jirka
| |