Skip to contentSkip to conversation

tools/rcu: Add new APIs to rcu-updaters.sh

PATCH In review Zqiang 3 participants 5 messages Oct 10 – Oct 14 RCU

lore
Share & tools
lore

Zqiang

author reviewer
#0 lore raw

PATCH 1/1 tools/rcu: Add new APIs to rcu-updaters.sh

The following commit introduces some new APIs:

commit 'dab06d6f9379 ("srcutree: Add an atomic Tree SRCU")' commit '8df13f01608e ("rcu: Add full-sized polling for cond_sync_exp_full()")' commit 'd96c52fe4907 (rcu: Add polled expedited grace-period primitives)'

synchronize_srcu_atomic(), cond_synchronize_rcu_expedited() and cond_synchronize_rcu_expedited_full().

Sample output when running rcutorture:

@counts[synchronize_srcu]: 48
@counts[synchronize_rcu_expedited]: 74
@counts[synchronize_rcu]: 102
@counts[poll_state_synchronize_rcu_full]: 443
@counts[call_rcu]: 2498
@counts[synchronize_srcu_atomic]: 8717
@counts[poll_state_synchronize_srcu]: 14849

@counts[call_srcu]: 22 @counts[synchronize_rcu]: 103 @counts[start_poll_synchronize_rcu]: 1093 @counts[cond_synchronize_rcu_expedited]: 5339 @counts[cond_synchronize_rcu_expedited_full]: 5375 @counts[synchronize_rcu_expedited]: 8134 @counts[get_state_synchronize_rcu_full]: 17248 @counts[get_state_synchronize_rcu]: 17266 @counts[call_rcu]: 119168

This commit therefore add thems to rcu-updaters.sh script.

---
 tools/rcu/rcu-updaters.sh | 3 +++
 1 file changed, 3 insertions(+)
tools/rcu/rcu-updaters.sh +3 -0
index 8a5df3f22550..a0f03a144f6a 100755
@@ -34,6 +34,7 @@ bpftrace -e 'kprobe:kvfree_call_rcu,
 	     kprobe:synchronize_rcu_tasks_trace,
 	     kprobe:synchronize_srcu,
 	     kprobe:synchronize_srcu_expedited,
+	     kprobe:synchronize_srcu_atomic,
 	     kprobe:get_state_synchronize_rcu,
 	     kprobe:get_state_synchronize_rcu_full,
 	     kprobe:start_poll_synchronize_rcu,
@@ -44,6 +45,8 @@ bpftrace -e 'kprobe:kvfree_call_rcu,
 	     kprobe:poll_state_synchronize_rcu_full,
 	     kprobe:cond_synchronize_rcu,
 	     kprobe:cond_synchronize_rcu_full,
+	     kprobe:cond_synchronize_rcu_expedited,
+	     kprobe:cond_synchronize_rcu_expedited_full,
 	     kprobe:start_poll_synchronize_srcu,
 	     kprobe:poll_state_synchronize_srcu,
 	     kprobe:rcu_gp_init
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 33 lines · Zqiang

The following commit introduces some new APIs:

commit 'dab06d6f9379 ("srcutree: Add an atomic Tree SRCU")' commit '8df13f01608e ("rcu: Add full-sized polling for cond_sync_exp_full()")' commit 'd96c52fe4907 (rcu: Add polled expedited grace-period primitives)'

synchronize_srcu_atomic(), cond_synchronize_rcu_expedited() and cond_synchronize_rcu_expedited_full().

Sample output when running rcutorture:

@counts[synchronize_srcu]: 48
@counts[synchronize_rcu_expedited]: 74
@counts[synchronize_rcu]: 102
@counts[poll_state_synchronize_rcu_full]: 443
@counts[call_rcu]: 2498
@counts[synchronize_srcu_atomic]: 8717
@counts[poll_state_synchronize_srcu]: 14849

@counts[call_srcu]: 22 @counts[synchronize_rcu]: 103 @counts[start_poll_synchronize_rcu]: 1093 @counts[cond_synchronize_rcu_expedited]: 5339 @counts[cond_synchronize_rcu_expedited_full]: 5375 @counts[synchronize_rcu_expedited]: 8134 @counts[get_state_synchronize_rcu_full]: 17248 @counts[get_state_synchronize_rcu]: 17266 @counts[call_rcu]: 119168

Quoted 4 lines

This commit therefore add thems to rcu-updaters.sh script.

---

Nice, Thanks!, Could you update the documentation too and include in this series?

Quoted 16 lines

tools/rcu/rcu-updaters.sh | 3 +++

1 file changed, 3 insertions(+)
tools/rcu/rcu-updaters.sh +1 -0
index 8a5df3f22550..a0f03a144f6a 100755
@@ -34,6 +34,7 @@ bpftrace -e 'kprobe:kvfree_call_rcu,
        kprobe:synchronize_rcu_tasks_trace,
        kprobe:synchronize_srcu,
        kprobe:synchronize_srcu_expedited,
