* Added option "-r, --recorded" to profile: this will now retrieve the kernel
profile data area, and evaluate its data - it doesn't produce any output yet, though. * _user_system_profiler_recorded() now also makes sure the userland app can read from the buffer area. * Fixed leak in SharedImage::Init(). * Made the symbol retriever more smart when it deals with kernel images; if the image ID is no longer available, it will now use the path based image symbol iterator (and also adds the boot kernel path, in case the module don't have one). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31653 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1362,10 +1362,13 @@ _user_system_profiler_recorded(struct system_profiler_parameters* userParameters
|
||||
if (newArea < 0)
|
||||
return newArea;
|
||||
|
||||
sRecordedParameters->buffer_area = newArea;
|
||||
status_t status = set_area_protection(newArea, B_READ_AREA);
|
||||
if (status == B_OK) {
|
||||
sRecordedParameters->buffer_area = newArea;
|
||||
|
||||
status_t status = user_memcpy(userParameters, sRecordedParameters,
|
||||
sizeof(system_profiler_parameters));
|
||||
status = user_memcpy(userParameters, sRecordedParameters,
|
||||
sizeof(system_profiler_parameters));
|
||||
}
|
||||
if (status != B_OK)
|
||||
delete_area(newArea);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user