* refs/heads/tmp-58b620f:
Linux 4.14.71
mm: get rid of vmacache_flush_all() entirely
autofs: fix autofs_sbi() does not check super block type
tuntap: fix use after free during release
tun: fix use after free for ptr_ring
mtd: ubi: wl: Fix error return code in ubi_wl_init()
ip: frags: fix crash in ip_do_fragment()
ip: process in-order fragments efficiently
ip: add helpers to process in-order fragments faster.
ipv4: frags: precedence bug in ip_expire()
net: sk_buff rbnode reorg
net: add rb_to_skb() and other rb tree helpers
net: pskb_trim_rcsum() and CHECKSUM_COMPLETE are friends
ipv6: defrag: drop non-last frags smaller than min mtu
net: modify skb_rbtree_purge to return the truesize of all purged skbs.
net: speed up skb_rbtree_purge()
ip: discard IPv4 datagrams with overlapping segments.
inet: frags: fix ip6frag_low_thresh boundary
inet: frags: get rid of ipfrag_skb_cb/FRAG_CB
inet: frags: reorganize struct netns_frags
rhashtable: reorganize struct rhashtable layout
ipv6: frags: rewrite ip6_expire_frag_queue()
inet: frags: do not clone skb in ip_expire()
inet: frags: break the 2GB limit for frags storage
inet: frags: remove inet_frag_maybe_warn_overflow()
inet: frags: get rif of inet_frag_evicting()
inet: frags: remove some helpers
inet: frags: use rhashtables for reassembly units
rhashtable: add schedule points
ipv6: export ip6 fragments sysctl to unprivileged users
inet: frags: refactor lowpan_net_frag_init()
inet: frags: refactor ipv6_frag_init()
inet: frags: Convert timers to use timer_setup()
inet: frags: refactor ipfrag_init()
inet: frags: add a pointer to struct netns_frags
inet: frags: change inet_frags_init_net() return value
drm/i915: set DP Main Stream Attribute for color range on DDI platforms
RDMA/cma: Do not ignore net namespace for unbound cm_id
MIPS: WARN_ON invalid DMA cache maintenance, not BUG_ON
NFSv4.1: Fix a potential layoutget/layoutrecall deadlock
f2fs: fix to do sanity check with {sit,nat}_ver_bitmap_bytesize
mfd: ti_am335x_tscadc: Fix struct clk memory leak
iommu/ipmmu-vmsa: Fix allocation in atomic context
f2fs: Fix uninitialized return in f2fs_ioc_shutdown()
f2fs: fix to wait on page writeback before updating page
media: helene: fix xtal frequency setting at power on
partitions/aix: fix usage of uninitialized lv_info and lvname structures
partitions/aix: append null character to print data from disk
media: s5p-mfc: Fix buffer look up in s5p_mfc_handle_frame_{new, copy_time} functions
Input: atmel_mxt_ts - only use first T9 instance
dm cache: only allow a single io_mode cache feature to be requested
net: dcb: For wild-card lookups, use priority -1, not 0
MIPS: generic: fix missing of_node_put()
MIPS: Octeon: add missing of_node_put()
f2fs: fix to do sanity check with reserved blkaddr of inline inode
tpm/tpm_i2c_infineon: switch to i2c_lock_bus(..., I2C_LOCK_SEGMENT)
tpm_tis_spi: Pass the SPI IRQ down to the driver
f2fs: fix to skip GC if type in SSA and SIT is inconsistent
pktcdvd: Fix possible Spectre-v1 for pkt_devs
f2fs: try grabbing node page lock aggressively in sync scenario
net: mvneta: fix mtu change on port without link
pinctrl/amd: only handle irq if it is pending and unmasked
gpio: ml-ioh: Fix buffer underwrite on probe error path
pinctrl: imx: off by one in imx_pinconf_group_dbg_show()
x86/mm: Remove in_nmi() warning from vmalloc_fault()
Bluetooth: hidp: Fix handling of strncpy for hid->name information
ath10k: disable bundle mgmt tx completion event support
tools/testing/nvdimm: kaddr and pfn can be NULL to ->direct_access()
scsi: 3ware: fix return 0 on the error path of probe
ata: libahci: Correct setting of DEVSLP register
ata: libahci: Allow reconfigure of DEVSLP register
MIPS: Fix ISA virt/bus conversion for non-zero PHYS_OFFSET
rpmsg: core: add support to power domains for devices
wlcore: Set rx_status boottime_ns field on rx
ath10k: prevent active scans on potential unusable channels
ath9k_hw: fix channel maximum power level test
ath9k: report tx status on EOSP
macintosh/via-pmu: Add missing mmio accessors
perf evlist: Fix error out while applying initial delay and LBR
perf c2c report: Fix crash for empty browser
NFSv4.0 fix client reference leak in callback
perf tools: Allow overriding MAX_NR_CPUS at compile time
f2fs: fix defined but not used build warnings
f2fs: do not set free of current section
f2fs: fix to active page in lru list for read path
tty: rocket: Fix possible buffer overwrite on register_PCI
Drivers: hv: vmbus: Cleanup synic memory free path
firmware: vpd: Fix section enabled flag on vpd_section_destroy
uio: potential double frees if __uio_register_device() fails
misc: ti-st: Fix memory leak in the error path of probe()
gpu: ipu-v3: default to id 0 on missing OF alias
media: camss: csid: Configure data type and decode format properly
timers: Clear timer_base::must_forward_clk with timer_base::lock held
md/raid5: fix data corruption of replacements after originals dropped
scsi: target: fix __transport_register_session locking
blk-mq: fix updating tags depth
net: phy: Fix the register offsets in Broadcom iProc mdio mux driver
media: dw2102: Fix memleak on sequence of probes
media: davinci: vpif_display: Mix memory leak on probe error path
selftests/bpf: fix a typo in map in map test
powerpc/powernv: Fix concurrency issue with npu->mmio_atsd_usage
gpio: tegra: Move driver registration to subsys_init level
Bluetooth: h5: Fix missing dependency on BT_HCIUART_SERDEV
i2c: aspeed: Add an explicit type casting for *get_clk_reg_val
ethtool: Remove trailing semicolon for static inline
misc: mic: SCIF Fix scif_get_new_port() error handling
ARC: [plat-axs*]: Enable SWAP
tpm: separate cmd_ready/go_idle from runtime_pm
crypto: aes-generic - fix aes-generic regression on powerpc
switchtec: Fix Spectre v1 vulnerability
x86/microcode: Update the new microcode revision unconditionally
x86/microcode: Make sure boot_cpu_data.microcode is up-to-date
cpu/hotplug: Prevent state corruption on error rollback
cpu/hotplug: Adjust misplaced smb() in cpuhp_thread_fun()
ALSA: hda - Fix cancel_work_sync() stall from jackpoll work
KVM: VMX: Do not allow reexecute_instruction() when skipping MMIO instr
KVM: s390: vsie: copy wrapping keys to right place
Btrfs: fix data corruption when deduplicating between different files
smb3: check for and properly advertise directory lease support
SMB3: Backup intent flag missing for directory opens with backupuid mounts
MIPS: VDSO: Match data page cache colouring when D$ aliases
android: binder: fix the race mmap and alloc_new_buf_locked
block: bfq: swap puts in bfqg_and_blkg_put
nbd: don't allow invalid blocksize settings
scsi: lpfc: Correct MDS diag and nvmet configuration
i2c: i801: fix DNV's SMBCTRL register offset
i2c: xiic: Make the start and the byte count write atomic
Conflicts:
include/linux/mm_types.h
Change-Id: I6d5ca1fc3e58d896127ca7a4a7ec6f662d9ab634
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
125 lines
3.0 KiB
C
125 lines
3.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef VM_EVENT_ITEM_H_INCLUDED
|
|
#define VM_EVENT_ITEM_H_INCLUDED
|
|
|
|
#ifdef CONFIG_ZONE_DMA
|
|
#define DMA_ZONE(xx) xx##_DMA,
|
|
#else
|
|
#define DMA_ZONE(xx)
|
|
#endif
|
|
|
|
#ifdef CONFIG_ZONE_DMA32
|
|
#define DMA32_ZONE(xx) xx##_DMA32,
|
|
#else
|
|
#define DMA32_ZONE(xx)
|
|
#endif
|
|
|
|
#ifdef CONFIG_HIGHMEM
|
|
#define HIGHMEM_ZONE(xx) xx##_HIGH,
|
|
#else
|
|
#define HIGHMEM_ZONE(xx)
|
|
#endif
|
|
|
|
#define FOR_ALL_ZONES(xx) DMA_ZONE(xx) DMA32_ZONE(xx) xx##_NORMAL, HIGHMEM_ZONE(xx) xx##_MOVABLE
|
|
|
|
enum vm_event_item { PGPGIN, PGPGOUT, PGPGOUTCLEAN, PSWPIN, PSWPOUT,
|
|
FOR_ALL_ZONES(PGALLOC),
|
|
FOR_ALL_ZONES(ALLOCSTALL),
|
|
FOR_ALL_ZONES(PGSCAN_SKIP),
|
|
PGFREE, PGACTIVATE, PGDEACTIVATE, PGLAZYFREE,
|
|
PGFAULT, PGMAJFAULT,
|
|
PGLAZYFREED,
|
|
PGREFILL,
|
|
PGSTEAL_KSWAPD,
|
|
PGSTEAL_DIRECT,
|
|
PGSCAN_KSWAPD,
|
|
PGSCAN_DIRECT,
|
|
PGSCAN_DIRECT_THROTTLE,
|
|
#ifdef CONFIG_NUMA
|
|
PGSCAN_ZONE_RECLAIM_FAILED,
|
|
#endif
|
|
PGINODESTEAL, SLABS_SCANNED, KSWAPD_INODESTEAL,
|
|
KSWAPD_LOW_WMARK_HIT_QUICKLY, KSWAPD_HIGH_WMARK_HIT_QUICKLY,
|
|
PAGEOUTRUN, PGROTATED,
|
|
DROP_PAGECACHE, DROP_SLAB,
|
|
OOM_KILL,
|
|
#ifdef CONFIG_NUMA_BALANCING
|
|
NUMA_PTE_UPDATES,
|
|
NUMA_HUGE_PTE_UPDATES,
|
|
NUMA_HINT_FAULTS,
|
|
NUMA_HINT_FAULTS_LOCAL,
|
|
NUMA_PAGE_MIGRATE,
|
|
#endif
|
|
#ifdef CONFIG_MIGRATION
|
|
PGMIGRATE_SUCCESS, PGMIGRATE_FAIL,
|
|
#endif
|
|
#ifdef CONFIG_COMPACTION
|
|
COMPACTMIGRATE_SCANNED, COMPACTFREE_SCANNED,
|
|
COMPACTISOLATED,
|
|
COMPACTSTALL, COMPACTFAIL, COMPACTSUCCESS,
|
|
KCOMPACTD_WAKE,
|
|
KCOMPACTD_MIGRATE_SCANNED, KCOMPACTD_FREE_SCANNED,
|
|
#endif
|
|
#ifdef CONFIG_HUGETLB_PAGE
|
|
HTLB_BUDDY_PGALLOC, HTLB_BUDDY_PGALLOC_FAIL,
|
|
#endif
|
|
UNEVICTABLE_PGCULLED, /* culled to noreclaim list */
|
|
UNEVICTABLE_PGSCANNED, /* scanned for reclaimability */
|
|
UNEVICTABLE_PGRESCUED, /* rescued from noreclaim list */
|
|
UNEVICTABLE_PGMLOCKED,
|
|
UNEVICTABLE_PGMUNLOCKED,
|
|
UNEVICTABLE_PGCLEARED, /* on COW, page truncate */
|
|
UNEVICTABLE_PGSTRANDED, /* unable to isolate on unlock */
|
|
#ifdef CONFIG_TRANSPARENT_HUGEPAGE
|
|
THP_FAULT_ALLOC,
|
|
THP_FAULT_FALLBACK,
|
|
THP_COLLAPSE_ALLOC,
|
|
THP_COLLAPSE_ALLOC_FAILED,
|
|
THP_FILE_ALLOC,
|
|
THP_FILE_MAPPED,
|
|
THP_SPLIT_PAGE,
|
|
THP_SPLIT_PAGE_FAILED,
|
|
THP_DEFERRED_SPLIT_PAGE,
|
|
THP_SPLIT_PMD,
|
|
#ifdef CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD
|
|
THP_SPLIT_PUD,
|
|
#endif
|
|
THP_ZERO_PAGE_ALLOC,
|
|
THP_ZERO_PAGE_ALLOC_FAILED,
|
|
THP_SWPOUT,
|
|
THP_SWPOUT_FALLBACK,
|
|
#endif
|
|
#ifdef CONFIG_MEMORY_BALLOON
|
|
BALLOON_INFLATE,
|
|
BALLOON_DEFLATE,
|
|
#ifdef CONFIG_BALLOON_COMPACTION
|
|
BALLOON_MIGRATE,
|
|
#endif
|
|
#endif
|
|
#ifdef CONFIG_DEBUG_TLBFLUSH
|
|
NR_TLB_REMOTE_FLUSH, /* cpu tried to flush others' tlbs */
|
|
NR_TLB_REMOTE_FLUSH_RECEIVED,/* cpu received ipi for flush */
|
|
NR_TLB_LOCAL_FLUSH_ALL,
|
|
NR_TLB_LOCAL_FLUSH_ONE,
|
|
#endif /* CONFIG_DEBUG_TLBFLUSH */
|
|
#ifdef CONFIG_DEBUG_VM_VMACACHE
|
|
VMACACHE_FIND_CALLS,
|
|
VMACACHE_FIND_HITS,
|
|
#endif
|
|
#ifdef CONFIG_SWAP
|
|
SWAP_RA,
|
|
SWAP_RA_HIT,
|
|
#endif
|
|
#ifdef CONFIG_SPECULATIVE_PAGE_FAULT
|
|
SPECULATIVE_PGFAULT,
|
|
#endif
|
|
NR_VM_EVENT_ITEMS
|
|
};
|
|
|
|
#ifndef CONFIG_TRANSPARENT_HUGEPAGE
|
|
#define THP_FILE_ALLOC ({ BUILD_BUG(); 0; })
|
|
#define THP_FILE_MAPPED ({ BUILD_BUG(); 0; })
|
|
#endif
|
|
|
|
#endif /* VM_EVENT_ITEM_H_INCLUDED */
|