Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Add more exported functions to memtrack #59

Merged
merged 1 commit into from
Aug 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions riru-core/jni/main/redirect_memtrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ FUNC_DEF(memtrack_proc_gl_pss, ssize_t, struct memtrack_proc *p) {
return ((memtrack_proc_gl_pss_t) sym_memtrack_proc_gl_pss)(p);
}

FUNC_DEF(memtrack_proc_gl_pss_mapped, ssize_t, struct memtrack_proc *p) {
if (!sym_memtrack_proc_gl_pss_mapped)
return 0;

return ((memtrack_proc_gl_pss_mapped_t) sym_memtrack_proc_gl_pss_mapped)(p);
}

FUNC_DEF(memtrack_proc_gl_total, ssize_t, struct memtrack_proc *p) {
if (!sym_memtrack_proc_gl_total)
return 0;
Expand All @@ -57,6 +64,13 @@ FUNC_DEF(memtrack_proc_graphics_pss, ssize_t, struct memtrack_proc *p) {
return ((memtrack_proc_graphics_pss_t) sym_memtrack_proc_graphics_pss)(p);
}

FUNC_DEF(memtrack_proc_graphics_pss_mapped, ssize_t, struct memtrack_proc *p) {
if (!sym_memtrack_proc_graphics_pss_mapped)
return 0;

return ((memtrack_proc_graphics_pss_mapped_t) sym_memtrack_proc_graphics_pss_mapped)(p);
}

FUNC_DEF(memtrack_proc_graphics_total, ssize_t, struct memtrack_proc *p) {
if (!sym_memtrack_proc_graphics_total)
return 0;
Expand All @@ -78,13 +92,63 @@ FUNC_DEF(memtrack_proc_other_pss, ssize_t, struct memtrack_proc *p) {
return ((memtrack_proc_other_pss_t) sym_memtrack_proc_other_pss)(p);
}

FUNC_DEF(memtrack_proc_other_pss_mapped, ssize_t, struct memtrack_proc *p) {
if (!sym_memtrack_proc_other_pss_mapped)
return 0;

return ((memtrack_proc_other_pss_mapped_t) sym_memtrack_proc_other_pss_mapped)(p);
}


FUNC_DEF(memtrack_proc_other_total, ssize_t, struct memtrack_proc *p) {
if (!sym_memtrack_proc_other_total)
return 0;

return ((memtrack_proc_other_total_t) sym_memtrack_proc_other_total)(p);
}

FUNC_DEF(memtrack_proc_multimedia_pss, ssize_t, struct memtrack_proc *p) {
if (!sym_memtrack_proc_multimedia_pss)
return 0;

return ((memtrack_proc_multimedia_pss_t) sym_memtrack_proc_multimedia_pss)(p);
}

FUNC_DEF(memtrack_proc_multimedia_pss_mapped, ssize_t, struct memtrack_proc *p) {
if (!sym_memtrack_proc_multimedia_pss_mapped)
return 0;

return ((memtrack_proc_multimedia_pss_mapped_t) sym_memtrack_proc_multimedia_pss_mapped)(p);
}

FUNC_DEF(memtrack_proc_multimedia_total, ssize_t, struct memtrack_proc *p) {
if (!sym_memtrack_proc_multimedia_total)
return 0;

return ((memtrack_proc_multimedia_total_t) sym_memtrack_proc_multimedia_total)(p);
}

FUNC_DEF(memtrack_proc_camera_pss, ssize_t, struct memtrack_proc *p) {
if (!sym_memtrack_proc_camera_pss)
return 0;

return ((memtrack_proc_camera_pss_t) sym_memtrack_proc_camera_pss)(p);
}

FUNC_DEF(memtrack_proc_camera_pss_mapped, ssize_t, struct memtrack_proc *p) {
if (!sym_memtrack_proc_camera_pss_mapped)
return 0;

return ((memtrack_proc_camera_pss_mapped_t) sym_memtrack_proc_camera_pss_mapped)(p);
}

FUNC_DEF(memtrack_proc_camera_total, ssize_t, struct memtrack_proc *p) {
if (!sym_memtrack_proc_camera_total)
return 0;

return ((memtrack_proc_camera_total_t) sym_memtrack_proc_camera_total)(p);
}

FUNC_DEF(_ZN7android2spINS_8hardware8memtrack4V1_09IMemtrackEED2Ev, void, int a1) {
if (!sym__ZN7android2spINS_8hardware8memtrack4V1_09IMemtrackEED2Ev)
return;
Expand Down