提交 baca90c0 编写于 作者: Z Zheng Zengkai 提交者: Yang Yingliang

kabi: Fix "perf/x86/intel: Support per-thread RDPMC TopDown metrics"

hulk inclusion
category: Bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I47H3V
CVE: NA

-------------------------------------------------

Fix kabi broken introduced by the following commit:
"perf/x86/intel: Support per-thread RDPMC TopDown metrics".
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: NYang Jihong <yangjihong1@huawei.com>
Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 07f23157
...@@ -198,6 +198,7 @@ struct hw_perf_event { ...@@ -198,6 +198,7 @@ struct hw_perf_event {
*/ */
u64 sample_period; u64 sample_period;
#ifndef __GENKSYMS__
union { union {
struct { /* Sampling */ struct { /* Sampling */
/* /*
...@@ -218,6 +219,20 @@ struct hw_perf_event { ...@@ -218,6 +219,20 @@ struct hw_perf_event {
u64 saved_slots; u64 saved_slots;
}; };
}; };
#else
/*
* The period we started this sample with.
*/
u64 last_period;
/*
* However much is left of the current period;
* note that this is a full 64bit value and
* allows for generation of periods longer
* than hardware might allow.
*/
local64_t period_left;
#endif
/* /*
* State for throttling the event, see __perf_event_overflow() and * State for throttling the event, see __perf_event_overflow() and
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册