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.li...@intel.com> > > Link: http://lkml.kernel.org/n/tip-15vwwb4yea15wzz6bqbxd...@git.kernel.org > > Signed-off-by: Jiri Olsa <jo...@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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/