函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\atomic64_test.c Create Date:2022-07-27 08:16:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:test_atomic

函数原型:static __init void test_atomic(void)

返回类型:void

参数:

106  v0等于0xaaa31337
107  v1等于0xdeadbeef
108  onestwos等于0x11112222
109  one等于1
114  TEST(, add, += , onestwos)
115  TEST(, add, += , - one)
116  TEST(, sub, -= , onestwos)
117  TEST(, sub, -= , - one)
118  TEST(, or, |= , v1)
119  TEST(, and, &= , v1)
120  TEST(, xor, ^= , v1)
121  TEST(, andnot, &= ~, v1)
123  RETURN_FAMILY_TEST(, add_return, += , onestwos)
124  RETURN_FAMILY_TEST(, add_return, += , - one)
125  RETURN_FAMILY_TEST(, sub_return, -= , onestwos)
126  RETURN_FAMILY_TEST(, sub_return, -= , - one)
128  FETCH_FAMILY_TEST(, fetch_add, += , onestwos)
129  FETCH_FAMILY_TEST(, fetch_add, += , - one)
130  FETCH_FAMILY_TEST(, fetch_sub, -= , onestwos)
131  FETCH_FAMILY_TEST(, fetch_sub, -= , - one)
133  FETCH_FAMILY_TEST(, fetch_or, |= , v1)
134  FETCH_FAMILY_TEST(, fetch_and, &= , v1)
135  FETCH_FAMILY_TEST(, fetch_andnot, &= ~, v1)
136  FETCH_FAMILY_TEST(, fetch_xor, ^= , v1)
138  INC_RETURN_FAMILY_TEST(, v0)
139  DEC_RETURN_FAMILY_TEST(, v0)
141  XCHG_FAMILY_TEST(, v0, v1)
142  CMPXCHG_FAMILY_TEST(, v0, v1, onestwos)
调用者
名称描述
test_atomics_init