/usr/src/kernels/4.18.0-553.121.1.el8_10.x86_64/include/linux
NameSizeModeActions
amba/-0755rm
avf/-0755rm
bcma/-0755rm
byteorder/-0755rm
can/-0755rm
ceph/-0755rm
clk/-0755rm
crush/-0755rm
decompress/-0755rm
dma/-0755rm
dsa/-0755rm
extcon/-0755rm
firmware/-0755rm
fpga/-0755rm
fsl/-0755rm
gpio/-0755rm
hsi/-0755rm
iio/-0755rm
input/-0755rm
irqchip/-0755rm
isdn/-0755rm
lockd/-0755rm
mailbox/-0755rm
mfd/-0755rm
mlx4/-0755rm
mlx5/-0755rm
mmc/-0755rm
mtd/-0755rm
mux/-0755rm
net/-0755rm
netfilter/-0755rm
netfilter_arp/-0755rm
netfilter_bridge/-0755rm
netfilter_ipv4/-0755rm
netfilter_ipv6/-0755rm
pcs/-0755rm
perf/-0755rm
phy/-0755rm
pinctrl/-0755rm
platform_data/-0755rm
power/-0755rm
qed/-0755rm
raid/-0755rm
regulator/-0755rm
remoteproc/-0755rm
reset/-0755rm
rpmsg/-0755rm
rtc/-0755rm
sched/-0755rm
soc/-0755rm
soundwire/-0755rm
spi/-0755rm
ssb/-0755rm
sunrpc/-0755rm
ulpi/-0755rm
unaligned/-0755rm
usb/-0755rm
uwb/-0755rm
wimax/-0755rm
8250_pci.h10380644editdlrm
a.out.h3540644editdlrm
acct.h25510644editdlrm
acpi.h431300644editdlrm
acpi_apmt.h3670644editdlrm
acpi_dma.h33000644editdlrm
acpi_iort.h32350644editdlrm
acpi_pmtmr.h6740644editdlrm
adb.h18320644editdlrm
adfs_fs.h5740644editdlrm
adxl.h3100644editdlrm
aer.h18220644editdlrm
agpgart.h39080644editdlrm
agp_backend.h35340644editdlrm
ahci-remap.h6070644editdlrm
ahci_platform.h17720644editdlrm
aio.h6510644editdlrm
alarmtimer.h18750644editdlrm
altera_jtaguart.h3790644editdlrm
altera_uart.h3970644editdlrm
amd-iommu.h69310644editdlrm
amd-pstate.h33560644editdlrm
anon_inodes.h4940644editdlrm
aperture.h16190644editdlrm
apm-emulation.h15750644editdlrm
apm_bios.h27460644editdlrm
apple-gmux.h14590644editdlrm
apple_bl.h4980644editdlrm
arch_topology.h19830644editdlrm
arm-cci.h20580644editdlrm
arm-smccc.h160660644editdlrm
arm_sdei.h26410644editdlrm
ascii85.h5320644editdlrm
asn1.h20390644editdlrm
asn1_ber_bytecode.h27830644editdlrm
asn1_decoder.h6750644editdlrm
assoc_array.h31560644editdlrm
assoc_array_priv.h56300644editdlrm
async.h45910644editdlrm
async_tx.h74870644editdlrm
ata.h339800644editdlrm
atalk.h45500644editdlrm
ata_platform.h7290644editdlrm
ath9k_platform.h14770644editdlrm
atm.h2870644editdlrm
atmdev.h104570644editdlrm
atmel-mci.h14290644editdlrm
atmel-ssc.h99710644editdlrm
atmel_pdc.h15020644editdlrm
atmel_tc.h116000644editdlrm
atm_suni.h2530644editdlrm
atm_tcp.h5110644editdlrm
atomic.h375460644editdlrm
attribute_container.h27990644editdlrm
audit.h203320644editdlrm
audit_arch.h5590644editdlrm
auto_dev-ioctl.h4540644editdlrm
auto_fs.h4360644editdlrm
auxiliary_bus.h27870644editdlrm
auxvec.h3040644editdlrm
average.h24810644editdlrm
b1pcmcia.h6660644editdlrm
backing-dev-defs.h103270644editdlrm
backing-dev.h122600644editdlrm
backlight.h134470644editdlrm
badblocks.h21880644editdlrm
balloon_compaction.h67450644editdlrm
bcd.h5590644editdlrm
bch.h26600644editdlrm
bcm47xx_nvram.h12470644editdlrm
bcm47xx_sprom.h6000644editdlrm
bcm47xx_wdt.h5550644editdlrm
bcm963xx_nvram.h30360644editdlrm
bcm963xx_tag.h36850644editdlrm
binfmts.h54430644editdlrm
bio.h206900644editdlrm
bitfield.h58990644editdlrm
bitmap.h214960644editdlrm
bitops.h88700644editdlrm
bitrev.h25410644editdlrm
bits.h15120644editdlrm
bit_spinlock.h23600644editdlrm
blk-cgroup.h227280644editdlrm
blk-mq-pci.h2690644editdlrm
blk-mq-rdma.h2340644editdlrm
blk-mq-virtio.h2930644editdlrm
blk-mq.h160740644editdlrm
blk-pm.h7170644editdlrm
blkdev.h588980644editdlrm
blkpg.h4360644editdlrm
blktrace_api.h37770644editdlrm
blk_types.h153420644editdlrm
blockgroup_lock.h8100644editdlrm
bma150.h19380644editdlrm
bottom_half.h8030644editdlrm
bpf-cgroup.h198180644editdlrm
bpf-netns.h15590644editdlrm
bpf.h728240644editdlrm
bpfilter.h7910644editdlrm
bpfptr.h17330644editdlrm
bpf_lirc.h6980644editdlrm
bpf_local_storage.h53490644editdlrm
bpf_lsm.h14310644editdlrm
bpf_trace.h1660644editdlrm
bpf_types.h53950644editdlrm
bpf_verifier.h187910644editdlrm
brcmphy.h140230644editdlrm
bsearch.h2750644editdlrm
bsg-lib.h24550644editdlrm
bsg.h10940644editdlrm
btf.h73630644editdlrm
btf_ids.h51740644editdlrm
btree-128.h27370644editdlrm
btree-type.h39910644editdlrm
btree.h69990644editdlrm
btrfs.h1450644editdlrm
buffer_head.h143790644editdlrm
bug.h19670644editdlrm
buildid.h2480644editdlrm
build_bug.h30660644editdlrm
bvec.h41190644editdlrm
c2port.h15290644editdlrm
cache.h21820644editdlrm
cacheinfo.h47960644editdlrm
capability.h81790644editdlrm
cb710.h58270644editdlrm
cciss_ioctl.h10530644editdlrm
ccp.h186970644editdlrm
cc_platform.h31400644editdlrm
cdev.h8450644editdlrm
cdrom.h91930644editdlrm
cfag12864b.h14990644editdlrm
cgroup-defs.h272420644editdlrm
cgroup.h288800644editdlrm
cgroup_rdma.h13580644editdlrm
cgroup_subsys.h12590644editdlrm
circ_buf.h11200644editdlrm
cleancache.h39820644editdlrm
cleanup.h142150644editdlrm
clk-provider.h375420644editdlrm
clk.h251570644editdlrm
clkdev.h16980644editdlrm
clockchips.h74450644editdlrm
clocksource.h91880644editdlrm
clock_cooling.h21060644editdlrm
cm4000_cs.h1990644editdlrm
cma.h12120644editdlrm
cmdline-parser.h12380644editdlrm
cnt32_to_63.h36910644editdlrm
cn_proc.h18900644editdlrm
coda.h22440644editdlrm
coda_psdev.h26920644editdlrm
compaction.h76540644editdlrm
compat.h357390644editdlrm
compat_time.h4990644editdlrm
compiler-clang.h24460644editdlrm
compiler-gcc.h57560644editdlrm
compiler-intel.h9490644editdlrm
compiler.h157180644editdlrm
compiler_attributes.h106000644editdlrm
compiler_types.h69310644editdlrm
completion.h42010644editdlrm
component.h44590644editdlrm
concap.h37780644editdlrm
configfs.h94410644editdlrm
connector.h24900644editdlrm
console.h75040644editdlrm
consolemap.h10680644editdlrm
console_struct.h69660644editdlrm
const.h4210644editdlrm
container.h6680644editdlrm
container_of.h12780644editdlrm
context_tracking.h51680644editdlrm
context_tracking_state.h15290644editdlrm
cookie.h12540644editdlrm
cordic.h17940644editdlrm
coredump.h7970644editdlrm
coresight-pmu.h9890644editdlrm
coresight-stm.h1520644editdlrm
coresight.h96760644editdlrm
counter.h154970644editdlrm
counter_enum.h14630644editdlrm
count_zeros.h16600644editdlrm
cper.h168260644editdlrm
cpu.h79590644editdlrm
cpufeature.h18820644editdlrm
cpufreq.h342480644editdlrm
cpuhotplug.h142690644editdlrm
cpuidle.h130610644editdlrm
cpuidle_haltpoll.h3120644editdlrm
cpumask.h297210644editdlrm
cpuset.h82970644editdlrm
cpu_cooling.h23890644editdlrm
cpu_pm.h28500644editdlrm
cpu_rmap.h19020644editdlrm
crash_core.h32920644editdlrm
crash_dump.h51930644editdlrm
crc-ccitt.h6090644editdlrm
crc-itu-t.h6130644editdlrm
crc-t10dif.h4530644editdlrm
crc4.h1920644editdlrm
crc7.h3160644editdlrm
crc8.h37470644editdlrm
crc16.h6220644editdlrm
crc32.h28940644editdlrm
crc32c.h3310644editdlrm
crc32poly.h6100644editdlrm
cred.h127490644editdlrm
crypto.h593930644editdlrm
cryptohash.h5460644editdlrm
cs5535.h64260644editdlrm
ctype.h17910644editdlrm
cuda.h5010644editdlrm
cxl_err.h4680644editdlrm
cyclades.h106070644editdlrm
damon.h196160644editdlrm
davinci_emac.h11500644editdlrm
dax.h75530644editdlrm
dca.h26980644editdlrm
dcache.h196210644editdlrm
dccp.h109890644editdlrm
dcookies.h13290644editdlrm
debugfs.h119210644editdlrm
debugobjects.h39880644editdlrm
debug_locks.h16270644editdlrm
delay.h23350644editdlrm
delayacct.h62850644editdlrm
delayed_call.h7090644editdlrm
dell-led.h1280644editdlrm
devcoredump.h28490644editdlrm
devfreq-event.h57780644editdlrm
devfreq.h129870644editdlrm
devfreq_cooling.h36080644editdlrm
device-mapper.h195290644editdlrm
device.h672750644editdlrm
device_cgroup.h16800644editdlrm
devm-helpers.h27400644editdlrm
devpts_fs.h13140644editdlrm
dev_printk.h77310644editdlrm
digsig.h13790644editdlrm
dim.h89510644editdlrm
dio.h112290644editdlrm
dirent.h2160644editdlrm
dlm.h72400644editdlrm
dlm_plock.h6780644editdlrm
dm-bufio.h45740644editdlrm
dm-dirty-log.h40380644editdlrm
dm-io.h19800644editdlrm
dm-kcopyd.h30130644editdlrm
dm-region-hash.h31820644editdlrm
dm9000.h11360644editdlrm
dma-buf.h215470644editdlrm
dma-contiguous.h50700644editdlrm
dma-direct.h36810644editdlrm
dma-direction.h4070644editdlrm
dma-fence-array.h29830644editdlrm
dma-fence-chain.h35760644editdlrm
dma-fence-unwrap.h22980644editdlrm
dma-fence.h211620644editdlrm
dma-iommu.h30200644editdlrm
dma-map-ops.h108630644editdlrm
dma-mapping.h231700644editdlrm
dma-resv.h172450644editdlrm
dmaengine.h548910644editdlrm
dmapool.h18320644editdlrm
dmar.h87910644editdlrm
dmi.h43750644editdlrm
dnotify.h10470644editdlrm
dns_resolver.h13390644editdlrm
dqblk_qtree.h22380644editdlrm
dqblk_v1.h3270644editdlrm
dqblk_v2.h4060644editdlrm
drbd.h109230644editdlrm
drbd_genl.h220100644editdlrm
drbd_genl_api.h18080644editdlrm
drbd_limits.h80030644editdlrm
ds2782_battery.h1580644editdlrm
dtlk.h35840644editdlrm
dw_apb_timer.h17430644editdlrm
dynamic_debug.h58310644editdlrm
dynamic_queue_limits.h38120644editdlrm
earlycpio.h3590644editdlrm
ecryptfs.h39150644editdlrm
edac.h207180644editdlrm
edd.h14690644editdlrm
edma.h8070644editdlrm
eeprom_93cx6.h30080644editdlrm
eeprom_93xx46.h7760644editdlrm
efi-bgrt.h6440644editdlrm
efi.h628130644editdlrm
efs_vh.h15850644editdlrm
eisa.h30310644editdlrm
elevator.h60590644editdlrm
elf-fdpic.h22370644editdlrm
elf-randomize.h5830644editdlrm
elf.h15650644editdlrm
elfcore-compat.h12670644editdlrm
elfcore.h21600644editdlrm
elfnote.h36250644editdlrm
enclosure.h47110644editdlrm
energy_model.h59940644editdlrm
err.h15830644editdlrm
errname.h2830644editdlrm
errno.h14240644editdlrm
error-injection.h6070644editdlrm
errqueue.h5240644editdlrm
errseq.h3820644editdlrm
etherdevice.h169170644editdlrm
ethtool.h355800644editdlrm
ethtool_netlink.h19200644editdlrm
eventfd.h21670644editdlrm
eventpoll.h24570644editdlrm
evm.h29850644editdlrm
export.h36970644editdlrm
exportfs.h76920644editdlrm
ext2_fs.h9670644editdlrm
extable.h13090644editdlrm
extcon-provider.h44310644editdlrm
extcon.h102700644editdlrm
f2fs_fs.h185260644editdlrm
f75375s.h5410644editdlrm
falloc.h17190644editdlrm
fanotify.h23360644editdlrm
fault-inject.h19750644editdlrm
fb.h287120644editdlrm
fbcon.h21360644editdlrm
fcdevice.h9880644editdlrm
fcntl.h18080644editdlrm
fd.h4900644editdlrm
fddidevice.h10440644editdlrm
fdtable.h36160644editdlrm
fec.h6090644editdlrm
file.h31470644editdlrm
filter.h427810644editdlrm
fips.h1670644editdlrm
firewire.h138680644editdlrm
firmware-map.h13510644editdlrm
firmware.h58740644editdlrm
fixp-arith.h45160644editdlrm
flat.h16530644editdlrm
flex_array.h44120644editdlrm
flex_proportions.h28810644editdlrm
fmc-sdb.h13190644editdlrm
fmc.h98770644editdlrm
font.h15980644editdlrm
fortify-string.h165500644editdlrm
freezer.h92570644editdlrm
frontswap.h31210644editdlrm
fs.h1177400644editdlrm
fscache-cache.h192540644editdlrm
fscache.h295770644editdlrm
fscrypt.h94410644editdlrm
fscrypt_notsupp.h50770644editdlrm
fscrypt_supp.h74210644editdlrm
fsi.h24240644editdlrm
fsl-diu-fb.h41790644editdlrm
fsldma.h3980644editdlrm
fsl_devices.h44300644editdlrm
fsl_hypervisor.h28240644editdlrm
fsl_ifc.h256580644editdlrm
fsnotify.h77960644editdlrm
fsnotify_backend.h205950644editdlrm
fs_context.h90970644editdlrm
fs_enet_pd.h34570644editdlrm
fs_parser.h47500644editdlrm
fs_pin.h6190644editdlrm
fs_stack.h8110644editdlrm
fs_struct.h17510644editdlrm
fs_uart_pd.h15230644editdlrm
ftrace.h336190644editdlrm
ftrace_irq.h11630644editdlrm
futex.h24970644editdlrm
fwnode.h75790644editdlrm
gameport.h56950644editdlrm
gcd.h1930644editdlrm
genalloc.h79500644editdlrm
generic-radix-tree.h66710644editdlrm
genetlink.h13790644editdlrm
genhd.h160760644editdlrm
genl_magic_func.h118690644editdlrm
genl_magic_struct.h78050644editdlrm
getcpu.h6410644editdlrm
gfp.h242080644editdlrm
glob.h2560644editdlrm
goldfish.h6050644editdlrm
gpio-pxa.h5710644editdlrm
gpio.h54780644editdlrm
gpio_keys.h17820644editdlrm
hardirq.h32640644editdlrm
hash.h29980644editdlrm
hashtable.h68050644editdlrm
hdlc.h34130644editdlrm
hdlcdrv.h64700644editdlrm
hdmi.h128510644editdlrm
hid-debug.h14580644editdlrm
hid-roccat.h4840644editdlrm
hid-sensor-hub.h91900644editdlrm
hid-sensor-ids.h76170644editdlrm
hid.h383390644editdlrm
hidden.h9660644editdlrm
hiddev.h14580644editdlrm
hidraw.h11460644editdlrm
highmem-internal.h49520644editdlrm
highmem.h82350644editdlrm
highuid.h31940644editdlrm
hil.h188570644editdlrm
hil_mlc.h52490644editdlrm
hippidevice.h12630644editdlrm
hmm.h46560644editdlrm
host1x.h86180644editdlrm
hpet.h26150644editdlrm
hp_sdc.h143520644editdlrm
hrtimer.h166510644editdlrm
hrtimer_defs.h6600644editdlrm
htcpld.h6170644editdlrm
hugetlb.h274960644editdlrm
hugetlb_cgroup.h70560644editdlrm
hugetlb_inline.h3740644editdlrm
huge_mm.h157430644editdlrm
hwmon-sysfs.h20240644editdlrm
hwmon-vid.h15180644editdlrm
hwmon.h140840644editdlrm
hwspinlock.h130440644editdlrm
hw_breakpoint.h44050644editdlrm
hw_random.h23770644editdlrm
hyperv.h500100644editdlrm
hypervisor.h7480644editdlrm
i2c-algo-bit.h23220644editdlrm
i2c-algo-pca.h25990644editdlrm
i2c-algo-pcf.h19260644editdlrm
i2c-dev.h3710644editdlrm
i2c-mux.h16680644editdlrm
i2c-pxa.h4380644editdlrm
i2c-smbus.h19910644editdlrm
i2c.h378740644editdlrm
i8042.h21910644editdlrm
i8253.h8090644editdlrm
icmp.h10850644editdlrm
icmpv6.h17320644editdlrm
ide.h474030644editdlrm
idr.h97150644editdlrm
ieee80211.h1530580644editdlrm
ieee802154.h117800644editdlrm
if_arp.h19000644editdlrm
if_bridge.h53800644editdlrm
if_eql.h11000644editdlrm
if_ether.h15060644editdlrm
if_fddi.h35260644editdlrm
if_frad.h29370644editdlrm
if_link.h5920644editdlrm
if_ltalk.h1880644editdlrm
if_macvlan.h27570644editdlrm
if_phonet.h3190644editdlrm
if_pppol2tp.h7270644editdlrm
if_pppox.h29790644editdlrm
if_tap.h22880644editdlrm
if_team.h82970644editdlrm
if_tun.h20500644editdlrm
if_tunnel.h4090644editdlrm
if_vlan.h211240644editdlrm
igmp.h47530644editdlrm
ihex.h20010644editdlrm
ima.h34960644editdlrm
imx-media.h8110644editdlrm
in.h25920644editdlrm
in6.h18930644editdlrm
indirect_call_wrapper.h21910644editdlrm
inet.h29180644editdlrm
inetdevice.h86580644editdlrm
inet_diag.h26060644editdlrm
init.h97780644editdlrm
initrd.h7890644editdlrm
init_ohci1394_dma.h1960644editdlrm
init_task.h14070644editdlrm
inotify.h7130644editdlrm
input-polldev.h20740644editdlrm
input.h190020644editdlrm
instrumented.h28680644editdlrm
integrity.h10740644editdlrm
intel-iommu.h320630644editdlrm
intel-ish-client-if.h40910644editdlrm
intel-pti.h16000644editdlrm
intel_rapl.h42650644editdlrm
intel_th.h25010644editdlrm
interrupt.h247770644editdlrm
interval_tree.h8310644editdlrm
interval_tree_generic.h75130644editdlrm
io-64-nonatomic-hi-lo.h24560644editdlrm
io-64-nonatomic-lo-hi.h24560644editdlrm
io-mapping.h52220644editdlrm
io-pgtable.h84980644editdlrm
io.h62010644editdlrm
ioasid.h21740644editdlrm
ioc3.h32140644editdlrm
ioc4.h59200644editdlrm
iocontext.h48780644editdlrm
iomap.h138930644editdlrm
iommu-helper.h11460644editdlrm
iommu.h370000644editdlrm
iopoll.h81750644editdlrm
ioport.h126860644editdlrm
ioprio.h24640644editdlrm
iosys-map.h153110644editdlrm
iova.h42650644editdlrm
ip.h12350644editdlrm
ipack.h90620644editdlrm
ipc.h6130644editdlrm
ipc_namespace.h46820644editdlrm
ipmi-fru.h36940644editdlrm
ipmi.h116330644editdlrm
ipmi_smi.h110220644editdlrm
ipv6.h92830644editdlrm
ipv6_route.h5940644editdlrm
irq.h417830644editdlrm
irqbypass.h36810644editdlrm
irqchip.h15970644editdlrm
irqdesc.h84600644editdlrm
irqdomain.h206450644editdlrm
irqflags.h81050644editdlrm
irqhandler.h3620644editdlrm
irqnr.h8560644editdlrm
irqreturn.h5030644editdlrm
irq_cpustat.h8450644editdlrm
irq_poll.h5750644editdlrm
irq_sim.h9710644editdlrm
irq_work.h19240644editdlrm
isa.h21660644editdlrm
isapnp.h38960644editdlrm
iscsi_boot_sysfs.h41850644editdlrm
iscsi_ibft.h13060644editdlrm
isdn.h235450644editdlrm
isdnif.h197230644editdlrm
isdn_divertif.h13010644editdlrm
isdn_ppp.h67970644editdlrm
isicom.h15280644editdlrm
ism.h22730644editdlrm
iversion.h126700644editdlrm
jbd2.h479710644editdlrm
jhash.h47350644editdlrm
jiffies.h163400644editdlrm
journal-head.h29340644editdlrm
joystick.h4370644editdlrm
jump_label.h153760644editdlrm
jump_label_ratelimit.h28670644editdlrm
jz4740-adc.h10230644editdlrm
jz4780-nemc.h11850644editdlrm
kallsyms.h43350644editdlrm
kasan-checks.h14950644editdlrm
kasan.h126780644editdlrm
kbd_diacr.h1980644editdlrm
kbd_kern.h39310644editdlrm
kbuild.h3800644editdlrm
kconfig.h24810644editdlrm
kcore.h8910644editdlrm
kcov.h24630644editdlrm
kcsan-checks.h88590644editdlrm
kcsan.h19480644editdlrm
kdb.h74780644editdlrm
kdebug.h4870644editdlrm
kdev_t.h17440644editdlrm
kernel-page-flags.h5050644editdlrm
kernel.h207590644editdlrm
kernelcapi.h45520644editdlrm
kernel_stat.h30310644editdlrm
kernfs.h193360644editdlrm
kern_levels.h16110644editdlrm
kexec.h108960644editdlrm
key-type.h65830644editdlrm
key.h131490644editdlrm
keyboard.h6650644editdlrm
kfifo.h254310644editdlrm
kgdb.h115690644editdlrm
khugepaged.h28320644editdlrm
klist.h19260644editdlrm
kmemleak.h39540644editdlrm
kmod.h17520644editdlrm
kmsg_dump.h26270644editdlrm
kobject.h77270644editdlrm
kobject_ns.h19340644editdlrm
kobj_map.h5450644editdlrm
kprobes.h132220644editdlrm
kref.h33610644editdlrm
ks0108.h9600644editdlrm
ks8842.h12230644editdlrm
ks8851_mll.h10630644editdlrm
ksm.h27530644editdlrm
kstrtox.h67510644editdlrm
kthread.h79240644editdlrm
ktime.h66070644editdlrm
kvm_dirty_ring.h26330644editdlrm
kvm_host.h655830644editdlrm
kvm_irqfd.h24580644editdlrm
kvm_para.h4020644editdlrm
kvm_types.h32640644editdlrm
l2tp.h2610644editdlrm
lapb.h17520644editdlrm
latencytop.h12070644editdlrm
lcd.h38670644editdlrm
lcm.h2750644editdlrm
led-class-flash.h56190644editdlrm
led-lm3530.h37930644editdlrm
leds-bd2802.h6420644editdlrm
leds-lp3944.h10990644editdlrm
leds-lp3952.h25590644editdlrm
leds-pca9532.h10310644editdlrm
leds-regulator.h13170644editdlrm
leds-tca6507.h10420644editdlrm
leds.h156230644editdlrm
leds_pwm.h4070644editdlrm
libata.h685400644editdlrm
libfdt.h2020644editdlrm
libfdt_env.h4910644editdlrm
libgcc.h10990644editdlrm
libnvdimm.h98730644editdlrm
libps2.h20770644editdlrm
license.h3740644editdlrm
lightnvm.h119800644editdlrm
limits.h7150644editdlrm
linear_range.h16450644editdlrm
linkage.h93310644editdlrm
linkmode.h25590644editdlrm
linux_logo.h19560644editdlrm
lis3lv02d.h51250644editdlrm
list.h321050644editdlrm
list_bl.h49050644editdlrm
list_lru.h81930644editdlrm
list_nulls.h43220644editdlrm
list_sort.h3070644editdlrm
livepatch.h91090644editdlrm
llc.h7490644editdlrm
llist.h93680644editdlrm
local_lock.h13620644editdlrm
local_lock_internal.h34990644editdlrm
lockdep.h215850644editdlrm
lockdep_types.h53080644editdlrm
lockref.h14400644editdlrm
log2.h65420644editdlrm
logic_pio.h32570644editdlrm
lp.h28270644editdlrm
lru_cache.h127220644editdlrm
lsm_audit.h27850644editdlrm
lsm_hooks.h707950644editdlrm
lsm_hook_defs.h201670644editdlrm
lz4.h270720644editdlrm
lzo.h14040644editdlrm
mailbox_client.h18370644editdlrm
mailbox_controller.h55020644editdlrm
maple.h27750644editdlrm
marvell_phy.h16910644editdlrm
math.h51850644editdlrm
math64.h76620644editdlrm
max17040_battery.h4740644editdlrm
mbcache.h22080644editdlrm
mbus.h31680644editdlrm
mc6821.h12090644editdlrm
mc146818rtc.h45670644editdlrm
mcb.h39750644editdlrm
mdev.h58590644editdlrm
mdio-bitbang.h11490644editdlrm
mdio-gpio.h1770644editdlrm
mdio-mux.h10210644editdlrm
mdio.h137300644editdlrm
mei_aux.h9290644editdlrm
mei_cl_bus.h41960644editdlrm
memblock.h210090644editdlrm
memcontrol.h462430644editdlrm
memfd.h3650644editdlrm
memory.h40800644editdlrm
memory_hotplug.h109810644editdlrm
mempolicy.h80840644editdlrm
mempool.h34300644editdlrm
memregion.h4170644editdlrm
memremap.h78180644editdlrm
memstick.h99820644editdlrm
mem_encrypt.h9260644editdlrm
mhi.h269080644editdlrm
mhi_ep.h98660644editdlrm
micrel_phy.h15220644editdlrm
microchipphy.h33100644editdlrm
mic_bus.h32720644editdlrm
migrate.h62780644editdlrm
migrate_mode.h7580644editdlrm
mii.h162830644editdlrm
mii_timestamper.h36530644editdlrm
minmax.h63730644editdlrm
min_heap.h33770644editdlrm
miscdevice.h28640644editdlrm
misc_cgroup.h30070644editdlrm
mISDNdsp.h12170644editdlrm
mISDNhw.h59210644editdlrm
mISDNif.h152760644editdlrm
mm-arch-hooks.h6790644editdlrm
mm.h1015570644editdlrm
mman.h33570644editdlrm
mmap_lock.h20860644editdlrm
mmdebug.h23790644editdlrm
mmiotrace.h31220644editdlrm
mmu_context.h4650644editdlrm
mmu_notifier.h284620644editdlrm
mmzone.h516150644editdlrm
mm_inline.h30590644editdlrm
mm_types.h268440644editdlrm
mm_types_task.h24570644editdlrm
mnt_namespace.h5470644editdlrm
module.h236590644editdlrm
moduleloader.h31700644editdlrm
moduleparam.h202750644editdlrm
module_signature.h12500644editdlrm
mod_devicetable.h225130644editdlrm
mount.h37080644editdlrm
mpage.h7370644editdlrm
mpi.h33810644editdlrm
mpls.h3940644editdlrm
mpls_iptunnel.h1780644editdlrm
mroute.h19980644editdlrm
mroute6.h24490644editdlrm
mroute_base.h124330644editdlrm
msdos_fs.h2730644editdlrm
msdos_partition.h16550644editdlrm
msg.h3950644editdlrm
msi.h156650644editdlrm
mutex.h78370644editdlrm
mv643xx.h536570644editdlrm
mv643xx_eth.h20010644editdlrm
mv643xx_i2c.h5450644editdlrm
mvebu-pmsu.h5200644editdlrm
mxm-wmi.h10780644editdlrm
namei.h39460644editdlrm
nd.h76010644editdlrm
net.h124050644editdlrm
netdevice.h1695260644editdlrm
netdev_features.h105190644editdlrm
netfilter.h126770644editdlrm
netfilter_bridge.h19770644editdlrm
netfilter_defs.h4860644editdlrm
netfilter_ingress.h14720644editdlrm
netfilter_ipv4.h10770644editdlrm
netfilter_ipv6.h36980644editdlrm
netlink.h91700644editdlrm
netpoll.h26010644editdlrm
nfs.h11450644editdlrm
nfs3.h2600644editdlrm
nfs4.h195270644editdlrm
nfsacl.h14350644editdlrm
nfs_fs.h185780644editdlrm
nfs_fs_i.h3080644editdlrm
nfs_fs_sb.h105370644editdlrm
nfs_iostat.h42850644editdlrm
nfs_page.h69910644editdlrm
nfs_xdr.h425020644editdlrm
nitro_enclaves.h2670644editdlrm
nl802154.h43360644editdlrm
nls.h31620644editdlrm
nmi.h67580644editdlrm
node.h43990644editdlrm
nodemask.h174400644editdlrm
nospec.h21870644editdlrm
notifier.h84180644editdlrm
nsc_gpio.h14590644editdlrm
nsproxy.h26760644editdlrm
ns_common.h3010644editdlrm
ntb.h536910644editdlrm
ntb_transport.h38920644editdlrm
nubus.h56740644editdlrm
numa.h10040644editdlrm
nvme-fc-driver.h472160644editdlrm
nvme-fc.h99550644editdlrm
nvme-rdma.h25350644editdlrm
nvme-tcp.h45380644editdlrm
nvme.h391280644editdlrm
nvmem-consumer.h44540644editdlrm
nvmem-provider.h32670644editdlrm
nvram.h4950644editdlrm
n_r3964.h41550644editdlrm
objagg.h19830644editdlrm
objtool.h11550644editdlrm
of.h433070644editdlrm
of_address.h46030644editdlrm
of_clk.h7530644editdlrm
of_device.h32270644editdlrm
of_dma.h23530644editdlrm
of_fdt.h41880644editdlrm
of_gpio.h40530644editdlrm
of_graph.h36360644editdlrm
of_iommu.h5050644editdlrm
of_irq.h36910644editdlrm
of_mdio.h32130644editdlrm
of_net.h8870644editdlrm
of_pci.h9150644editdlrm
of_pdt.h12220644editdlrm
of_platform.h39740644editdlrm
of_reserved_mem.h24030644editdlrm
oid_registry.h39660644editdlrm
olpc-ec.h11040644editdlrm
omap-dma.h107540644editdlrm
omap-dmaengine.h5830644editdlrm
omap-gpmc.h30110644editdlrm
omap-iommu.h6850644editdlrm
omap-mailbox.h7770644editdlrm
omapfb.h12460644editdlrm
once.h18800644editdlrm
oom.h33410644editdlrm
openvswitch.h10190644editdlrm
oprofile.h62460644editdlrm
osq_lock.h10660644editdlrm
overflow.h122690644editdlrm
padata.h74310644editdlrm
page-flags-layout.h35010644editdlrm
page-flags.h281560644editdlrm
page-isolation.h21240644editdlrm
pageblock-flags.h33570644editdlrm
pagemap.h246490644editdlrm
pagevec.h23830644editdlrm
pagewalk.h41670644editdlrm
page_counter.h34470644editdlrm
page_ext.h17220644editdlrm
page_idle.h26830644editdlrm
page_owner.h23610644editdlrm
page_ref.h53610644editdlrm
page_reporting.h8340644editdlrm
parman.h29340644editdlrm
parport.h182730644editdlrm
parport_pc.h67130644editdlrm
parser.h11410644editdlrm
pata_arasan_cf_data.h12500644editdlrm
patchkey.h7570644editdlrm
path.h5720644editdlrm
pch_dma.h9990644editdlrm
pci-acpi.h42800644editdlrm
pci-ats.h18020644editdlrm
pci-dma-compat.h37500644editdlrm
pci-ecam.h33580644editdlrm
pci-ep-cfs.h9570644editdlrm
pci-epc.h73360644editdlrm
pci-epf.h48680644editdlrm
pci-p2pdma.h40490644editdlrm
pci.h917980644editdlrm
pci_hotplug.h47520644editdlrm
pci_ids.h1282480644editdlrm
pda_power.h11510644editdlrm
pe.h162040644editdlrm
percpu-defs.h186090644editdlrm
percpu-refcount.h111690644editdlrm
percpu-rwsem.h45730644editdlrm
percpu.h48490644editdlrm
percpu_counter.h43720644editdlrm
perf_event.h507870644editdlrm
perf_regs.h10760644editdlrm
personality.h3930644editdlrm
pfn.h6660644editdlrm
pfn_t.h33100644editdlrm
phonet.h11460644editdlrm
phy.h563860644editdlrm
phylink.h237070644editdlrm
phy_fixed.h18140644editdlrm
phy_led_triggers.h14910644editdlrm
pid.h60590644editdlrm
pid_namespace.h23860644editdlrm
pim.h27370644editdlrm
pipe_fs_i.h64710644editdlrm
pkeys.h9610644editdlrm
pktcdvd.h60110644editdlrm
pl320-ipc.h7580644editdlrm
platform_device.h141600644editdlrm
platform_profile.h11550644editdlrm
pldmfw.h48790644editdlrm
plist.h88940644editdlrm
pm-trace.h9400644editdlrm
pm.h374800644editdlrm
pm2301_charger.h17230644editdlrm
pmbus.h16210644editdlrm
pmu.h23920644editdlrm
pm_clock.h26380644editdlrm
pm_domain.h132930644editdlrm
pm_opp.h115360644editdlrm
pm_qos.h106620644editdlrm
pm_runtime.h103290644editdlrm
pm_wakeirq.h15180644editdlrm
pm_wakeup.h73540644editdlrm
pnfs_osd_xdr.h94900644editdlrm
pnp.h157650644editdlrm
poison.h26510644editdlrm
poll.h41090644editdlrm
posix-clock.h46600644editdlrm
posix-timers.h64600644editdlrm
posix_acl.h31670644editdlrm
posix_acl_xattr.h16210644editdlrm
powercap.h128890644editdlrm
power_supply.h150250644editdlrm
ppp-comp.h31720644editdlrm
ppp_channel.h31460644editdlrm
ppp_defs.h8120644editdlrm
pps-gpio.h10330644editdlrm
pps_kernel.h36200644editdlrm
pr.h5660644editdlrm
prandom.h38860644editdlrm
preempt.h122320644editdlrm
prefetch.h17400644editdlrm
prime_numbers.h13840644editdlrm
printk.h169080644editdlrm
prmt.h1430644editdlrm
processor.h18890644editdlrm
proc_fs.h61380644editdlrm
proc_ns.h28970644editdlrm
profile.h27430644editdlrm
projid.h22690644editdlrm
property.h174100644editdlrm
psci.h19510644editdlrm
pseudo_fs.h3550644editdlrm
psi.h17060644editdlrm
psi_types.h39940644editdlrm
psp-platform-access.h17220644editdlrm
psp-sev.h189210644editdlrm
psp-tee.h23160644editdlrm
psp.h6970644editdlrm
pstore.h77640644editdlrm
pstore_ram.h29800644editdlrm
pti.h1980644editdlrm
ptp_classify.h50070644editdlrm
ptp_clock_kernel.h124310644editdlrm
ptrace.h152100644editdlrm
ptr_ring.h168900644editdlrm
purgatory.h5890644editdlrm
pvclock_gtod.h5480644editdlrm
pwm.h173410644editdlrm
pwm_backlight.h8020644editdlrm
pxa2xx_ssp.h104700644editdlrm
pxa168_eth.h7280644editdlrm
qcom-geni-se.h124710644editdlrm
qcom_scm.h43810644editdlrm
qnx6_fs.h33490644editdlrm
quicklist.h21860644editdlrm
quota.h192310644editdlrm
quotaops.h105530644editdlrm
radix-tree.h179780644editdlrm
raid_class.h21490644editdlrm
ramfs.h6950644editdlrm
random.h38550644editdlrm
range.h7750644editdlrm
ras.h12110644editdlrm
ratelimit.h17610644editdlrm
ratelimit_types.h11700644editdlrm
rational.h6390644editdlrm
rbtree.h97890644editdlrm
rbtree_augmented.h104850644editdlrm
rbtree_latch.h68150644editdlrm
rbtree_types.h9460644editdlrm
rculist.h284440644editdlrm
rculist_bl.h33740644editdlrm
rculist_nulls.h55130644editdlrm
rcupdate.h385480644editdlrm
rcupdate_trace.h28820644editdlrm
rcupdate_wait.h17690644editdlrm
rcutiny.h42320644editdlrm
rcutree.h30770644editdlrm
rcuwait.h19000644editdlrm
rcu_node_tree.h44680644editdlrm
rcu_segcblist.h112920644editdlrm
rcu_sync.h23120644editdlrm
reboot-mode.h6000644editdlrm
reboot.h20980644editdlrm
reciprocal_div.h33560644editdlrm
refcount.h27990644editdlrm
regmap.h544470644editdlrm
regset.h155270644editdlrm
relay.h89080644editdlrm
remoteproc.h200780644editdlrm
resctrl.h88910644editdlrm
reservation.h92260644editdlrm
reset-controller.h30670644editdlrm
reset.h137390644editdlrm
resource.h3390644editdlrm
resource_ext.h25420644editdlrm
restart_block.h11140644editdlrm
rfkill.h110400644editdlrm
rhashtable-types.h37420644editdlrm
rhashtable.h352780644editdlrm
rh_flags.h9050644editdlrm
rh_kabi.h226330644editdlrm
rh_kabi_attributes.h5010644editdlrm
rh_kabi_aux.h9170644editdlrm
rh_kabi_memcg.h37600644editdlrm
rh_tasklist_lock.h9590644editdlrm
rh_waived.h4410644editdlrm
ring_buffer.h73710644editdlrm
rio.h196870644editdlrm
rio_drv.h150610644editdlrm
rio_ids.h13170644editdlrm
rio_regs.h197370644editdlrm
rmap.h110370644editdlrm
rmi.h124790644editdlrm
rndis.h172690644editdlrm
rodata_test.h5590644editdlrm
root_dev.h6190644editdlrm
rpmsg.h71170644editdlrm
rslib.h37540644editdlrm
rtc.h94270644editdlrm
rtmutex.h31470644editdlrm
rtnetlink.h46040644editdlrm
rtsx_common.h14750644editdlrm
rtsx_pci.h411350644editdlrm
rtsx_usb.h163340644editdlrm
rwbase_rt.h8760644editdlrm
rwlock.h40540644editdlrm
rwlock_api_smp.h77360644editdlrm
rwlock_rt.h30530644editdlrm
rwlock_types.h18140644editdlrm
rwsem.h74050644editdlrm
s3c_adc_battery.h9710644editdlrm
sa11x0-dma.h5720644editdlrm
sbitmap.h202030644editdlrm
scatterlist.h180030644editdlrm
scc.h29050644editdlrm
sched.h644870644editdlrm
sched_clock.h16170644editdlrm
scif.h602800644editdlrm
scmi_protocol.h92840644editdlrm
scpi_protocol.h26420644editdlrm
screen_info.h1910644editdlrm
scs.h18280644editdlrm
sctp.h241240644editdlrm
scx200.h18630644editdlrm
scx200_gpio.h24380644editdlrm
sdb.h42700644editdlrm
sdla.h70660644editdlrm
seccomp.h29720644editdlrm
securebits.h2390644editdlrm
security.h515320644editdlrm
sed-opal.h19850644editdlrm
seg6.h1210644editdlrm
seg6_genl.h1360644editdlrm
seg6_hmac.h1360644editdlrm
seg6_iptunnel.h1480644editdlrm
seg6_local.h1000644editdlrm
selection.h15950644editdlrm
sem.h5990644editdlrm
semaphore.h14000644editdlrm
seqlock.h392440644editdlrm
seqno-fence.h40500644editdlrm
seq_buf.h34050644editdlrm
seq_file.h82910644editdlrm
seq_file_net.h7300644editdlrm
serdev.h101010644editdlrm
serial.h6300644editdlrm
serial_8250.h65810644editdlrm
serial_bcm63xx.h48430644editdlrm
serial_core.h180580644editdlrm
serial_max3100.h14230644editdlrm
serial_pnx8xxx.h26700644editdlrm
serial_s3c.h87840644editdlrm
serial_sci.h16110644editdlrm
serio.h45280644editdlrm
set_memory.h14970644editdlrm
sfi.h58900644editdlrm
sfi_acpi.h34720644editdlrm
sfp.h162160644editdlrm
shdma-base.h45200644editdlrm
shm.h9680644editdlrm
shmem_fs.h57790644editdlrm
shrinker.h33650644editdlrm
sh_clk.h60980644editdlrm
sh_dma.h36960644editdlrm
sh_eth.h3690644editdlrm
sh_intc.h35060644editdlrm
sh_timer.h1720644editdlrm
signal.h135130644editdlrm
signalfd.h8170644editdlrm
signal_types.h12410644editdlrm
siox.h20750644editdlrm
siphash.h47380644editdlrm
sirfsoc_dma.h1620644editdlrm
sizes.h14510644editdlrm
skbuff.h1388220644editdlrm
skb_array.h55120644editdlrm
skmsg.h135570644editdlrm
slab.h250990644editdlrm
slab_def.h30090644editdlrm
slimbus.h54100644editdlrm
slub_def.h65880644editdlrm
sm501-regs.h120460644editdlrm
sm501.h47430644editdlrm
smc91x.h16040644editdlrm
smc911x.h2940644editdlrm
smp.h70850644editdlrm
smpboot.h22150644editdlrm
smp_types.h13400644editdlrm
smsc911x.h23400644editdlrm
smscphy.h12830644editdlrm
socket.h144270644editdlrm
sockptr.h22790644editdlrm
sock_diag.h23700644editdlrm
sonet.h4690644editdlrm
sony-laptop.h14410644editdlrm
sonypi.h24100644editdlrm
sort.h2470644editdlrm
sound.h6850644editdlrm
soundcard.h16310644editdlrm
spinlock.h159330644editdlrm
spinlock_api_smp.h53460644editdlrm
spinlock_api_up.h33940644editdlrm
spinlock_rt.h42090644editdlrm
spinlock_types.h18260644editdlrm
spinlock_types_raw.h17260644editdlrm
spinlock_types_up.h7260644editdlrm
spinlock_up.h21260644editdlrm
splice.h29810644editdlrm
spmi.h60940644editdlrm
sram.h8440644editdlrm
srcu.h78580644editdlrm
srcutiny.h34110644editdlrm
srcutree.h54370644editdlrm
ssbi.h11400644editdlrm
stackdepot.h13090644editdlrm
stackprotector.h3610644editdlrm
stacktrace.h43010644editdlrm
start_kernel.h3340644editdlrm
stat.h12120644editdlrm
statfs.h13460644editdlrm
static_call.h70340644editdlrm
static_call_types.h5350644editdlrm
static_key.h300644editdlrm
stddef.h32750644editdlrm
stm.h44530644editdlrm
stmmac.h76070644editdlrm
stmp3xxx_rtc_wdt.h3320644editdlrm
stmp_device.h6190644editdlrm
stop_machine.h48420644editdlrm
string.h99090644editdlrm
stringhash.h27150644editdlrm
stringify.h3410644editdlrm
string_helpers.h30820644editdlrm
sudmac.h12690644editdlrm
sungem_phy.h40310644editdlrm
sunserialcore.h11020644editdlrm
sunxi-rsb.h29550644editdlrm
superhyway.h28780644editdlrm
suspend.h214830644editdlrm
svga.h38370644editdlrm
sw842.h3280644editdlrm
swab.h5690644editdlrm
swait.h102840644editdlrm
swap.h231090644editdlrm
swapfile.h5560644editdlrm
swapops.h88950644editdlrm
swap_cgroup.h9710644editdlrm
swap_slots.h8410644editdlrm
swiotlb.h54720644editdlrm
switchtec.h115300644editdlrm
sxgbe_platform.h13710644editdlrm
synclink.h9890644editdlrm
sync_core.h5810644editdlrm
sync_file.h16060644editdlrm
sys.h9600644editdlrm
syscalls.h519130644editdlrm
syscore_ops.h6350644editdlrm
sysctl.h77700644editdlrm
sysfs.h180900644editdlrm
syslog.h19310644editdlrm
sysrq.h18960644editdlrm
sysv_fs.h92500644editdlrm
sys_soc.h12630644editdlrm
t10-pi.h15380644editdlrm
taskstats_kern.h9570644editdlrm
task_io_accounting.h11590644editdlrm
task_io_accounting_ops.h26100644editdlrm
task_work.h7180644editdlrm
tboot.h40890644editdlrm
tc.h34890644editdlrm
tca6416_keypad.h8470644editdlrm
tcp.h180920644editdlrm
tee_drv.h166850644editdlrm
textsearch.h48420644editdlrm
textsearch_fsm.h12140644editdlrm
tfrc.h19330644editdlrm
thermal.h199280644editdlrm
thinkpad_acpi.h3200644editdlrm
threads.h13090644editdlrm
thread_info.h48690644editdlrm
thunderbolt.h214350644editdlrm
ti-emif-sram.h51500644editdlrm
tick.h96120644editdlrm
tifm.h49200644editdlrm
timb_dma.h17840644editdlrm
timb_gpio.h13080644editdlrm
time.h39160644editdlrm
time32.h60680644editdlrm
time64.h40550644editdlrm
timecounter.h46930644editdlrm
timekeeper_internal.h54550644editdlrm
timekeeping.h73810644editdlrm
timekeeping32.h20550644editdlrm
timer.h70920644editdlrm
timerfd.h5080644editdlrm
timeriomem-rng.h4750644editdlrm
timerqueue.h14980644editdlrm
timex.h64660644editdlrm
time_namespace.h32170644editdlrm
ti_wilink_st.h144040644editdlrm
tnum.h34670644editdlrm
topology.h62840644editdlrm
torture.h49530644editdlrm
toshiba.h9040644editdlrm
tpm.h113450644editdlrm
tpm_command.h8470644editdlrm
tpm_eventlog.h66860644editdlrm
trace.h13110644editdlrm
tracefs.h12210644editdlrm
tracehook.h72330644editdlrm
tracepoint-defs.h9050644editdlrm
tracepoint.h180030644editdlrm
trace_clock.h6670644editdlrm
trace_events.h210350644editdlrm
trace_seq.h41850644editdlrm
transport_class.h25700644editdlrm
ts-nbus.h5320644editdlrm
tsacct_kern.h12300644editdlrm
tty.h288220644editdlrm
tty_driver.h160170644editdlrm
tty_flip.h15450644editdlrm
tty_ldisc.h79370644editdlrm
typecheck.h7820644editdlrm
types.h56600644editdlrm
u64_stats_sync.h59570644editdlrm
uaccess.h137150644editdlrm
ucb1400.h43670644editdlrm
ucs2_string.h6620644editdlrm
udp.h55520644editdlrm
uidgid.h41710644editdlrm
uio.h97560644editdlrm
uio_driver.h41910644editdlrm
umh.h18370644editdlrm
units.h26850644editdlrm
uprobes.h67830644editdlrm
usb.h817210644editdlrm
usbdevice_fs.h22340644editdlrm
usb_usual.h36710644editdlrm
user-return-notifier.h12050644editdlrm
user.h220644editdlrm
userfaultfd_k.h46510644editdlrm
usermode_driver.h5150644editdlrm
user_namespace.h50840644editdlrm
util_macros.h11970644editdlrm
uts.h3880644editdlrm
utsname.h18280644editdlrm
uuid.h28330644editdlrm
uwb.h258270644editdlrm
vbox_utils.h16750644editdlrm
vdpa.h157560644editdlrm
verification.h19960644editdlrm
vermagic.h11590644editdlrm
vexpress.h14770644editdlrm
vfio.h73320644editdlrm
vfs.h1160644editdlrm
vgaarb.h39720644editdlrm
vga_switcheroo.h88280644editdlrm
vhost_iotlb.h13690644editdlrm
via-core.h74420644editdlrm
via-gpio.h3340644editdlrm
via.h9320644editdlrm
via_i2c.h15160644editdlrm
videodev2.h27690644editdlrm
virtio.h69150644editdlrm
virtio_byteorder.h14910644editdlrm
virtio_caif.h4920644editdlrm
virtio_config.h155170644editdlrm
virtio_console.h19740644editdlrm
virtio_dma_buf.h11470644editdlrm
virtio_net.h49640644editdlrm
virtio_pci_modern.h33790644editdlrm
virtio_ring.h30350644editdlrm
virtio_vsock.h46030644editdlrm
visorbus.h125250644editdlrm
vlynq.h39690644editdlrm
vmacache.h7220644editdlrm
vmalloc.h83670644editdlrm
vme.h57940644editdlrm
vmpressure.h17360644editdlrm
vmstat.h147390644editdlrm
vmw_vmci_api.h29540644editdlrm
vmw_vmci_defs.h309280644editdlrm
vm_event_item.h33850644editdlrm
vringh.h94860644editdlrm
vt.h6110644editdlrm
vtime.h41740644editdlrm
vt_buffer.h15240644editdlrm
vt_kern.h61790644editdlrm
w1-gpio.h6390644editdlrm
w1.h93450644editdlrm
wait.h432920644editdlrm
wait_bit.h115000644editdlrm
wanrouter.h2100644editdlrm
watchdog.h80020644editdlrm
win_minmax.h8320644editdlrm
wireless.h16070644editdlrm
wkup_m3_ipc.h15650644editdlrm
wl12xx.h14220644editdlrm
wm97xx.h108600644editdlrm
wmi.h19890644editdlrm
workqueue.h218560644editdlrm
writeback.h133740644editdlrm
ww_mutex.h130370644editdlrm
xarray.h591010644editdlrm
xattr.h35720644editdlrm
xxhash.h78290644editdlrm
xz.h114310644editdlrm
yam.h28880644editdlrm
z2_battery.h3180644editdlrm
zbud.h7400644editdlrm
zconf.h17700644editdlrm
zlib.h287840644editdlrm
zorro.h40300644editdlrm
zpool.h31020644editdlrm
zsmalloc.h17300644editdlrm
zstd.h498060644editdlrm
zutil.h27930644editdlrm
Edit: /usr/src/kernels/4.18.0-553.121.1.el8_10.x86_64/include/linux/perf_event.h (50787B)
/* * Performance events: * * Copyright (C) 2008-2009, Thomas Gleixner * Copyright (C) 2008-2011, Red Hat, Inc., Ingo Molnar * Copyright (C) 2008-2011, Red Hat, Inc., Peter Zijlstra * * Data type definitions, declarations, prototypes. * * Started by: Thomas Gleixner and Ingo Molnar * * For licencing details see kernel-base/COPYING */ #ifndef _LINUX_PERF_EVENT_H #define _LINUX_PERF_EVENT_H #include #include /* * Kernel-internal data types and definitions: */ #ifdef CONFIG_PERF_EVENTS # include # include #endif #define PERF_GUEST_ACTIVE 0x01 #define PERF_GUEST_USER 0x02 struct perf_guest_info_callbacks { unsigned int (*state)(void); unsigned long (*get_ip)(void); unsigned int (*handle_intel_pt_intr)(void); }; #ifdef CONFIG_HAVE_HW_BREAKPOINT #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include struct perf_callchain_entry { __u64 nr; #ifdef __GENKSYMS__ __u64 ip[0]; /* /proc/sys/kernel/perf_event_max_stack */ #else __u64 ip[]; /* /proc/sys/kernel/perf_event_max_stack */ #endif /* __GENKSYMS__ */ }; struct perf_callchain_entry_ctx { struct perf_callchain_entry *entry; u32 max_stack; u32 nr; short contexts; bool contexts_maxed; }; typedef unsigned long (*perf_copy_f)(void *dst, const void *src, unsigned long off, unsigned long len); struct perf_raw_frag { union { struct perf_raw_frag *next; unsigned long pad; }; perf_copy_f copy; void *data; u32 size; } __packed; struct perf_raw_record { struct perf_raw_frag frag; u32 size; }; /* * branch stack layout: * nr: number of taken branches stored in entries[] * hw_idx: The low level index of raw branch records * for the most recent branch. * -1ULL means invalid/unknown. * * Note that nr can vary from sample to sample * branches (to, from) are stored from most recent * to least recent, i.e., entries[0] contains the most * recent branch. * The entries[] is an abstraction of raw branch records, * which may not be stored in age order in HW, e.g. Intel LBR. * The hw_idx is to expose the low level index of raw * branch record for the most recent branch aka entries[0]. * The hw_idx index is between -1 (unknown) and max depth, * which can be retrieved in /sys/devices/cpu/caps/branches. * For the architectures whose raw branch records are * already stored in age order, the hw_idx should be 0. */ struct perf_branch_stack { __u64 nr; RH_KABI_BROKEN_INSERT(__u64 hw_idx) #ifdef __GENKSYMS__ struct perf_branch_entry entries[0]; #else struct perf_branch_entry entries[]; #endif /* __GENKSYMS__ */ }; struct task_struct; /* * extra PMU register associated with an event */ struct hw_perf_event_extra { u64 config; /* register value */ unsigned int reg; /* register address or index */ int alloc; /* extra register already allocated */ int idx; /* index in shared_regs->regs[] */ }; /** * hw_perf_event::flag values * * PERF_EVENT_FLAG_ARCH bits are reserved for architecture-specific * usage. */ #define PERF_EVENT_FLAG_ARCH 0x0000ffff #define PERF_EVENT_FLAG_USER_READ_CNT 0x80000000 /** * struct hw_perf_event - performance event hardware details: */ struct hw_perf_event { #ifdef CONFIG_PERF_EVENTS union { struct { /* hardware */ u64 config; u64 last_tag; unsigned long config_base; unsigned long event_base; int event_base_rdpmc; int idx; int last_cpu; int flags; struct hw_perf_event_extra extra_reg; struct hw_perf_event_extra branch_reg; }; struct { /* software */ struct hrtimer hrtimer; }; struct { /* tracepoint */ /* for tp_event->class */ struct list_head tp_list; }; struct { /* amd_power */ u64 pwr_acc; u64 ptsc; }; #ifdef CONFIG_HAVE_HW_BREAKPOINT struct { /* breakpoint */ /* * Crufty hack to avoid the chicken and egg * problem hw_breakpoint has with context * creation and event initalization. */ struct arch_hw_breakpoint info; struct list_head bp_list; }; #endif struct { /* amd_iommu */ u8 iommu_bank; u8 iommu_cntr; u16 padding; u64 conf; u64 conf1; }; }; /* * If the event is a per task event, this will point to the task in * question. See the comment in perf_event_alloc(). */ struct task_struct *target; /* * PMU would store hardware filter configuration * here. */ void *addr_filters; /* Last sync'ed generation of filters */ unsigned long addr_filters_gen; /* * hw_perf_event::state flags; used to track the PERF_EF_* state. */ #define PERF_HES_STOPPED 0x01 /* the counter is stopped */ #define PERF_HES_UPTODATE 0x02 /* event->count up-to-date */ #define PERF_HES_ARCH 0x04 int state; /* * The last observed hardware counter value, updated with a * local64_cmpxchg() such that pmu::read() can be called nested. */ local64_t prev_count; /* * The period to start the next sample with. */ u64 sample_period; #ifndef __GENKSYMS__ union { struct { /* Sampling */ /* * The period we started this sample with. */ u64 last_period; /* * However much is left of the current period; * note that this is a full 64bit value and * allows for generation of periods longer * than hardware might allow. */ local64_t period_left; }; struct { /* Topdown events counting for context switch */ u64 saved_metric; u64 saved_slots; }; }; #else /* * The period we started this sample with. */ u64 last_period; /* * However much is left of the current period; note that this is * a full 64bit value and allows for generation of periods longer * than hardware might allow. */ local64_t period_left; #endif /* __GENKSYMS__ */ /* * State for throttling the event, see __perf_event_overflow() and * perf_adjust_freq_unthr_context(). */ u64 interrupts_seq; u64 interrupts; /* * State for freq target events, see __perf_event_overflow() and * perf_adjust_freq_unthr_context(). */ u64 freq_time_stamp; u64 freq_count_stamp; #endif }; struct perf_event; /* * Common implementation detail of pmu::{start,commit,cancel}_txn */ #define PERF_PMU_TXN_ADD 0x1 /* txn to add/schedule event on PMU */ #define PERF_PMU_TXN_READ 0x2 /* txn to read event group from PMU */ /** * pmu::capabilities flags */ #define PERF_PMU_CAP_NO_INTERRUPT 0x0001 #define PERF_PMU_CAP_NO_NMI 0x0002 #define PERF_PMU_CAP_AUX_NO_SG 0x0004 #define PERF_PMU_CAP_EXTENDED_REGS 0x0008 #define PERF_PMU_CAP_EXCLUSIVE 0x0010 #define PERF_PMU_CAP_ITRACE 0x0020 #define PERF_PMU_CAP_HETEROGENEOUS_CPUS 0x0040 #define PERF_PMU_CAP_NO_EXCLUDE 0x0080 #define PERF_PMU_CAP_AUX_OUTPUT 0x0100 #define PERF_PMU_CAP_EXTENDED_HW_TYPE 0x0200 struct perf_output_handle; /** * struct pmu - generic performance monitoring unit */ struct pmu { struct list_head entry; struct module *module; struct device *dev; const struct attribute_group **attr_groups; RH_KABI_BROKEN_INSERT(const struct attribute_group **attr_update) const char *name; int type; /* * various common per-pmu feature flags */ int capabilities; int __percpu *pmu_disable_count; struct perf_cpu_context __percpu *pmu_cpu_context; atomic_t exclusive_cnt; /* < 0: cpu; > 0: tsk */ int task_ctx_nr; int hrtimer_interval_ms; /* number of address filters this PMU can do */ unsigned int nr_addr_filters; /* * Fully disable/enable this PMU, can be used to protect from the PMI * as well as for lazy/batch writing of the MSRs. */ void (*pmu_enable) (struct pmu *pmu); /* optional */ void (*pmu_disable) (struct pmu *pmu); /* optional */ /* * Try and initialize the event for this PMU. * * Returns: * -ENOENT -- @event is not for this PMU * * -ENODEV -- @event is for this PMU but PMU not present * -EBUSY -- @event is for this PMU but PMU temporarily unavailable * -EINVAL -- @event is for this PMU but @event is not valid * -EOPNOTSUPP -- @event is for this PMU, @event is valid, but not supported * -EACCES -- @event is for this PMU, @event is valid, but no privileges * * 0 -- @event is for this PMU and valid * * Other error return values are allowed. */ int (*event_init) (struct perf_event *event); /* * Notification that the event was mapped or unmapped. Called * in the context of the mapping task. */ void (*event_mapped) (struct perf_event *event, struct mm_struct *mm); /* optional */ void (*event_unmapped) (struct perf_event *event, struct mm_struct *mm); /* optional */ /* * Flags for ->add()/->del()/ ->start()/->stop(). There are * matching hw_perf_event::state flags. */ #define PERF_EF_START 0x01 /* start the counter when adding */ #define PERF_EF_RELOAD 0x02 /* reload the counter when starting */ #define PERF_EF_UPDATE 0x04 /* update the counter when stopping */ /* * Adds/Removes a counter to/from the PMU, can be done inside a * transaction, see the ->*_txn() methods. * * The add/del callbacks will reserve all hardware resources required * to service the event, this includes any counter constraint * scheduling etc. * * Called with IRQs disabled and the PMU disabled on the CPU the event * is on. * * ->add() called without PERF_EF_START should result in the same state * as ->add() followed by ->stop(). * * ->del() must always PERF_EF_UPDATE stop an event. If it calls * ->stop() that must deal with already being stopped without * PERF_EF_UPDATE. */ int (*add) (struct perf_event *event, int flags); void (*del) (struct perf_event *event, int flags); /* * Starts/Stops a counter present on the PMU. * * The PMI handler should stop the counter when perf_event_overflow() * returns !0. ->start() will be used to continue. * * Also used to change the sample period. * * Called with IRQs disabled and the PMU disabled on the CPU the event * is on -- will be called from NMI context with the PMU generates * NMIs. * * ->stop() with PERF_EF_UPDATE will read the counter and update * period/count values like ->read() would. * * ->start() with PERF_EF_RELOAD will reprogram the counter * value, must be preceded by a ->stop() with PERF_EF_UPDATE. */ void (*start) (struct perf_event *event, int flags); void (*stop) (struct perf_event *event, int flags); /* * Updates the counter value of the event. * * For sampling capable PMUs this will also update the software period * hw_perf_event::period_left field. */ void (*read) (struct perf_event *event); /* * Group events scheduling is treated as a transaction, add * group events as a whole and perform one schedulability test. * If the test fails, roll back the whole group * * Start the transaction, after this ->add() doesn't need to * do schedulability tests. * * Optional. */ void (*start_txn) (struct pmu *pmu, unsigned int txn_flags); /* * If ->start_txn() disabled the ->add() schedulability test * then ->commit_txn() is required to perform one. On success * the transaction is closed. On error the transaction is kept * open until ->cancel_txn() is called. * * Optional. */ int (*commit_txn) (struct pmu *pmu); /* * Will cancel the transaction, assumes ->del() is called * for each successful ->add() during the transaction. * * Optional. */ void (*cancel_txn) (struct pmu *pmu); /* * Will return the value for perf_event_mmap_page::index for this event, * if no implementation is provided it will default to: event->hw.idx + 1. */ int (*event_idx) (struct perf_event *event); /*optional */ /* * context-switches callback */ void (*sched_task) (struct perf_event_context *ctx, bool sched_in); RH_KABI_BROKEN_REMOVE(size_t task_ctx_size) /* * Kmem cache of PMU specific data */ RH_KABI_BROKEN_INSERT(struct kmem_cache *task_ctx_cache) /* * PMU specific parts of task perf event context (i.e. ctx->task_ctx_data) * can be synchronized using this function. See Intel LBR callstack support * implementation and Perf core context switch handling callbacks for usage * examples. */ RH_KABI_BROKEN_INSERT(void (*swap_task_ctx) (struct perf_event_context *prev, struct perf_event_context *next)) /* optional */ /* * Set up pmu-private data structures for an AUX area */ RH_KABI_REPLACE(void *(*setup_aux) (int cpu, void **pages, int nr_pages, bool overwrite), void *(*setup_aux) (struct perf_event *event, void **pages, int nr_pages, bool overwrite)) /* optional */ /* * Free pmu-private AUX data structures */ void (*free_aux) (void *aux); /* optional */ /* * Take a snapshot of the AUX buffer without touching the event * state, so that preempting ->start()/->stop() callbacks does * not interfere with their logic. Called in PMI context. * * Returns the size of AUX data copied to the output handle. * * Optional. */ RH_KABI_BROKEN_INSERT(long (*snapshot_aux) (struct perf_event *event, struct perf_output_handle *handle, unsigned long size)) /* * Validate address range filters: make sure the HW supports the * requested configuration and number of filters; return 0 if the * supplied filters are valid, -errno otherwise. * * Runs in the context of the ioctl()ing process and is not serialized * with the rest of the PMU callbacks. */ int (*addr_filters_validate) (struct list_head *filters); /* optional */ /* * Synchronize address range filter configuration: * translate hw-agnostic filters into hardware configuration in * event::hw::addr_filters. * * Runs as a part of filter sync sequence that is done in ->start() * callback by calling perf_event_addr_filters_sync(). * * May (and should) traverse event::addr_filters::list, for which its * caller provides necessary serialization. */ void (*addr_filters_sync) (struct perf_event *event); /* optional */ /* * Check if event can be used for aux_output purposes for * events of this PMU. * * Runs from perf_event_open(). Should return 0 for "no match" * or non-zero for "match". */ RH_KABI_BROKEN_INSERT(int (*aux_output_match) (struct perf_event *event)) /* optional */ /* * Filter events for PMU-specific reasons. */ int (*filter_match) (struct perf_event *event); /* optional */ /* * Check period value for PERF_EVENT_IOC_PERIOD ioctl. */ RH_KABI_BROKEN_INSERT(int (*check_period) (struct perf_event *event, u64 value)) /* optional */ }; enum perf_addr_filter_action_t { PERF_ADDR_FILTER_ACTION_STOP = 0, PERF_ADDR_FILTER_ACTION_START, PERF_ADDR_FILTER_ACTION_FILTER, }; /** * struct perf_addr_filter - address range filter definition * @entry: event's filter list linkage * @path: object file's path for file-based filters * @offset: filter range offset * @size: filter range size (size==0 means single address trigger) * @action: filter/start/stop * * This is a hardware-agnostic filter configuration as specified by the user. */ struct perf_addr_filter { struct list_head entry; struct path path; unsigned long offset; unsigned long size; enum perf_addr_filter_action_t action; }; /** * struct perf_addr_filters_head - container for address range filters * @list: list of filters for this event * @lock: spinlock that serializes accesses to the @list and event's * (and its children's) filter generations. * @nr_file_filters: number of file-based filters * * A child event will use parent's @list (and therefore @lock), so they are * bundled together; see perf_event_addr_filters(). */ struct perf_addr_filters_head { struct list_head list; raw_spinlock_t lock; unsigned int nr_file_filters; }; #ifndef __GENKSYMS__ struct perf_addr_filter_range { unsigned long start; unsigned long size; }; #endif /* __GENKSYMS__ */ /** * enum perf_event_state - the states of an event: */ enum perf_event_state { PERF_EVENT_STATE_DEAD = -4, PERF_EVENT_STATE_EXIT = -3, PERF_EVENT_STATE_ERROR = -2, PERF_EVENT_STATE_OFF = -1, PERF_EVENT_STATE_INACTIVE = 0, PERF_EVENT_STATE_ACTIVE = 1, }; struct file; struct perf_sample_data; typedef void (*perf_overflow_handler_t)(struct perf_event *, struct perf_sample_data *, struct pt_regs *regs); /* * Event capabilities. For event_caps and groups caps. * * PERF_EV_CAP_SOFTWARE: Is a software event. * PERF_EV_CAP_READ_ACTIVE_PKG: A CPU event (or cgroup event) that can be read * from any CPU in the package where it is active. * PERF_EV_CAP_SIBLING: An event with this flag must be a group sibling and * cannot be a group leader. If an event with this flag is detached from the * group it is scheduled out and moved into an unrecoverable ERROR state. */ #define PERF_EV_CAP_SOFTWARE BIT(0) #define PERF_EV_CAP_READ_ACTIVE_PKG BIT(1) #define PERF_EV_CAP_SIBLING BIT(2) #define SWEVENT_HLIST_BITS 8 #define SWEVENT_HLIST_SIZE (1 << SWEVENT_HLIST_BITS) struct swevent_hlist { struct hlist_head heads[SWEVENT_HLIST_SIZE]; struct rcu_head rcu_head; }; #define PERF_ATTACH_CONTEXT 0x01 #define PERF_ATTACH_GROUP 0x02 #define PERF_ATTACH_TASK 0x04 #define PERF_ATTACH_TASK_DATA 0x08 #define PERF_ATTACH_ITRACE 0x10 #define PERF_ATTACH_SCHED_CB 0x20 #define PERF_ATTACH_CHILD 0x40 struct perf_cgroup; struct perf_buffer; struct pmu_event_list { raw_spinlock_t lock; struct list_head list; }; #define for_each_sibling_event(sibling, event) \ if ((event)->group_leader == (event)) \ list_for_each_entry((sibling), &(event)->sibling_list, sibling_list) /** * struct perf_event - performance event kernel representation: */ struct perf_event { #ifdef CONFIG_PERF_EVENTS /* * entry onto perf_event_context::event_list; * modifications require ctx->lock * RCU safe iterations. */ struct list_head event_entry; /* * Locked for modification by both ctx->mutex and ctx->lock; holding * either sufficies for read. */ struct list_head sibling_list; struct list_head active_list; /* * Node on the pinned or flexible tree located at the event context; */ struct rb_node group_node; u64 group_index; /* * We need storage to track the entries in perf_pmu_migrate_context; we * cannot use the event_entry because of RCU and we want to keep the * group in tact which avoids us using the other two entries. */ struct list_head migrate_entry; struct hlist_node hlist_entry; struct list_head active_entry; int nr_siblings; /* Not serialized. Only written during event initialization. */ int event_caps; /* The cumulative AND of all event_caps for events in this group. */ int group_caps; RH_KABI_BROKEN_INSERT(unsigned int group_generation) struct perf_event *group_leader; struct pmu *pmu; void *pmu_private; enum perf_event_state state; unsigned int attach_state; local64_t count; atomic64_t child_count; /* * These are the total time in nanoseconds that the event * has been enabled (i.e. eligible to run, and the task has * been scheduled in, if this is a per-task event) * and running (scheduled onto the CPU), respectively. */ u64 total_time_enabled; u64 total_time_running; u64 tstamp; /* * timestamp shadows the actual context timing but it can * be safely used in NMI interrupt context. It reflects the * context time as it was when the event was last scheduled in. * * ctx_time already accounts for ctx->timestamp. Therefore to * compute ctx_time for a sample, simply add perf_clock(). */ u64 shadow_ctx_time; struct perf_event_attr attr; u16 header_size; u16 id_header_size; u16 read_size; struct hw_perf_event hw; struct perf_event_context *ctx; atomic_long_t refcount; /* * These accumulate total time (in nanoseconds) that children * events have been enabled and running, respectively. */ atomic64_t child_total_time_enabled; atomic64_t child_total_time_running; /* * Protect attach/detach and child_list: */ struct mutex child_mutex; struct list_head child_list; struct perf_event *parent; int oncpu; int cpu; struct list_head owner_entry; struct task_struct *owner; /* mmap bits */ struct mutex mmap_mutex; atomic_t mmap_count; RH_KABI_REPLACE(struct ring_buffer *rb, struct perf_buffer *rb) struct list_head rb_entry; unsigned long rcu_batches; int rcu_pending; /* poll related */ wait_queue_head_t waitq; struct fasync_struct *fasync; /* delayed work for NMIs and such */ int pending_wakeup; int pending_kill; int pending_disable; struct irq_work pending; atomic_t event_limit; /* address range filters */ struct perf_addr_filters_head addr_filters; /* vma address array for file-based filders */ RH_KABI_REPLACE(unsigned long *addr_filters_offs, struct perf_addr_filter_range *addr_filter_ranges) unsigned long addr_filters_gen; /* for aux_output events */ RH_KABI_BROKEN_INSERT(struct perf_event *aux_event) void (*destroy)(struct perf_event *); struct rcu_head rcu_head; struct pid_namespace *ns; u64 id; u64 (*clock)(void); perf_overflow_handler_t overflow_handler; void *overflow_handler_context; #ifdef CONFIG_BPF_SYSCALL perf_overflow_handler_t orig_overflow_handler; struct bpf_prog *prog; #endif #ifdef CONFIG_EVENT_TRACING struct trace_event_call *tp_event; struct event_filter *filter; #ifdef CONFIG_FUNCTION_TRACER struct ftrace_ops ftrace_ops; #endif #endif #ifdef CONFIG_CGROUP_PERF struct perf_cgroup *cgrp; /* cgroup event is attach to */ #endif #ifdef CONFIG_SECURITY RH_KABI_BROKEN_INSERT(void *security) #endif struct list_head sb_list; #endif /* CONFIG_PERF_EVENTS */ }; struct perf_event_groups { struct rb_root tree; u64 index; }; /** * struct perf_event_context - event context structure * * Used as a container for task events and CPU events as well: */ struct perf_event_context { struct pmu *pmu; /* * Protect the states of the events in the list, * nr_active, and the list: */ raw_spinlock_t lock; /* * Protect the list of events. Locking either mutex or lock * is sufficient to ensure the list doesn't change; to change * the list you need to lock both the mutex and the spinlock. */ struct mutex mutex; struct list_head active_ctx_list; struct perf_event_groups pinned_groups; struct perf_event_groups flexible_groups; struct list_head event_list; struct list_head pinned_active; struct list_head flexible_active; int nr_events; int nr_active; RH_KABI_BROKEN_INSERT(int nr_user) int is_active; int nr_stat; int nr_freq; int rotate_disable; /* * Set when nr_events != nr_active, except tolerant to events not * necessary to be active due to scheduling constraints, such as cgroups. */ RH_KABI_BROKEN_INSERT(int rotate_necessary) RH_KABI_REPLACE(atomic_t refcount, refcount_t refcount) struct task_struct *task; /* * Context clock, runs when context enabled. */ u64 time; u64 timestamp; /* * These fields let us detect when two contexts have both * been cloned (inherited) from a common ancestor. */ struct perf_event_context *parent_ctx; u64 parent_gen; u64 generation; int pin_count; #ifdef CONFIG_CGROUP_PERF int nr_cgroups; /* cgroup evts */ #endif void *task_ctx_data; /* pmu specific data */ struct rcu_head rcu_head; }; /* * Number of contexts where an event can trigger: * task, softirq, hardirq, nmi. */ #define PERF_NR_CONTEXTS 4 /** * struct perf_event_cpu_context - per cpu event context structure */ struct perf_cpu_context { struct perf_event_context ctx; struct perf_event_context *task_ctx; int active_oncpu; int exclusive; raw_spinlock_t hrtimer_lock; struct hrtimer hrtimer; ktime_t hrtimer_interval; unsigned int hrtimer_active; #ifdef CONFIG_CGROUP_PERF struct perf_cgroup *cgrp; struct list_head cgrp_cpuctx_entry; #endif struct list_head sched_cb_entry; int sched_cb_usage; int online; /* * Per-CPU storage for iterators used in visit_groups_merge. The default * storage is of size 2 to hold the CPU and any CPU event iterators. */ RH_KABI_BROKEN_INSERT_BLOCK( int heap_size; struct perf_event **heap; struct perf_event *heap_default[2]; ) /* RH_KABI_BROKEN_INSERT_BLOCK */ }; struct perf_output_handle { struct perf_event *event; RH_KABI_REPLACE(struct ring_buffer *rb, struct perf_buffer *rb) unsigned long wakeup; unsigned long size; u64 aux_flags; union { void *addr; unsigned long head; }; int page; }; struct bpf_perf_event_data_kern { bpf_user_pt_regs_t *regs; struct perf_sample_data *data; struct perf_event *event; }; #ifdef CONFIG_CGROUP_PERF /* * perf_cgroup_info keeps track of time_enabled for a cgroup. * This is a per-cpu dynamically allocated data structure. */ struct perf_cgroup_info { u64 time; u64 timestamp; }; struct perf_cgroup { struct cgroup_subsys_state css; struct perf_cgroup_info __percpu *info; }; /* * Must ensure cgroup is pinned (css_get) before calling * this function. In other words, we cannot call this function * if there is no cgroup event for the current CPU context. */ static inline struct perf_cgroup * perf_cgroup_from_task(struct task_struct *task, struct perf_event_context *ctx) { return container_of(task_css_check(task, perf_event_cgrp_id, ctx ? lockdep_is_held(&ctx->lock) : true), struct perf_cgroup, css); } #endif /* CONFIG_CGROUP_PERF */ #ifdef CONFIG_PERF_EVENTS extern void *perf_aux_output_begin(struct perf_output_handle *handle, struct perf_event *event); extern void perf_aux_output_end(struct perf_output_handle *handle, unsigned long size); extern int perf_aux_output_skip(struct perf_output_handle *handle, unsigned long size); extern void *perf_get_aux(struct perf_output_handle *handle); extern void perf_aux_output_flag(struct perf_output_handle *handle, u64 flags); extern void perf_event_itrace_started(struct perf_event *event); extern int perf_pmu_register(struct pmu *pmu, const char *name, int type); extern void perf_pmu_unregister(struct pmu *pmu); extern int perf_num_counters(void); extern const char *perf_pmu_name(void); extern void __perf_event_task_sched_in(struct task_struct *prev, struct task_struct *task); extern void __perf_event_task_sched_out(struct task_struct *prev, struct task_struct *next); extern int perf_event_init_task(struct task_struct *child, u64 clone_flags); extern void perf_event_exit_task(struct task_struct *child); extern void perf_event_free_task(struct task_struct *task); extern void perf_event_delayed_put(struct task_struct *task); extern struct file *perf_event_get(unsigned int fd); extern const struct perf_event *perf_get_event(struct file *file); extern const struct perf_event_attr *perf_event_attrs(struct perf_event *event); extern void perf_event_print_debug(void); extern void perf_pmu_disable(struct pmu *pmu); extern void perf_pmu_enable(struct pmu *pmu); extern void perf_sched_cb_dec(struct pmu *pmu); extern void perf_sched_cb_inc(struct pmu *pmu); extern int perf_event_task_disable(void); extern int perf_event_task_enable(void); extern void perf_pmu_resched(struct pmu *pmu); extern int perf_event_refresh(struct perf_event *event, int refresh); extern void perf_event_update_userpage(struct perf_event *event); extern int perf_event_release_kernel(struct perf_event *event); extern struct perf_event * perf_event_create_kernel_counter(struct perf_event_attr *attr, int cpu, struct task_struct *task, perf_overflow_handler_t callback, void *context); extern void perf_pmu_migrate_context(struct pmu *pmu, int src_cpu, int dst_cpu); int perf_event_read_local(struct perf_event *event, u64 *value, u64 *enabled, u64 *running); extern u64 perf_event_read_value(struct perf_event *event, u64 *enabled, u64 *running); struct perf_sample_data { /* * Fields set by perf_sample_data_init(), group so as to * minimize the cachelines touched. */ RH_KABI_BROKEN_INSERT(u64 sample_flags) u64 addr; struct perf_raw_record *raw; struct perf_branch_stack *br_stack; u64 period; RH_KABI_REPLACE(u64 weight, union perf_sample_weight weight) u64 txn; union perf_mem_data_src data_src; /* * The other fields, optionally {set,used} by * perf_{prepare,output}_sample(). */ u64 type; u64 ip; struct { u32 pid; u32 tid; } tid_entry; u64 time; u64 id; u64 stream_id; struct { u32 cpu; u32 reserved; } cpu_entry; struct perf_callchain_entry *callchain; RH_KABI_BROKEN_INSERT(u64 aux_size) struct perf_regs regs_user; RH_KABI_BROKEN_REMOVE(struct pt_regs regs_user_copy) struct perf_regs regs_intr; u64 stack_user_size; u64 phys_addr; RH_KABI_BROKEN_INSERT(u64 cgroup) RH_KABI_BROKEN_INSERT(u64 data_page_size) RH_KABI_BROKEN_INSERT(u64 code_page_size) } ____cacheline_aligned; /* default value for data source */ #define PERF_MEM_NA (PERF_MEM_S(OP, NA) |\ PERF_MEM_S(LVL, NA) |\ PERF_MEM_S(SNOOP, NA) |\ PERF_MEM_S(LOCK, NA) |\ PERF_MEM_S(TLB, NA)) static inline void perf_sample_data_init(struct perf_sample_data *data, u64 addr, u64 period) { /* remaining struct members initialized in perf_prepare_sample() */ data->sample_flags = 0; data->addr = addr; data->raw = NULL; data->br_stack = NULL; data->period = period; data->weight.full = 0; data->data_src.val = PERF_MEM_NA; data->txn = 0; } /* * Clear all bitfields in the perf_branch_entry. * The to and from fields are not cleared because they are * systematically modified by caller. */ static inline void perf_clear_branch_entry_bitfields(struct perf_branch_entry *br) { br->mispred = 0; br->predicted = 0; br->in_tx = 0; br->abort = 0; br->cycles = 0; br->type = 0; br->spec = PERF_BR_SPEC_NA; br->reserved = 0; } extern void perf_output_sample(struct perf_output_handle *handle, struct perf_event_header *header, struct perf_sample_data *data, struct perf_event *event); extern void perf_prepare_sample(struct perf_event_header *header, struct perf_sample_data *data, struct perf_event *event, struct pt_regs *regs); extern int perf_event_overflow(struct perf_event *event, struct perf_sample_data *data, struct pt_regs *regs); extern void perf_event_output_forward(struct perf_event *event, struct perf_sample_data *data, struct pt_regs *regs); extern void perf_event_output_backward(struct perf_event *event, struct perf_sample_data *data, struct pt_regs *regs); extern int perf_event_output(struct perf_event *event, struct perf_sample_data *data, struct pt_regs *regs); static inline bool is_default_overflow_handler(struct perf_event *event) { if (likely(event->overflow_handler == perf_event_output_forward)) return true; if (unlikely(event->overflow_handler == perf_event_output_backward)) return true; return false; } extern void perf_event_header__init_id(struct perf_event_header *header, struct perf_sample_data *data, struct perf_event *event); extern void perf_event__output_id_sample(struct perf_event *event, struct perf_output_handle *handle, struct perf_sample_data *sample); extern void perf_log_lost_samples(struct perf_event *event, u64 lost); static inline bool event_has_any_exclude_flag(struct perf_event *event) { struct perf_event_attr *attr = &event->attr; return attr->exclude_idle || attr->exclude_user || attr->exclude_kernel || attr->exclude_hv || attr->exclude_guest || attr->exclude_host; } static inline bool is_sampling_event(struct perf_event *event) { return event->attr.sample_period != 0; } /* * Return 1 for a software event, 0 for a hardware event */ static inline int is_software_event(struct perf_event *event) { return event->event_caps & PERF_EV_CAP_SOFTWARE; } /* * Return 1 for event in sw context, 0 for event in hw context */ static inline int in_software_context(struct perf_event *event) { return event->ctx->pmu->task_ctx_nr == perf_sw_context; } static inline int is_exclusive_pmu(struct pmu *pmu) { return pmu->capabilities & PERF_PMU_CAP_EXCLUSIVE; } extern struct static_key perf_swevent_enabled[PERF_COUNT_SW_MAX]; extern void ___perf_sw_event(u32, u64, struct pt_regs *, u64); extern void __perf_sw_event(u32, u64, struct pt_regs *, u64); #ifndef perf_arch_fetch_caller_regs static inline void perf_arch_fetch_caller_regs(struct pt_regs *regs, unsigned long ip) { } #endif /* * When generating a perf sample in-line, instead of from an interrupt / * exception, we lack a pt_regs. This is typically used from software events * like: SW_CONTEXT_SWITCHES, SW_MIGRATIONS and the tie-in with tracepoints. * * We typically don't need a full set, but (for x86) do require: * - ip for PERF_SAMPLE_IP * - cs for user_mode() tests * - sp for PERF_SAMPLE_CALLCHAIN * - eflags for MISC bits and CALLCHAIN (see: perf_hw_regs()) * * NOTE: assumes @regs is otherwise already 0 filled; this is important for * things like PERF_SAMPLE_REGS_INTR. */ static inline void perf_fetch_caller_regs(struct pt_regs *regs) { perf_arch_fetch_caller_regs(regs, CALLER_ADDR0); } static __always_inline void perf_sw_event(u32 event_id, u64 nr, struct pt_regs *regs, u64 addr) { if (static_key_false(&perf_swevent_enabled[event_id])) __perf_sw_event(event_id, nr, regs, addr); } DECLARE_PER_CPU(struct pt_regs, __perf_regs[4]); /* * 'Special' version for the scheduler, it hard assumes no recursion, * which is guaranteed by us not actually scheduling inside other swevents * because those disable preemption. */ static __always_inline void __perf_sw_event_sched(u32 event_id, u64 nr, u64 addr) { struct pt_regs *regs = this_cpu_ptr(&__perf_regs[0]); perf_fetch_caller_regs(regs); ___perf_sw_event(event_id, nr, regs, addr); } extern struct static_key_false perf_sched_events; static __always_inline bool __perf_sw_enabled(int swevt) { return static_key_false(&perf_swevent_enabled[swevt]); } static inline void perf_event_task_migrate(struct task_struct *task) { if (__perf_sw_enabled(PERF_COUNT_SW_CPU_MIGRATIONS)) task->sched_migrated = 1; } static inline void perf_event_task_sched_in(struct task_struct *prev, struct task_struct *task) { if (static_branch_unlikely(&perf_sched_events)) __perf_event_task_sched_in(prev, task); if (__perf_sw_enabled(PERF_COUNT_SW_CPU_MIGRATIONS) && task->sched_migrated) { __perf_sw_event_sched(PERF_COUNT_SW_CPU_MIGRATIONS, 1, 0); task->sched_migrated = 0; } } static inline void perf_event_task_sched_out(struct task_struct *prev, struct task_struct *next) { if (__perf_sw_enabled(PERF_COUNT_SW_CONTEXT_SWITCHES)) __perf_sw_event_sched(PERF_COUNT_SW_CONTEXT_SWITCHES, 1, 0); #ifdef CONFIG_CGROUP_PERF if (__perf_sw_enabled(PERF_COUNT_SW_CGROUP_SWITCHES) && perf_cgroup_from_task(prev, NULL) != perf_cgroup_from_task(next, NULL)) __perf_sw_event_sched(PERF_COUNT_SW_CGROUP_SWITCHES, 1, 0); #endif if (static_branch_unlikely(&perf_sched_events)) __perf_event_task_sched_out(prev, next); } extern void perf_event_mmap(struct vm_area_struct *vma); extern void perf_event_ksymbol(u16 ksym_type, u64 addr, u32 len, bool unregister, const char *sym); extern void perf_event_bpf_event(struct bpf_prog *prog, enum perf_bpf_event_type type, u16 flags); extern struct perf_guest_info_callbacks __rcu *perf_guest_cbs; static inline struct perf_guest_info_callbacks *perf_get_guest_cbs(void) { /* * Callbacks are RCU-protected and must be READ_ONCE to avoid reloading * the callbacks between a !NULL check and dereferences, to ensure * pending stores/changes to the callback pointers are visible before a * non-NULL perf_guest_cbs is visible to readers, and to prevent a * module from unloading callbacks while readers are active. */ return rcu_dereference(perf_guest_cbs); } extern int perf_register_guest_info_callbacks(struct perf_guest_info_callbacks *callbacks); extern int perf_unregister_guest_info_callbacks(struct perf_guest_info_callbacks *callbacks); extern void perf_event_exec(void); extern void perf_event_comm(struct task_struct *tsk, bool exec); extern void perf_event_namespaces(struct task_struct *tsk); extern void perf_event_fork(struct task_struct *tsk); extern void perf_event_text_poke(const void *addr, const void *old_bytes, size_t old_len, const void *new_bytes, size_t new_len); /* Callchains */ DECLARE_PER_CPU(struct perf_callchain_entry, perf_callchain_entry); extern void perf_callchain_user(struct perf_callchain_entry_ctx *entry, struct pt_regs *regs); extern void perf_callchain_kernel(struct perf_callchain_entry_ctx *entry, struct pt_regs *regs); extern struct perf_callchain_entry * get_perf_callchain(struct pt_regs *regs, u32 init_nr, bool kernel, bool user, u32 max_stack, bool crosstask, bool add_mark); extern struct perf_callchain_entry *perf_callchain(struct perf_event *event, struct pt_regs *regs); extern int get_callchain_buffers(int max_stack); extern void put_callchain_buffers(void); extern struct perf_callchain_entry *get_callchain_entry(int *rctx); extern void put_callchain_entry(int rctx); extern int sysctl_perf_event_max_stack; extern int sysctl_perf_event_max_contexts_per_stack; static inline int perf_callchain_store_context(struct perf_callchain_entry_ctx *ctx, u64 ip) { if (ctx->contexts < sysctl_perf_event_max_contexts_per_stack) { struct perf_callchain_entry *entry = ctx->entry; entry->ip[entry->nr++] = ip; ++ctx->contexts; return 0; } else { ctx->contexts_maxed = true; return -1; /* no more room, stop walking the stack */ } } static inline int perf_callchain_store(struct perf_callchain_entry_ctx *ctx, u64 ip) { if (ctx->nr < ctx->max_stack && !ctx->contexts_maxed) { struct perf_callchain_entry *entry = ctx->entry; entry->ip[entry->nr++] = ip; ++ctx->nr; return 0; } else { return -1; /* no more room, stop walking the stack */ } } extern int sysctl_perf_event_paranoid; extern int sysctl_perf_event_mlock; extern int sysctl_perf_event_sample_rate; extern int sysctl_perf_cpu_time_max_percent; extern void perf_sample_event_took(u64 sample_len_ns); extern int perf_proc_update_handler(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos); extern int perf_cpu_time_max_percent_handler(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos); int perf_event_max_stack_handler(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos); /* Access to perf_event_open(2) syscall. */ #define PERF_SECURITY_OPEN 0 /* Finer grained perf_event_open(2) access control. */ #define PERF_SECURITY_CPU 1 #define PERF_SECURITY_KERNEL 2 #define PERF_SECURITY_TRACEPOINT 3 static inline int perf_is_paranoid(void) { return sysctl_perf_event_paranoid > -1; } static inline int perf_allow_kernel(struct perf_event_attr *attr) { if (sysctl_perf_event_paranoid > 1 && !perfmon_capable()) return -EACCES; return security_perf_event_open(attr, PERF_SECURITY_KERNEL); } static inline int perf_allow_cpu(struct perf_event_attr *attr) { if (sysctl_perf_event_paranoid > 0 && !perfmon_capable()) return -EACCES; return security_perf_event_open(attr, PERF_SECURITY_CPU); } static inline int perf_allow_tracepoint(struct perf_event_attr *attr) { if (sysctl_perf_event_paranoid > -1 && !perfmon_capable()) return -EPERM; return security_perf_event_open(attr, PERF_SECURITY_TRACEPOINT); } extern void perf_event_init(void); extern void perf_tp_event(u16 event_type, u64 count, void *record, int entry_size, struct pt_regs *regs, struct hlist_head *head, int rctx, struct task_struct *task); extern void perf_bp_event(struct perf_event *event, void *data); #ifndef perf_misc_flags # define perf_misc_flags(regs) \ (user_mode(regs) ? PERF_RECORD_MISC_USER : PERF_RECORD_MISC_KERNEL) # define perf_instruction_pointer(regs) instruction_pointer(regs) #endif #ifndef perf_arch_bpf_user_pt_regs # define perf_arch_bpf_user_pt_regs(regs) regs #endif static inline bool has_branch_stack(struct perf_event *event) { return event->attr.sample_type & PERF_SAMPLE_BRANCH_STACK; } static inline bool needs_branch_stack(struct perf_event *event) { return event->attr.branch_sample_type != 0; } static inline bool has_aux(struct perf_event *event) { return event->pmu->setup_aux; } static inline bool is_write_backward(struct perf_event *event) { return !!event->attr.write_backward; } static inline bool has_addr_filter(struct perf_event *event) { return event->pmu->nr_addr_filters; } /* * An inherited event uses parent's filters */ static inline struct perf_addr_filters_head * perf_event_addr_filters(struct perf_event *event) { struct perf_addr_filters_head *ifh = &event->addr_filters; if (event->parent) ifh = &event->parent->addr_filters; return ifh; } extern void perf_event_addr_filters_sync(struct perf_event *event); extern int perf_output_begin(struct perf_output_handle *handle, struct perf_sample_data *data, struct perf_event *event, unsigned int size); extern int perf_output_begin_forward(struct perf_output_handle *handle, struct perf_sample_data *data, struct perf_event *event, unsigned int size); extern int perf_output_begin_backward(struct perf_output_handle *handle, struct perf_sample_data *data, struct perf_event *event, unsigned int size); extern void perf_output_end(struct perf_output_handle *handle); extern unsigned int perf_output_copy(struct perf_output_handle *handle, const void *buf, unsigned int len); extern unsigned int perf_output_skip(struct perf_output_handle *handle, unsigned int len); extern long perf_output_copy_aux(struct perf_output_handle *aux_handle, struct perf_output_handle *handle, unsigned long from, unsigned long to); extern int perf_swevent_get_recursion_context(void); extern void perf_swevent_put_recursion_context(int rctx); extern u64 perf_swevent_set_period(struct perf_event *event); extern void perf_event_enable(struct perf_event *event); extern void perf_event_disable(struct perf_event *event); extern void perf_event_disable_local(struct perf_event *event); extern void perf_event_disable_inatomic(struct perf_event *event); extern void perf_event_task_tick(void); extern int perf_event_account_interrupt(struct perf_event *event); extern int perf_event_period(struct perf_event *event, u64 value); extern u64 perf_event_pause(struct perf_event *event, bool reset); #else /* !CONFIG_PERF_EVENTS: */ static inline void * perf_aux_output_begin(struct perf_output_handle *handle, struct perf_event *event) { return NULL; } static inline void perf_aux_output_end(struct perf_output_handle *handle, unsigned long size) { } static inline int perf_aux_output_skip(struct perf_output_handle *handle, unsigned long size) { return -EINVAL; } static inline void * perf_get_aux(struct perf_output_handle *handle) { return NULL; } static inline void perf_event_task_migrate(struct task_struct *task) { } static inline void perf_event_task_sched_in(struct task_struct *prev, struct task_struct *task) { } static inline void perf_event_task_sched_out(struct task_struct *prev, struct task_struct *next) { } static inline int perf_event_init_task(struct task_struct *child, u64 clone_flags) { return 0; } static inline void perf_event_exit_task(struct task_struct *child) { } static inline void perf_event_free_task(struct task_struct *task) { } static inline void perf_event_delayed_put(struct task_struct *task) { } static inline struct file *perf_event_get(unsigned int fd) { return ERR_PTR(-EINVAL); } static inline const struct perf_event *perf_get_event(struct file *file) { return ERR_PTR(-EINVAL); } static inline const struct perf_event_attr *perf_event_attrs(struct perf_event *event) { return ERR_PTR(-EINVAL); } static inline int perf_event_read_local(struct perf_event *event, u64 *value, u64 *enabled, u64 *running) { return -EINVAL; } static inline void perf_event_print_debug(void) { } static inline int perf_event_task_disable(void) { return -EINVAL; } static inline int perf_event_task_enable(void) { return -EINVAL; } static inline int perf_event_refresh(struct perf_event *event, int refresh) { return -EINVAL; } static inline void perf_sw_event(u32 event_id, u64 nr, struct pt_regs *regs, u64 addr) { } static inline void perf_bp_event(struct perf_event *event, void *data) { } static inline int perf_register_guest_info_callbacks (struct perf_guest_info_callbacks *callbacks) { return 0; } static inline int perf_unregister_guest_info_callbacks (struct perf_guest_info_callbacks *callbacks) { return 0; } static inline void perf_event_mmap(struct vm_area_struct *vma) { } typedef int (perf_ksymbol_get_name_f)(char *name, int name_len, void *data); static inline void perf_event_ksymbol(u16 ksym_type, u64 addr, u32 len, bool unregister, const char *sym) { } static inline void perf_event_bpf_event(struct bpf_prog *prog, enum perf_bpf_event_type type, u16 flags) { } static inline void perf_event_exec(void) { } static inline void perf_event_comm(struct task_struct *tsk, bool exec) { } static inline void perf_event_namespaces(struct task_struct *tsk) { } static inline void perf_event_fork(struct task_struct *tsk) { } static inline void perf_event_text_poke(const void *addr, const void *old_bytes, size_t old_len, const void *new_bytes, size_t new_len) { } static inline void perf_event_init(void) { } static inline int perf_swevent_get_recursion_context(void) { return -1; } static inline void perf_swevent_put_recursion_context(int rctx) { } static inline u64 perf_swevent_set_period(struct perf_event *event) { return 0; } static inline void perf_event_enable(struct perf_event *event) { } static inline void perf_event_disable(struct perf_event *event) { } static inline int __perf_event_disable(void *info) { return -1; } static inline void perf_event_task_tick(void) { } static inline int perf_event_release_kernel(struct perf_event *event) { return 0; } static inline int perf_event_period(struct perf_event *event, u64 value) { return -EINVAL; } static inline u64 perf_event_pause(struct perf_event *event, bool reset) { return 0; } #endif #if defined(CONFIG_PERF_EVENTS) && defined(CONFIG_CPU_SUP_INTEL) extern void perf_restore_debug_store(void); #else static inline void perf_restore_debug_store(void) { } #endif static __always_inline bool perf_raw_frag_last(const struct perf_raw_frag *frag) { return frag->pad < sizeof(u64); } #define perf_output_put(handle, x) perf_output_copy((handle), &(x), sizeof(x)) struct perf_pmu_events_attr { struct device_attribute attr; u64 id; const char *event_str; }; struct perf_pmu_events_ht_attr { struct device_attribute attr; u64 id; const char *event_str_ht; const char *event_str_noht; }; struct perf_pmu_events_hybrid_attr { struct device_attribute attr; u64 id; const char *event_str; u64 pmu_type; }; struct perf_pmu_format_hybrid_attr { struct device_attribute attr; u64 pmu_type; }; ssize_t perf_event_sysfs_show(struct device *dev, struct device_attribute *attr, char *page); #define PMU_EVENT_ATTR(_name, _var, _id, _show) \ static struct perf_pmu_events_attr _var = { \ .attr = __ATTR(_name, 0444, _show, NULL), \ .id = _id, \ }; #define PMU_EVENT_ATTR_STRING(_name, _var, _str) \ static struct perf_pmu_events_attr _var = { \ .attr = __ATTR(_name, 0444, perf_event_sysfs_show, NULL), \ .id = 0, \ .event_str = _str, \ }; #define PMU_EVENT_ATTR_ID(_name, _show, _id) \ (&((struct perf_pmu_events_attr[]) { \ { .attr = __ATTR(_name, 0444, _show, NULL), \ .id = _id, } \ })[0].attr.attr) #define PMU_FORMAT_ATTR_SHOW(_name, _format) \ static ssize_t \ _name##_show(struct device *dev, \ struct device_attribute *attr, \ char *page) \ { \ BUILD_BUG_ON(sizeof(_format) >= PAGE_SIZE); \ return sprintf(page, _format "\n"); \ } \ #define PMU_FORMAT_ATTR(_name, _format) \ PMU_FORMAT_ATTR_SHOW(_name, _format) \ \ static struct device_attribute format_attr_##_name = __ATTR_RO(_name) /* Performance counter hotplug functions */ #ifdef CONFIG_PERF_EVENTS int perf_event_init_cpu(unsigned int cpu); int perf_event_exit_cpu(unsigned int cpu); #else #define perf_event_init_cpu NULL #define perf_event_exit_cpu NULL #endif extern void __weak arch_perf_update_userpage(struct perf_event *event, struct perf_event_mmap_page *userpg, u64 now); #ifndef PERF_NEEDS_LOPWR_CB static inline void perf_lopwr_cb(bool mode) { } #endif /* * Snapshot branch stack on software events. * * Branch stack can be very useful in understanding software events. For * example, when a long function, e.g. sys_perf_event_open, returns an * errno, it is not obvious why the function failed. Branch stack could * provide very helpful information in this type of scenarios. * * On software event, it is necessary to stop the hardware branch recorder * fast. Otherwise, the hardware register/buffer will be flushed with * entries of the triggering event. Therefore, static call is used to * stop the hardware recorder. */ /* * cnt is the number of entries allocated for entries. * Return number of entries copied to . */ typedef int (perf_snapshot_branch_stack_t)(struct perf_branch_entry *entries, unsigned int cnt); DECLARE_STATIC_CALL(perf_snapshot_branch_stack, perf_snapshot_branch_stack_t); #endif /* _LINUX_PERF_EVENT_H */