diff --git a/libqti-perfd-client/Android.bp b/libqti-perfd-client/Android.bp index e5cb610..77f9332 100644 --- a/libqti-perfd-client/Android.bp +++ b/libqti-perfd-client/Android.bp @@ -11,6 +11,7 @@ cc_library_shared { "-Wall", ], shared_libs: [ + "liblog", "libutils", ], } diff --git a/libqti-perfd-client/client.cpp b/libqti-perfd-client/client.cpp index ad6e693..8c0cee2 100644 --- a/libqti-perfd-client/client.cpp +++ b/libqti-perfd-client/client.cpp @@ -1,8 +1,24 @@ +#define LOG_TAG "libqti-perfd-client" + #include +#include extern "C" void perf_get_feedback() {} extern "C" void perf_hint() {} -extern "C" void perf_lock_acq() {} +extern "C" int perf_lock_acq(int handle, int duration, int arg3[], int arg4) { + ALOGI("perf_lock_acq: handle: %d, duration: %d, arg3[0]: %d, arg4: %d", + handle, duration, arg3[0], arg4); + if (handle > 0) + return handle; + + return 233; +} extern "C" void perf_lock_cmd() {} -extern "C" void perf_lock_rel() {} +extern "C" int perf_lock_rel(int handle) { + ALOGI("perf_lock_rel: handle: %d", handle); + if (handle > 0) + return handle; + + return 233; +} extern "C" void perf_lock_use_profile() {}