Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-28 13:36:15
Last Modify:2022-05-20 07:50:19 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:perf_output_sample_regs

Proto:static void perf_output_sample_regs(struct perf_output_handle *handle, struct pt_regs *regs, u64 mask)

Type:void

Parameter:

TypeParameterName
struct perf_output_handle *handle
struct pt_regs *regs
u64mask
6140  DECLARE_BITMAP(_mask, 64)
6142  map_from_u64 - Check and swap words within u64.*@mask: source bitmap*@dst: destination bitmap* In 32-bit Big Endian kernel, when using ``(u32 *)(&val)[*]``* to read u64 mask, we will get the wrong word.* That is ``(u32 *)(&val)[0]`` gets the upper 32 bits,
6146  val = perf_reg_value(regs, bit)
6147  perf_output_put(handle, val)
Caller
NameDescribe
perf_output_sample