summaryrefslogtreecommitdiff
path: root/Userland/DevTools/UserspaceEmulator
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-08-28 04:38:58 -0700
committerAndreas Kling <kling@serenityos.org>2021-08-28 20:03:08 +0200
commitad1051089c0527c109cbc77c63c37674c73641f2 (patch)
tree455227c098b806a6428084da6bbf04f88455c9a0 /Userland/DevTools/UserspaceEmulator
parente00c871f650c9178c1d1b8975bb1551d925287f3 (diff)
downloadserenity-ad1051089c0527c109cbc77c63c37674c73641f2.zip
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.
Diffstat (limited to 'Userland/DevTools/UserspaceEmulator')
-rw-r--r--Userland/DevTools/UserspaceEmulator/main.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}