[PATCH v6 02/11] perf stat: Extend rbtree to support per-thread shadow stats

2017-12-04 Thread Jin Yao
Previously the rbtree was used to link generic metrics. This patches adds new ctx/type/stat into rbtree keys because we will use this rbtree to maintain shadow metrics to replace original a couple of static arrays for supporting per-thread shadow stats. Signed-off-by: Jin Yao

[PATCH v6 02/11] perf stat: Extend rbtree to support per-thread shadow stats

2017-12-04 Thread Jin Yao
Previously the rbtree was used to link generic metrics. This patches adds new ctx/type/stat into rbtree keys because we will use this rbtree to maintain shadow metrics to replace original a couple of static arrays for supporting per-thread shadow stats. Signed-off-by: Jin Yao ---