| .. | .. |
|---|
| 126 | 126 | DECLARE_HOOK(android_vh_vmpressure, |
|---|
| 127 | 127 | TP_PROTO(struct mem_cgroup *memcg, bool *bypass), |
|---|
| 128 | 128 | TP_ARGS(memcg, bypass)); |
|---|
| 129 | +DECLARE_HOOK(android_vh_dm_bufio_shrink_scan_bypass, |
|---|
| 130 | + TP_PROTO(unsigned long dm_bufio_current_allocated, bool *bypass), |
|---|
| 131 | + TP_ARGS(dm_bufio_current_allocated, bypass)); |
|---|
| 132 | +DECLARE_HOOK(android_vh_cleanup_old_buffers_bypass, |
|---|
| 133 | + TP_PROTO(unsigned long dm_bufio_current_allocated, |
|---|
| 134 | + unsigned long *max_age_hz, |
|---|
| 135 | + bool *bypass), |
|---|
| 136 | + TP_ARGS(dm_bufio_current_allocated, max_age_hz, bypass)); |
|---|
| 129 | 137 | DECLARE_HOOK(android_vh_mem_cgroup_alloc, |
|---|
| 130 | 138 | TP_PROTO(struct mem_cgroup *memcg), |
|---|
| 131 | 139 | TP_ARGS(memcg)); |
|---|
| .. | .. |
|---|
| 184 | 192 | DECLARE_HOOK(android_vh_cma_drain_all_pages_bypass, |
|---|
| 185 | 193 | TP_PROTO(unsigned int migratetype, bool *bypass), |
|---|
| 186 | 194 | TP_ARGS(migratetype, bypass)); |
|---|
| 195 | +DECLARE_HOOK(android_vh_free_unref_page_bypass, |
|---|
| 196 | + TP_PROTO(struct page *page, int order, int migratetype, bool *bypass), |
|---|
| 197 | + TP_ARGS(page, order, migratetype, bypass)); |
|---|
| 198 | +DECLARE_HOOK(android_vh_kvmalloc_node_use_vmalloc, |
|---|
| 199 | + TP_PROTO(size_t size, gfp_t *kmalloc_flags, bool *use_vmalloc), |
|---|
| 200 | + TP_ARGS(size, kmalloc_flags, use_vmalloc)); |
|---|
| 201 | +DECLARE_HOOK(android_vh_should_alloc_pages_retry, |
|---|
| 202 | + TP_PROTO(gfp_t gfp_mask, int order, int *alloc_flags, |
|---|
| 203 | + int migratetype, struct zone *preferred_zone, struct page **page, bool *should_alloc_retry), |
|---|
| 204 | + TP_ARGS(gfp_mask, order, alloc_flags, |
|---|
| 205 | + migratetype, preferred_zone, page, should_alloc_retry)); |
|---|
| 206 | +DECLARE_HOOK(android_vh_unreserve_highatomic_bypass, |
|---|
| 207 | + TP_PROTO(bool force, struct zone *zone, bool *skip_unreserve_highatomic), |
|---|
| 208 | + TP_ARGS(force, zone, skip_unreserve_highatomic)); |
|---|
| 209 | +DECLARE_HOOK(android_vh_pageset_update, |
|---|
| 210 | + TP_PROTO(unsigned long *high, unsigned long *batch), |
|---|
| 211 | + TP_ARGS(high, batch)); |
|---|
| 212 | +DECLARE_HOOK(android_vh_rmqueue_bulk_bypass, |
|---|
| 213 | + TP_PROTO(unsigned int order, struct per_cpu_pages *pcp, int migratetype, |
|---|
| 214 | + struct list_head *list), |
|---|
| 215 | + TP_ARGS(order, pcp, migratetype, list)); |
|---|
| 187 | 216 | DECLARE_HOOK(android_vh_pcplist_add_cma_pages_bypass, |
|---|
| 188 | 217 | TP_PROTO(int migratetype, bool *bypass), |
|---|
| 189 | 218 | TP_ARGS(migratetype, bypass)); |
|---|
| .. | .. |
|---|
| 193 | 222 | DECLARE_HOOK(android_vh_ra_tuning_max_page, |
|---|
| 194 | 223 | TP_PROTO(struct readahead_control *ractl, unsigned long *max_page), |
|---|
| 195 | 224 | TP_ARGS(ractl, max_page)); |
|---|
| 225 | +DECLARE_HOOK(android_vh_tune_mmap_readaround, |
|---|
| 226 | + TP_PROTO(unsigned int ra_pages, pgoff_t pgoff, |
|---|
| 227 | + pgoff_t *start, unsigned int *size, unsigned int *async_size), |
|---|
| 228 | + TP_ARGS(ra_pages, pgoff, start, size, async_size)); |
|---|
| 196 | 229 | DECLARE_RESTRICTED_HOOK(android_rvh_handle_pte_fault_end, |
|---|
| 197 | 230 | TP_PROTO(struct vm_fault *vmf, unsigned long highest_memmap_pfn), |
|---|
| 198 | 231 | TP_ARGS(vmf, highest_memmap_pfn), 1); |
|---|
| .. | .. |
|---|
| 254 | 287 | TP_PROTO(struct page *page, swp_entry_t *entry, |
|---|
| 255 | 288 | struct swap_slots_cache *cache, bool *found), |
|---|
| 256 | 289 | TP_ARGS(page, entry, cache, found)); |
|---|
| 290 | +DECLARE_HOOK(android_vh_add_to_avail_list, |
|---|
| 291 | + TP_PROTO(struct swap_info_struct *p, bool *skip), |
|---|
| 292 | + TP_ARGS(p, skip)); |
|---|
| 293 | +DECLARE_HOOK(android_vh_del_from_avail_list, |
|---|
| 294 | + TP_PROTO(struct swap_info_struct *p, bool *skip), |
|---|
| 295 | + TP_ARGS(p, skip)); |
|---|
| 296 | +DECLARE_HOOK(android_vh___cgroup_throttle_swaprate, |
|---|
| 297 | + TP_PROTO(int nid, bool *skip), |
|---|
| 298 | + TP_ARGS(nid, skip)); |
|---|
| 257 | 299 | DECLARE_HOOK(android_vh_madvise_cold_or_pageout, |
|---|
| 258 | 300 | TP_PROTO(struct vm_area_struct *vma, bool *allow_shared), |
|---|
| 259 | 301 | TP_ARGS(vma, allow_shared)); |
|---|
| 260 | 302 | DECLARE_HOOK(android_vh_page_isolated_for_reclaim, |
|---|
| 261 | 303 | TP_PROTO(struct mm_struct *mm, struct page *page), |
|---|
| 262 | 304 | TP_ARGS(mm, page)); |
|---|
| 305 | +DECLARE_HOOK(android_vh_should_end_madvise, |
|---|
| 306 | + TP_PROTO(struct mm_struct *mm, bool *skip, bool *pageout), |
|---|
| 307 | + TP_ARGS(mm, skip, pageout)); |
|---|
| 263 | 308 | DECLARE_HOOK(android_vh_account_swap_pages, |
|---|
| 264 | 309 | TP_PROTO(struct swap_info_struct *si, bool *skip), |
|---|
| 265 | 310 | TP_ARGS(si, skip)); |
|---|
| 266 | 311 | DECLARE_HOOK(android_vh_unuse_swap_page, |
|---|
| 267 | 312 | TP_PROTO(struct swap_info_struct *si, struct page *page), |
|---|
| 268 | 313 | TP_ARGS(si, page)); |
|---|
| 314 | +DECLARE_HOOK(android_vh_swap_avail_heads_init, |
|---|
| 315 | + TP_PROTO(struct plist_head *swap_avail_heads), |
|---|
| 316 | + TP_ARGS(swap_avail_heads)); |
|---|
| 269 | 317 | DECLARE_HOOK(android_vh_init_swap_info_struct, |
|---|
| 270 | 318 | TP_PROTO(struct swap_info_struct *p, struct plist_head *swap_avail_heads), |
|---|
| 271 | 319 | TP_ARGS(p, swap_avail_heads)); |
|---|
| .. | .. |
|---|
| 305 | 353 | TP_PROTO(struct page_vma_mapped_walk *pvmw, struct page *page, |
|---|
| 306 | 354 | struct vm_area_struct *vma, int *referenced), |
|---|
| 307 | 355 | TP_ARGS(pvmw, page, vma, referenced)); |
|---|
| 356 | +DECLARE_HOOK(android_vh_compact_finished, |
|---|
| 357 | + TP_PROTO(bool *abort_compact), |
|---|
| 358 | + TP_ARGS(abort_compact)); |
|---|
| 359 | +DECLARE_HOOK(android_vh_madvise_cold_or_pageout_abort, |
|---|
| 360 | + TP_PROTO(struct vm_area_struct *vma, bool *abort_madvise), |
|---|
| 361 | + TP_ARGS(vma, abort_madvise)); |
|---|
| 362 | +DECLARE_HOOK(android_vh_skip_swapcache, |
|---|
| 363 | + TP_PROTO(swp_entry_t entry, bool *skip), |
|---|
| 364 | + TP_ARGS(entry, skip)); |
|---|
| 308 | 365 | /* macro versions of hooks are no longer required */ |
|---|
| 309 | 366 | |
|---|
| 310 | 367 | #endif /* _TRACE_HOOK_MM_H */ |
|---|