X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tools%2Fperf%2Fbuiltin-top.c;h=7e3d6e310bf839f09e5d6afed39c8c1530a13807;hb=9cab1ba421fbc4c4503ccf4ff61e000c771e8942;hp=fc1273e976c58f4c25d6321abf578392ba1126ad;hpb=85f2e689a5c8fb6ed8fdbee00109e7f6e5fefcb6;p=pandora-kernel.git diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index fc1273e976c5..7e3d6e310bf8 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c @@ -845,9 +845,10 @@ static void start_counters(struct perf_evlist *evlist) } attr->mmap = 1; + attr->inherit = inherit; try_again: if (perf_evsel__open(counter, top.evlist->cpus, - top.evlist->threads, group, inherit) < 0) { + top.evlist->threads, group) < 0) { int err = errno; if (err == EPERM || err == EACCES) {