Files
kernel_google_b1c1/include/linux/vm_event_item.h
Petri Gynther 3a43cd6da1 Merge 4.9.128 into android-msm-bluecross-4.9-lts
Linux 4.9.128
  * mm: get rid of vmacache_flush_all() entirely
      include/linux/mm_types.h
      include/linux/sched.h
      include/linux/vm_event_item.h
      include/linux/vmacache.h
      mm/debug.c
      mm/vmacache.c
    autofs: fix autofs_sbi() does not check super block type
    mtd: ubi: wl: Fix error return code in ubi_wl_init()
  * netfilter: x_tables: avoid stack-out-of-bounds read in xt_copy_counters_from_user
      net/netfilter/x_tables.c
  * xhci: Fix use-after-free in xhci_free_virt_device
      drivers/usb/host/xhci.c
    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
      fs/f2fs/super.c
    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()
      fs/f2fs/file.c
    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
    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
      fs/f2fs/inline.c
    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
      fs/f2fs/gc.c
  * f2fs: try grabbing node page lock aggressively in sync scenario
      fs/f2fs/node.c
    net: mvneta: fix mtu change on port without link
    gpio: ml-ioh: Fix buffer underwrite on probe error path
    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
    scsi: 3ware: fix return 0 on the error path of probe
    ata: libahci: Correct setting of DEVSLP register
    MIPS: Fix ISA virt/bus conversion for non-zero PHYS_OFFSET
    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
    NFSv4.0 fix client reference leak in callback
    perf tools: Allow overriding MAX_NR_CPUS at compile time
  * f2fs: do not set free of current section
      fs/f2fs/segment.h
    tty: rocket: Fix possible buffer overwrite on register_PCI
  * uio: potential double frees if __uio_register_device() fails
      drivers/uio/uio.c
    misc: ti-st: Fix memory leak in the error path of probe()
  * timers: Clear timer_base::must_forward_clk with timer_base::lock held
      kernel/time/timer.c
    md/raid5: fix data corruption of replacements after originals dropped
    scsi: target: fix __transport_register_session locking
    net: phy: Fix the register offsets in Broadcom iProc mdio mux driver
    gpio: tegra: Move driver registration to subsys_init level
  * Bluetooth: h5: Fix missing dependency on BT_HCIUART_SERDEV
      drivers/bluetooth/Kconfig
  * ethtool: Remove trailing semicolon for static inline
      include/uapi/linux/ethtool.h
    misc: mic: SCIF Fix scif_get_new_port() error handling
    ARC: [plat-axs*]: Enable SWAP
  * mm: remove seemingly spurious reclaimability check from laptop_mode gating
      mm/vmscan.c
  * mm, vmscan: clear PGDAT_WRITEBACK when zone is balanced
      mm/vmscan.c
  * locking/osq_lock: Fix osq_lock queue corruption
      kernel/locking/osq_lock.c
  * selinux: use GFP_NOWAIT in the AVC kmem_caches
      security/selinux/avc.c
  * locking/rwsem-xadd: Fix missed wakeup due to reordering of load
      kernel/locking/rwsem-xadd.c
  * nl80211: fix null-ptr dereference on invalid mesh configuration
      net/wireless/nl80211.c
  * block,blkcg: use __GFP_NOWARN for best-effort allocations in blkcg
      block/cfq-iosched.c
    IB/rxe: do not copy extra stack memory to skb
    staging/rts5208: Fix read overflow in memcpy
    staging: rt5208: Fix a sleep-in-atomic bug in xd_copy_page
    kthread: fix boot hang (regression) on MIPS/OpenRISC
  * kthread: Fix use-after-free if kthread fork fails
      kernel/fork.c
  * cfq: Give a chance for arming slice idle timer in case of group_idle
      block/cfq-iosched.c
    ALSA: hda - Fix cancel_work_sync() stall from jackpoll work
    KVM: s390: vsie: copy wrapping keys to right place
    i2c: i801: fix DNV's SMBCTRL register offset
    i2c: xiic: Make the start and the byte count write atomic

Change-Id: I03ae26089478b4bb59bee9384a2cf47840a8c9ad
Signed-off-by: Petri Gynther <pgynther@google.com>
2018-12-18 19:45:42 -08:00

110 lines
2.7 KiB
C

#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,
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,
#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,
#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,
THP_ZERO_PAGE_ALLOC,
THP_ZERO_PAGE_ALLOC_FAILED,
#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
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 */