diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c index 36f65e2b8b5772f16e644bfa109f89393c893fd3..f274e19598858979a3d9bf32b75fe1f62fce426a 100644 --- a/kernel/perf_counter.c +++ b/kernel/perf_counter.c @@ -1791,7 +1791,7 @@ static int perf_counter_read_group(struct perf_counter *counter, size += err; list_for_each_entry(sub, &leader->sibling_list, list_entry) { - err = perf_counter_read_entry(counter, read_format, + err = perf_counter_read_entry(sub, read_format, buf + size); if (err < 0) return err;