On Tue, Sep 19, 2017 at 10:02:50AM +0800, Lin Xiulei wrote:
> Add steps of reproducing
>
> 1
> ```
> mkdir /sys/fs/cgroup/perf_event/root1
> mkdir /sys/fs/cgroup/perf_event/root1/leaf1
> ```
> 2 $pid is any running process
> ```
> echo $pid > /sys/fs/cgroup/perf_event/root1/cgroup.procs
> ```
>
Add steps of reproducing
1
```
mkdir /sys/fs/cgroup/perf_event/root1
mkdir /sys/fs/cgroup/perf_event/root1/leaf1
```
2 $pid is any running process
```
echo $pid > /sys/fs/cgroup/perf_event/root1/cgroup.procs
```
3
```
perf stat -e cycles -G root1 -a -I 1000
```
You shall get 0 cycles from it, w
From: "leilei.lin"
This fix updating cgroup time when event is being scheduled in
by cgroup descendants
Signed-off-by: leilei.lin
---
kernel/events/core.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 3e691b7..6f6bd1e 1
3 matches
Mail list logo