Skip to content

Commit

Permalink
perfd: Remove unnecessary logs
Browse files Browse the repository at this point in the history
The logs about "perf_lock" are triggered too frequently, remove them to reduce overhead.

Change-Id: Ic02a915884128555e76e88fb3b95f89651f4a95b
  • Loading branch information
BYZYB committed Nov 16, 2023
1 parent 8c27c38 commit 7b10942
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
1 change: 1 addition & 0 deletions libqti-perfd-client/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ cc_library_shared {
],
cflags: [
"-Werror",
"-Wno-error=unused-parameter",
"-Wextra",
"-Wall",
],
Expand Down
14 changes: 2 additions & 12 deletions libqti-perfd-client/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,13 @@ void perf_get_feedback() {}
void perf_hint() {}

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;
return handle;
}

void perf_lock_cmd() {}

int perf_lock_rel(int handle) {
ALOGI("perf_lock_rel: handle: %d", handle);

if (handle > 0)
return handle;

return 233;
return handle;
}

void perf_lock_use_profile() {}

0 comments on commit 7b10942

Please sign in to comment.