mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-06 17:35:20 +02:00
ANDROID: vendor hooks: add vendor hooks for do_new_mount
Add a vendor hook for do_new_mount_fc is aimed at categorizing the properties according to the path. And making these properties more easily accessible.This will help us to customize readahead operations, improving the speed of App startup and game loading. Bug: 345590666 Change-Id: I913bbb9bd4c3efd5f4c7d101056d301855881cc2 Signed-off-by: Wang Jianzheng <11134417@vivo.corp-partner.google.com>
This commit is contained in:
parent
5bfee09a96
commit
cdb09f7ea3
|
@ -421,6 +421,7 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_set_tsk_need_resched_lazy);
|
|||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_usb_dev_suspend);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_usb_dev_resume);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_bd_link_disk_holder);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_do_new_mount_fc);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_use_amu_fie);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_resume_begin);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_resume_end);
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
|
||||
#include "pnode.h"
|
||||
#include "internal.h"
|
||||
#include <trace/hooks/blk.h>
|
||||
|
||||
/* Maximum number of mounts in a mount namespace */
|
||||
static unsigned int sysctl_mount_max __read_mostly = 100000;
|
||||
|
@ -3289,6 +3290,8 @@ static int do_new_mount_fc(struct fs_context *fc, struct path *mountpoint,
|
|||
unlock_mount(mp);
|
||||
if (error < 0)
|
||||
mntput(mnt);
|
||||
else
|
||||
trace_android_vh_do_new_mount_fc(mountpoint, mnt);
|
||||
return error;
|
||||
}
|
||||
|
||||
|
|
|
@ -17,6 +17,13 @@ DECLARE_HOOK(android_vh_bd_link_disk_holder,
|
|||
TP_PROTO(struct block_device *bdev, struct gendisk *disk),
|
||||
TP_ARGS(bdev, disk));
|
||||
|
||||
struct path;
|
||||
struct vfsmount;
|
||||
|
||||
DECLARE_HOOK(android_vh_do_new_mount_fc,
|
||||
TP_PROTO(struct path *mountpoint, struct vfsmount *mnt),
|
||||
TP_ARGS(mountpoint, mnt));
|
||||
|
||||
#endif /* _TRACE_HOOK_BLK_H */
|
||||
/* This part must be outside protection */
|
||||
#include <trace/define_trace.h>
|
||||
|
|
Loading…
Reference in New Issue
Block a user