aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorLuo Jie <quic_luoj@quicinc.com>2025-04-17 18:47:08 +0800
committerYury Norov <yury.norov@gmail.com>2025-04-29 15:58:38 -0400
commita256ae22570ee4c3427fdc703a58a89afee6a332 (patch)
tree8168df33dba0f19402ca698901f73cb6196e38e2 /tools/perf/scripts/python/export-to-postgresql.py
parentbitmap-str: Add missing header(s) (diff)
downloadlinux-rng-a256ae22570ee4c3427fdc703a58a89afee6a332.tar.xz
linux-rng-a256ae22570ee4c3427fdc703a58a89afee6a332.zip
bitfield: Add FIELD_MODIFY() helper
Add a helper for replacing the contents of bitfield in memory with the specified value. Even though a helper xxx_replace_bits() is available, it is not well documented, and only reports errors at the run time, which will not be helpful to catch possible overflow errors due to incorrect parameter types used. FIELD_MODIFY(REG_FIELD_C, &reg, c) is the wrapper to the code below. reg &= ~REG_FIELD_C; reg |= FIELD_PREP(REG_FIELD_C, c); Yury: trim commit message, align backslashes. Signed-off-by: Luo Jie <quic_luoj@quicinc.com> Signed-off-by: Yury Norov <yury.norov@gmail.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions