mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 12:18:25 +00:00
ProfileViewer: Interpret addresses >= 0xc0000000 as kernel frames
This commit is contained in:
@@ -35,7 +35,8 @@ Profile::Profile(const JsonArray& json)
|
||||
if (frames_array.size() < 2)
|
||||
continue;
|
||||
|
||||
sample.in_kernel = frames_array.at(1).as_object().get("address").to_number<u32>() < (8 * MB);
|
||||
u32 innermost_frame_address = frames_array.at(1).as_object().get("address").to_number<u32>();
|
||||
sample.in_kernel = innermost_frame_address >= 0xc0000000 || innermost_frame_address < (8 * MB);
|
||||
|
||||
for (int i = frames_array.size() - 1; i >= 1; --i) {
|
||||
auto& frame_value = frames_array.at(i);
|
||||
|
||||
Reference in New Issue
Block a user