ANDROID: GKI: Add vendor hook define for Honor ogki

Files stored in UFS SLC have approximately 20% better random read performance compared to TLC.
Storing some frequently and randomly accessed files in the SLC area can enhance user experience.

Bug: 362208332
Change-Id: I571cb8b3821fb43dd4708c49c896e33e9942ab5e
Signed-off-by: Rui Chen <chenrui9@honor.com>
This commit is contained in:
Rui Chen 2024-09-23 14:10:55 +08:00 committed by Todd Kjos
parent 9ddbcd8d87
commit 1faa5b23e4
2 changed files with 12 additions and 0 deletions

View File

@ -168,6 +168,8 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_send_uic_command);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_send_tm_command);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_check_int_errors);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_update_sdev);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ogki_f2fs_create);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ogki_f2fs_submit_write_page);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_cgroup_attach);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_iommu_setup_dma_ops);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_iommu_alloc_insert_iova);

View File

@ -18,6 +18,10 @@ struct ufs_hba;
struct tcp_sock;
struct net_device;
struct cfg80211_registered_device;
struct dentry;
struct inode;
struct page;
struct bio;
DECLARE_HOOK(android_vh_ogki_async_psi_bypass,
TP_PROTO(bool *bypass),
TP_ARGS(bypass));
@ -105,6 +109,12 @@ DECLARE_HOOK(android_vh_ogki_f2fs_dsm,
DECLARE_HOOK(android_vh_ogki_f2fs_dsm_get,
TP_PROTO(unsigned long code, char *err_msg),
TP_ARGS(code, err_msg));
DECLARE_HOOK(android_vh_ogki_f2fs_create,
TP_PROTO(struct inode *inode, struct dentry *dentry),
TP_ARGS(inode, dentry));
DECLARE_HOOK(android_vh_ogki_f2fs_submit_write_page,
TP_PROTO(struct page *page, struct bio *bio),
TP_ARGS(page, bio));
DECLARE_HOOK(android_vh_ogki_cma_alloc_retry,
TP_PROTO(char *name, int *retry),
TP_ARGS(name, retry));