Re: [PATCH] perf cgroup: fix cgroup for multiple events

2018-01-25 Thread weiping zhang
please discard this patch, may the right way to use cgroup with multiple events like following: perf stat -e cycles -e cache-misses -a -I 1000 -G test,test 2018-01-25 23:00 GMT+08:00 weiping zhang : > if use -G and with multiple events, only the first event has >

Re: [PATCH] perf cgroup: fix cgroup for multiple events

2018-01-25 Thread weiping zhang
please discard this patch, may the right way to use cgroup with multiple events like following: perf stat -e cycles -e cache-misses -a -I 1000 -G test,test 2018-01-25 23:00 GMT+08:00 weiping zhang : > if use -G and with multiple events, only the first event has > correct cgroup setting, all

[PATCH] perf cgroup: fix cgroup for multiple events

2018-01-25 Thread weiping zhang
if use -G and with multiple events, only the first event has correct cgroup setting, all other events have a wroung setting. reproduce: mkdir -p /sys/fs/cgroup/perf_event/test perf stat -e cycles -e cache-misses -a -I 1000 -G test before: 1.001007226cycles

[PATCH] perf cgroup: fix cgroup for multiple events

2018-01-25 Thread weiping zhang
if use -G and with multiple events, only the first event has correct cgroup setting, all other events have a wroung setting. reproduce: mkdir -p /sys/fs/cgroup/perf_event/test perf stat -e cycles -e cache-misses -a -I 1000 -G test before: 1.001007226cycles