mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
ac2fc01c28
PD#SWPL-72350 Problem: add a tool to list how many memory cache files used in file cache. console:/ # cat /proc/filecache Solution: porting file cache from 5.4. Verify: local. Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com> Change-Id: I92420acab7333b75bbb5bca1075d3e401b027fb2
25 lines
551 B
C
25 lines
551 B
C
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
|
/*
|
|
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __FILE_CACHE_H__
|
|
#define __FILE_CACHE_H__
|
|
|
|
#include <asm/memory.h>
|
|
#include <asm/stacktrace.h>
|
|
#include <asm/sections.h>
|
|
|
|
#define MAX_FCT 2048
|
|
struct file_cache_trace {
|
|
unsigned int count;
|
|
unsigned int active_count;
|
|
unsigned int inactive_count;
|
|
unsigned int lock_count;
|
|
unsigned int mapcnt;
|
|
unsigned long off; /* for find out vma */
|
|
struct address_space *mapping;
|
|
struct rb_node entry;
|
|
};
|
|
#endif /* __PAGE_TRACE_H__ */
|