2024-01-26 06:52:09 -05:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2021-2024 The LineageOS Project
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2021-05-13 03:05:45 -04:00
|
|
|
#define LOG_TAG "libqti-perfd-client"
|
|
|
|
|
|
|
|
#include <log/log.h>
|
2024-01-26 06:52:09 -05:00
|
|
|
#include <stdint.h>
|
2021-05-03 11:00:24 -04:00
|
|
|
|
2021-06-19 20:49:03 -04:00
|
|
|
void perf_get_feedback() {}
|
2024-01-26 06:52:09 -05:00
|
|
|
|
2021-06-19 20:49:03 -04:00
|
|
|
void perf_hint() {}
|
2021-05-13 03:05:45 -04:00
|
|
|
|
2024-01-26 06:52:09 -05:00
|
|
|
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);
|
|
|
|
return handle ?: 233;
|
2021-05-22 09:52:37 -04:00
|
|
|
}
|
2024-01-26 06:52:09 -05:00
|
|
|
|
2021-06-19 20:49:03 -04:00
|
|
|
void perf_lock_cmd() {}
|
2024-01-26 06:52:09 -05:00
|
|
|
|
2021-06-19 20:49:03 -04:00
|
|
|
int perf_lock_rel(int handle) {
|
2021-05-22 09:52:37 -04:00
|
|
|
ALOGI("perf_lock_rel: handle: %d", handle);
|
2024-01-26 06:52:09 -05:00
|
|
|
return handle ?: 233;
|
2021-05-03 11:00:24 -04:00
|
|
|
}
|
2024-01-26 06:52:09 -05:00
|
|
|
|
2021-06-19 20:49:03 -04:00
|
|
|
void perf_lock_use_profile() {}
|