Messages in this thread | | | Date | Thu, 10 Jul 2014 00:20:27 +0200 | From | Jiri Olsa <> | Subject | Re: [PATCH 5/9] perf, tools: Add perf download to download event files v4 |
| |
On Fri, Jun 27, 2014 at 04:16:00PM -0700, Andi Kleen wrote: > From: Andi Kleen <ak@linux.intel.com> > > Add a downloader to automatically download the right > files from a download site. > > This is implemented as a script calling wget, similar to > perf archive. The perf driver automatically calls the right > binary. The downloader is extensible, but currently only > implements an Intel event download. It would be straightforward > to add other sites too for other vendors. > > The downloaded event files are put into ~/.cache/pmu-events, where the > builtin event parser in util/* can find them automatically.
SNIP
> $(QUIET_SUBDIR0)Documentation $(QUIET_SUBDIR1) clean > diff --git a/tools/perf/perf-download.sh b/tools/perf/perf-download.sh > new file mode 100755 > index 0000000..b6e4299 > --- /dev/null > +++ b/tools/perf/perf-download.sh > @@ -0,0 +1,57 @@ > +#!/bin/bash > +# download event files for current cpu for perf > + > +WGETOPT=${WGETOPT:---no-verbose --timeout 5} > + > +set -e > + > +if ! type wget > /dev/null ; then > + echo "please install wget"
I guess the other alternative is curl.. could u check for this one as well?
jirka
| |