+         kprobe:synchronize_srcu_atomic,
        kprobe:get_state_synchronize_rcu,
        kprobe:get_state_synchronize_rcu_full,
        kprobe:start_poll_synchronize_rcu,

tools/rcu/rcu-updaters.sh bpftrace -e 'kprobe:kvfree_call_rcu, · line 52

Quoted 8 lines
tools/rcu/rcu-updaters.sh +2 -0
@@ -44,6 +45,8 @@ bpftrace -e 'kprobe:kvfree_call_rcu,
        kprobe:poll_state_synchronize_rcu_full,
        kprobe:cond_synchronize_rcu,
        kprobe:cond_synchronize_rcu_full,
+         kprobe:cond_synchronize_rcu_expedited,
+         kprobe:cond_synchronize_rcu_expedited_full,
        kprobe:start_poll_synchronize_srcu,
        kprobe:poll_state_synchronize_srcu,
        kprobe:rcu_gp_init

Ack on this patch.

Quoted 3 lines

--
2.17.1

author reviewer
#2 lore raw
Quoted 33 lines
Quoted 33 lines · Zqiang

The following commit introduces some new APIs:

commit 'dab06d6f9379 ("srcutree: Add an atomic Tree SRCU")' commit '8df13f01608e ("rcu: Add full-sized polling for cond_sync_exp_full()")' commit 'd96c52fe4907 (rcu: Add polled expedited grace-period primitives)'

synchronize_srcu_atomic(), cond_synchronize_rcu_expedited() and cond_synchronize_rcu_expedited_full().

Sample output when running rcutorture:

@counts[synchronize_srcu]: 48
@counts[synchronize_rcu_expedited]: 74
@counts[synchronize_rcu]: 102
@counts[poll_state_synchronize_rcu_full]: 443
@counts[call_rcu]: 2498
@counts[synchronize_srcu_atomic]: 8717
@counts[poll_state_synchronize_srcu]: 14849

@counts[call_srcu]: 22 @counts[synchronize_rcu]: 103 @counts[start_poll_synchronize_rcu]: 1093 @counts[cond_synchronize_rcu_expedited]: 5339 @counts[cond_synchronize_rcu_expedited_full]: 5375 @counts[synchronize_rcu_expedited]: 8134 @counts[get_state_synchronize_rcu_full]: 17248 @counts[get_state_synchronize_rcu]: 17266 @counts[call_rcu]: 119168

Quoted 6 lines
Quoted 5 lines

This commit therefore add thems to rcu-updaters.sh script.

---

Nice, Thanks!, Could you update the documentation too and include in this series?

Hi, Joel

I have already send patch for the Doc API update separately.

Thanks
Zqiang

Quoted 34 lines
Quoted 18 lines

tools/rcu/rcu-updaters.sh | 3 +++

 1 file changed, 3 insertions(+)

diff --git a/tools/rcu/rcu-updaters.sh b/tools/rcu/rcu-updaters.sh index 8a5df3f22550..a0f03a144f6a 100755
--- a/tools/rcu/rcu-updaters.sh
+++ b/tools/rcu/rcu-updaters.sh
@@ -34,6 +34,7 @@ bpftrace -e 'kprobe:kvfree_call_rcu, kprobe:synchronize_rcu_tasks_trace, kprobe:synchronize_srcu, kprobe:synchronize_srcu_expedited,
+ kprobe:synchronize_srcu_atomic, kprobe:get_state_synchronize_rcu, kprobe:get_state_synchronize_rcu_full, kprobe:start_poll_synchronize_rcu,
@@ -44,6 +45,8 @@ bpftrace -e 'kprobe:kvfree_call_rcu,

Quoted 9 lines

kprobe:poll_state_synchronize_rcu_full,
kprobe:cond_synchronize_rcu,
kprobe:cond_synchronize_rcu_full,
+ kprobe:cond_synchronize_rcu_expedited,
+ kprobe:cond_synchronize_rcu_expedited_full,
kprobe:start_poll_synchronize_srcu,
kprobe:poll_state_synchronize_srcu,
kprobe:rcu_gp_init

Ack on this patch.

Quoted 4 lines

--
2.17.1

maintainer Reviewed-by
#3 lore raw
Quoted 35 lines · Zqiang
Quoted 35 lines
Quoted 35 lines · Zqiang

The following commit introduces some new APIs:

commit 'dab06d6f9379 ("srcutree: Add an atomic Tree SRCU")' commit '8df13f01608e ("rcu: Add full-sized polling for cond_sync_exp_full()")' commit 'd96c52fe4907 (rcu: Add polled expedited grace-period primitives)'

synchronize_srcu_atomic(), cond_synchronize_rcu_expedited() and cond_synchronize_rcu_expedited_full().

Sample output when running rcutorture:

@counts[synchronize_srcu]: 48
@counts[synchronize_rcu_expedited]: 74
@counts[synchronize_rcu]: 102
@counts[poll_state_synchronize_rcu_full]: 443
@counts[call_rcu]: 2498
@counts[synchronize_srcu_atomic]: 8717
@counts[poll_state_synchronize_srcu]: 14849

