Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
e087816d
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e087816d
编写于
1月 28, 2016
作者:
P
Paul E. McKenney
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rcu: Add event tracing definitions for expedited grace periods
Signed-off-by:
N
Paul E. McKenney
<
paulmck@linux.vnet.ibm.com
>
上级
26ece8ef
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
76 addition
and
2 deletion
+76
-2
include/trace/events/rcu.h
include/trace/events/rcu.h
+76
-2
未找到文件。
include/trace/events/rcu.h
浏览文件 @
e087816d
...
...
@@ -171,6 +171,76 @@ TRACE_EVENT(rcu_grace_period_init,
__entry
->
grplo
,
__entry
->
grphi
,
__entry
->
qsmask
)
);
/*
* Tracepoint for expedited grace-period events. Takes a string identifying
* the RCU flavor, the expedited grace-period sequence number, and a string
* identifying the grace-period-related event as follows:
*
* "snap": Captured snapshot of expedited grace period sequence number.
* "start": Started a real expedited grace period.
* "end": Ended a real expedited grace period.
* "done": Someone else did the expedited grace period for us.
*/
TRACE_EVENT
(
rcu_exp_grace_period
,
TP_PROTO
(
const
char
*
rcuname
,
unsigned
long
gpseq
,
const
char
*
gpevent
),
TP_ARGS
(
rcuname
,
gpseq
,
gpevent
),
TP_STRUCT__entry
(
__field
(
const
char
*
,
rcuname
)
__field
(
unsigned
long
,
gpseq
)
__field
(
const
char
*
,
gpevent
)
),
TP_fast_assign
(
__entry
->
rcuname
=
rcuname
;
__entry
->
gpseq
=
gpseq
;
__entry
->
gpevent
=
gpevent
;
),
TP_printk
(
"%s %lu %s"
,
__entry
->
rcuname
,
__entry
->
gpseq
,
__entry
->
gpevent
)
);
/*
* Tracepoint for expedited grace-period funnel-locking events. Takes a
* string identifying the RCU flavor, an integer identifying the rcu_node
* combining-tree level, another pair of integers identifying the lowest-
* and highest-numbered CPU associated with the current rcu_node structure,
* and a string. identifying the grace-period-related event as follows:
*
* "acq": Acquired a level of funnel lock
* "rel": Released a level of funnel lock
*/
TRACE_EVENT
(
rcu_exp_funnel_lock
,
TP_PROTO
(
const
char
*
rcuname
,
u8
level
,
int
grplo
,
int
grphi
,
const
char
*
gpevent
),
TP_ARGS
(
rcuname
,
level
,
grplo
,
grphi
,
gpevent
),
TP_STRUCT__entry
(
__field
(
const
char
*
,
rcuname
)
__field
(
u8
,
level
)
__field
(
int
,
grplo
)
__field
(
int
,
grphi
)
__field
(
const
char
*
,
gpevent
)
),
TP_fast_assign
(
__entry
->
rcuname
=
rcuname
;
__entry
->
level
=
level
;
__entry
->
grplo
=
grplo
;
__entry
->
grphi
=
grphi
;
__entry
->
gpevent
=
gpevent
;
),
TP_printk
(
"%s %d %d %d %s"
,
__entry
->
rcuname
,
__entry
->
level
,
__entry
->
grplo
,
__entry
->
grphi
,
__entry
->
gpevent
)
);
/*
* Tracepoint for RCU no-CBs CPU callback handoffs. This event is intended
* to assist debugging of these handoffs.
...
...
@@ -704,11 +774,15 @@ TRACE_EVENT(rcu_barrier,
#else
/* #ifdef CONFIG_RCU_TRACE */
#define trace_rcu_grace_period(rcuname, gpnum, gpevent) do { } while (0)
#define trace_rcu_grace_period_init(rcuname, gpnum, level, grplo, grphi, \
qsmask) do { } while (0)
#define trace_rcu_future_grace_period(rcuname, gpnum, completed, c, \
level, grplo, grphi, event) \
do { } while (0)
#define trace_rcu_grace_period_init(rcuname, gpnum, level, grplo, grphi, \
qsmask) do { } while (0)
#define trace_rcu_exp_grace_period(rcuname, gqseq, gpevent) \
do { } while (0)
#define trace_rcu_exp_funnel_lock(rcuname, level, grplo, grphi, gpevent) \
do { } while (0)
#define trace_rcu_nocb_wake(rcuname, cpu, reason) do { } while (0)
#define trace_rcu_preempt_task(rcuname, pid, gpnum) do { } while (0)
#define trace_rcu_unlock_preempted_task(rcuname, gpnum, pid) do { } while (0)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录