Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\srcutree.c Create Date:2022-07-28 10:19:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:srcu_torture_stats_print

Proto:void srcu_torture_stats_print(struct srcu_struct *ssp, char *tt, char *tf)

Type:void

Parameter:

TypeParameterName
struct srcu_struct *ssp
char *tt
char *tf
1257  s0 = 0 , s1 = 0
1259  idx = Current reader array element. & 0x1
1260  pr_alert("%s%s Tree SRCU g%ld per-CPU(idx=%d):", tt, tf, Return the current value the update side's sequence number, no ordering. , idx)
1262  for_each_possible_cpu(cpu)
1268  sdp = per_cpu_ptr(sda, cpu)
1269  u0 = srcu_unlock_count[!idx]
1270  u1 = srcu_unlock_count[idx]
1276  smp_rmb()
1278  l0 = srcu_lock_count[!idx]
1279  l1 = srcu_lock_count[idx]
1281  c0 = l0 - u0
1282  c1 = l1 - u1
1283  Like KERN_CONT, pr_cont() should only be used when continuing* a line with no newline ('\n') enclosed. Otherwise it defaults* back to KERN_DEFAULT.(" %d(%ld,%ld %c)", cpu, c0, c1, "C."[Is the specified rcu_segcblist structure empty?* But careful! The fact that the ->head field is NULL does not* necessarily imply that there are no callbacks associated with* this structure. When callbacks are being invoked, they are* removed as a group])
1286  s0 += c0
1287  s1 += c1
1289  Like KERN_CONT, pr_cont() should only be used when continuing* a line with no newline ('\n') enclosed. Otherwise it defaults* back to KERN_DEFAULT.(" T(%ld,%ld)\n", s0, s1)
Caller
NameDescribe
srcu_torture_stats