X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=tools%2Fperf%2Fbuiltin-top.c;h=7e3d6e310bf839f09e5d6afed39c8c1530a13807;hb=37fc67c9f0454f7a6448d87225cfee8067fd731d;hp=fc1273e976c58f4c25d6321abf578392ba1126ad;hpb=4da7e90e653d67dfd405868246d316b04852e2d5;p=karo-tx-linux.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) {