From 351ee60598d5a84017ff9c42e3ef36adca9076e4 Mon Sep 17 00:00:00 2001 From: Phil Burk Date: Wed, 7 Aug 2024 17:13:30 -0700 Subject: [PATCH] OboeTester experiment with 16 KB pages WIP try to build with 16 KB pages to debug audio issues. For #2041 See also b/358130477 --- apps/OboeTester/app/CMakeLists.txt | 1 + .../app/src/main/java/com/mobileer/oboetester/MainActivity.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/OboeTester/app/CMakeLists.txt b/apps/OboeTester/app/CMakeLists.txt index ce505e46f..3103a1a39 100644 --- a/apps/OboeTester/app/CMakeLists.txt +++ b/apps/OboeTester/app/CMakeLists.txt @@ -33,4 +33,5 @@ include_directories( # link to oboe target_link_libraries(oboetester log oboe atomic) +target_link_options(oboetester PRIVATE "-Wl,-z,max-page-size=16384") diff --git a/apps/OboeTester/app/src/main/java/com/mobileer/oboetester/MainActivity.java b/apps/OboeTester/app/src/main/java/com/mobileer/oboetester/MainActivity.java index f11a3bc69..d229bfd1e 100644 --- a/apps/OboeTester/app/src/main/java/com/mobileer/oboetester/MainActivity.java +++ b/apps/OboeTester/app/src/main/java/com/mobileer/oboetester/MainActivity.java @@ -100,7 +100,7 @@ public void onNothingSelected(AdapterView adapterView) { int oboePatch = oboeVersion & 0xFF; mVersionText = getString(R.string.app_name_version, pinfo.versionCode, pinfo.versionName, - oboeMajor, oboeMinor, oboePatch); + oboeMajor, oboeMinor, oboePatch) + " 16KB pages"; mVersionTextView.setText(mVersionText); } catch (PackageManager.NameNotFoundException e) { mVersionTextView.setText(e.getMessage());