Centos-kernel-stream-9/Documentation
Artem Savkov 3b8fa9106d bpf, docs: Define signed modulo as using truncated division
JIRA: https://issues.redhat.com/browse/RHEL-23643

commit 0e133a13370389d3894891eafe54fec2c44ad735
Author: Dave Thaler <dthaler@microsoft.com>
Date:   Tue Oct 17 20:30:20 2023 +0000

    bpf, docs: Define signed modulo as using truncated division
    
    There's different mathematical definitions (truncated, floored, rounded,
    etc.) and different languages have chosen different definitions [0][1].
    E.g., languages/libraries that follow Knuth use a different mathematical
    definition than C uses. This patch specifies which definition BPF uses,
    as verified by Eduard [2] and others.
    
      [0] https://en.wikipedia.org/wiki/Modulo#Variants_of_the_definition
      [1] https://torstencurdt.com/tech/posts/modulo-of-negative-numbers/
      [2] https://lore.kernel.org/bpf/57e6fefadaf3b2995bb259fa8e711c7220ce5290.camel@gmail.com/
    
    Signed-off-by: Dave Thaler <dthaler@microsoft.com>
    Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
    Acked-by: David Vernet <void@manifault.com>
    Acked-by: Eduard Zingerman <eddyz87@gmail.com>
    Link: https://lore.kernel.org/bpf/20231017203020.1500-1-dthaler1968@googlemail.com

Signed-off-by: Artem Savkov <asavkov@redhat.com>
2024-03-27 10:27:54 +01:00
..
ABI Merge: crypto: iaa - Add Intel IAA Compression Accelerator crypto driver 2024-02-22 19:56:51 -05:00
PCI PCI: Fix typos in docs and comments 2023-12-15 16:22:30 -07:00
RCU Delete duplicate words from kernel docs 2023-06-27 08:44:45 +03:00
accounting filemap: make the accounting of thrashing more consistent 2023-06-14 15:10:59 -06:00
admin-guide Merge: arch/x86: backport 2024-03-26 11:25:15 -04:00
arch/x86 x86/efistub: Simplify and clean up handover entry code 2024-01-04 15:12:24 -05:00
arm efi: libstub: unify initrd loading between architectures 2023-10-30 09:09:30 +01:00
arm64 Merge: arm64: module: rework module VA range selection 2024-02-13 10:13:31 -05:00
block blk-crypto: remove blk_crypto_insert_cloned_request() 2023-09-18 15:56:06 +08:00
bpf bpf, docs: Define signed modulo as using truncated division 2024-03-27 10:27:54 +01:00
cdrom
core-api selftests/vm: rename selftests/vm to selftests/mm 2024-01-19 10:06:45 -07:00
cpu-freq
crypto
dev-tools selftests: allow runners to override the timeout 2024-01-19 10:11:00 -07:00
devicetree Merge: arm: Add SCMI performance domain and dynamic OPP support 2024-03-18 16:54:19 -03:00
doc-guide docs: add Rust documentation 2024-03-20 09:42:43 -04:00
driver-api Revert "Merge: EDAC: add initial support for El Capitan" 2024-03-14 18:14:13 -04:00
fault-injection debugfs: fix error when writing negative value to atomic_t debugfs file 2023-10-26 06:54:59 +03:00
fb
features
filesystems ovl: mark xwhiteouts directory with overlay.opaque='x' 2024-02-16 10:30:59 +01:00
firmware-guide
firmware_class
fpga
gpu drm: Allow drivers to indicate the damage helpers to ignore damage clips 2024-02-01 07:02:40 +02:00
hid Documentation: hid: correct spelling 2023-06-19 15:43:01 +02:00
hwmon hwmon: introduce hwmon_sanitize_name() 2023-09-19 14:17:29 -04:00
i2c i2c: i801: Add support for Intel Birch Stream SoC 2023-11-29 07:07:49 -05:00
ia64
ide
iio
infiniband
input Input: add ABS_PROFILE to uapi and documentation 2023-06-19 15:42:45 +02:00
isdn
kbuild Makefile.compiler: replace cc-ifversion with compiler-specific macros 2024-03-20 09:42:51 -04:00
kernel-hacking
leds
litmus-tests
livepatch livepatch: fix ELF typos 2023-09-25 16:06:27 -04:00
locking
m68k
maintainer
mhi
mips
misc-devices
mm Merge: arch/x86: backport 2024-03-26 11:25:15 -04:00
netlabel
netlink/specs Merge: ice: add DPLL phase offset field to device indication 2024-01-18 10:16:19 -05:00
networking Merge: ice: add CGU info to devlink info callback 2024-02-19 11:46:33 -05:00
nios2
nvdimm
openrisc
parisc
pcmcia
power
powerpc Documentation/powerpc: Fix ptrace request names 2023-11-13 11:21:23 +01:00
process docs: programming-language: remove mention of the Intel compiler 2024-03-20 09:42:44 -04:00
riscv
rust x86: enable initial Rust support 2024-03-20 09:42:43 -04:00
s390 s390/iommu: get rid of S390_CCW_IOMMU and S390_AP_IOMMU 2023-10-27 01:26:58 -07:00
scheduler sched/deadline: Update GRUB description in the documentation 2023-09-07 14:30:58 -04:00
scsi
security
sh
sound ALSA: docs: Fix a typo of midi2_ump_probe option for snd-usb-audio 2023-12-18 16:31:26 +01:00
sparc
sphinx
sphinx-static
spi
staging jump_label: make initial NOP patching the special case 2024-03-20 09:43:04 -04:00
target
timers
tools rtla/timerlat_hist: Add auto-analysis support 2023-11-10 22:10:12 -05:00
trace mm, vmscan: remove ISOLATE_UNMAPPED 2024-03-13 11:38:35 -06:00
translations Merge: update drivers/base to v6.4 2023-11-19 13:07:01 +01:00
usb USB: Remove Wireless USB and UWB documentation 2023-11-21 15:33:05 -03:00
userspace-api
virt KVM: arm64: Clarify the ordering requirements for vcpu/RD creation 2024-01-02 02:31:20 -05:00
w1
watchdog
x86 x86/cpu: Move cpu_l[l2]c_id into topology info 2024-03-20 09:43:28 -04:00
xtensa
.gitignore
COPYING-logo
Changes
CodingStyle
Kconfig
Makefile
SubmittingPatches
arch.rst
asm-annotations.rst
atomic_bitops.txt
atomic_t.txt
conf.py bpf: Document usage of the new __bpf_kfunc macro 2023-06-13 22:45:20 +02:00
docutils.conf
dontdiff
index.rst docs: add Rust documentation 2024-03-20 09:42:43 -04:00
logo.gif
memory-barriers.txt
watch_queue.rst