@counts[call_srcu]: 22 @counts[synchronize_rcu]: 103 @counts[start_poll_synchronize_rcu]: 1093 @counts[cond_synchronize_rcu_expedited]: 5339 @counts[cond_synchronize_rcu_expedited_full]: 5375 @counts[synchronize_rcu_expedited]: 8134 @counts[get_state_synchronize_rcu_full]: 17248 @counts[get_state_synchronize_rcu]: 17266 @counts[call_rcu]: 119168

This commit therefore add thems to rcu-updaters.sh script.

Quoted 9 lines
Quoted 4 lines
Quoted 3 lines

---

Nice, Thanks!, Could you update the documentation too and include in this series?

Hi, Joel

I have already send patch for the Doc API update separately.

Yep, I see it now.

Applying this and other one for 7.5.

thanks,

Joel Fernandes

Quoted 37 lines

Thanks
Zqiang

Quoted 34 lines
Quoted 18 lines

tools/rcu/rcu-updaters.sh | 3 +++

 1 file changed, 3 insertions(+)

diff --git a/tools/rcu/rcu-updaters.sh b/tools/rcu/rcu-updaters.sh index 8a5df3f22550..a0f03a144f6a 100755
--- a/tools/rcu/rcu-updaters.sh
+++ b/tools/rcu/rcu-updaters.sh
@@ -34,6 +34,7 @@ bpftrace -e 'kprobe:kvfree_call_rcu, kprobe:synchronize_rcu_tasks_trace, kprobe:synchronize_srcu, kprobe:synchronize_srcu_expedited,
+ kprobe:synchronize_srcu_atomic, kprobe:get_state_synchronize_rcu, kprobe:get_state_synchronize_rcu_full, kprobe:start_poll_synchronize_rcu,
@@ -44,6 +45,8 @@ bpftrace -e 'kprobe:kvfree_call_rcu,

Quoted 9 lines

kprobe:poll_state_synchronize_rcu_full,
kprobe:cond_synchronize_rcu,
kprobe:cond_synchronize_rcu_full,
+ kprobe:cond_synchronize_rcu_expedited,
+ kprobe:cond_synchronize_rcu_expedited_full,
kprobe:start_poll_synchronize_srcu,
kprobe:poll_state_synchronize_srcu,
kprobe:rcu_gp_init

Ack on this patch.

Quoted 4 lines

--
2.17.1

Reviewed-by on v1 1/1
#4 lore raw
In reply to Zqiang
Quoted 61 lines · Zqiang

The following commit introduces some new APIs:

commit 'dab06d6f9379 ("srcutree: Add an atomic Tree SRCU")' commit '8df13f01608e ("rcu: Add full-sized polling for cond_sync_exp_full()")' commit 'd96c52fe4907 (rcu: Add polled expedited grace-period primitives)'

synchronize_srcu_atomic(), cond_synchronize_rcu_expedited() and cond_synchronize_rcu_expedited_full().

Sample output when running rcutorture:

@counts[synchronize_srcu]: 48
@counts[synchronize_rcu_expedited]: 74
@counts[synchronize_rcu]: 102
@counts[poll_state_synchronize_rcu_full]: 443
@counts[call_rcu]: 2498
@counts[synchronize_srcu_atomic]: 8717
@counts[poll_state_synchronize_srcu]: 14849

@counts[call_srcu]: 22 @counts[synchronize_rcu]: 103 @counts[start_poll_synchronize_rcu]: 1093 @counts[cond_synchronize_rcu_expedited]: 5339 @counts[cond_synchronize_rcu_expedited_full]: 5375 @counts[synchronize_rcu_expedited]: 8134 @counts[get_state_synchronize_rcu_full]: 17248 @counts[get_state_synchronize_rcu]: 17266 @counts[call_rcu]: 119168

This commit therefore add thems to rcu-updaters.sh script.

---
 tools/rcu/rcu-updaters.sh | 3 +++
 1 file changed, 3 insertions(+)
tools/rcu/rcu-updaters.sh +3 -1
index 8a5df3f22550..a0f03a144f6a 100755
@@ -34,6 +34,7 @@ bpftrace -e 'kprobe:kvfree_call_rcu,
             kprobe:synchronize_rcu_tasks_trace,
             kprobe:synchronize_srcu,
             kprobe:synchronize_srcu_expedited,
+            kprobe:synchronize_srcu_atomic,
             kprobe:get_state_synchronize_rcu,
             kprobe:get_state_synchronize_rcu_full,
             kprobe:start_poll_synchronize_rcu,
@@ -44,6 +45,8 @@ bpftrace -e 'kprobe:kvfree_call_rcu,
             kprobe:poll_state_synchronize_rcu_full,
             kprobe:cond_synchronize_rcu,
             kprobe:cond_synchronize_rcu_full,
+            kprobe:cond_synchronize_rcu_expedited,
+            kprobe:cond_synchronize_rcu_expedited_full,
             kprobe:start_poll_synchronize_srcu,
             kprobe:poll_state_synchronize_srcu,
             kprobe:rcu_gp_init
--

2.17.1