2021-05-13 03:05:45 -04:00
|
|
|
#define LOG_TAG "libqti-perfd-client"
|
|
|
|
|
2020-08-12 08:14:36 -04:00
|
|
|
#include <stdint.h>
|
2021-05-13 03:05:45 -04:00
|
|
|
#include <log/log.h>
|
2020-08-12 08:14:36 -04:00
|
|
|
|
|
|
|
namespace android {
|
|
|
|
extern "C" void perf_get_feedback() {}
|
|
|
|
extern "C" void perf_hint() {}
|
2021-05-13 03:05:45 -04:00
|
|
|
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;
|
|
|
|
}
|
2020-08-12 08:14:36 -04:00
|
|
|
extern "C" void perf_lock_cmd() {}
|
2021-05-13 03:05:45 -04:00
|
|
|
extern "C" int perf_lock_rel(int handle) {
|
|
|
|
ALOGI("perf_lock_rel: handle: %d", handle);
|
|
|
|
if (handle > 0)
|
|
|
|
return handle;
|
|
|
|
|
|
|
|
return 233;
|
|
|
|
}
|
2020-08-12 08:14:36 -04:00
|
|
|
extern "C" void perf_lock_use_profile() {}
|
|
|
|
}
|