From ad1051089c0527c109cbc77c63c37674c73641f2 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Sat, 28 Aug 2021 04:38:58 -0700 Subject: [PATCH] UserspaceEmulator: Profiles are now expected to have a `strings` array The kernel profiles were recently changed to have a `strings` array as part of the profile objects. The `ProfileViewer` now checks for that during startup and declares the profile invalid if the array is not present. The UserspaceEmulator doesn't use the API which the kernel exposed the string array for, so just fake it by always adding an empty array to the generated profiles. --- Userland/DevTools/UserspaceEmulator/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/DevTools/UserspaceEmulator/main.cpp b/Userland/DevTools/UserspaceEmulator/main.cpp index f697cdafa0..e66dc09123 100644 --- a/Userland/DevTools/UserspaceEmulator/main.cpp +++ b/Userland/DevTools/UserspaceEmulator/main.cpp @@ -110,7 +110,7 @@ int main(int argc, char** argv, char** env) rc = emulator.exec(); if (dump_profile) - emulator.profile_stream().write_or_error(R"(]})"sv.bytes()); + emulator.profile_stream().write_or_error(R"(], "strings": []})"sv.bytes()); return rc; }