Re: [PATCH 1/4] oprofile: Handle initialisation failure more gracefully

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Robert Richter
Date: Friday, August 27, 2010 - 9:38 am

On 27.08.10 11:15:25, Will Deacon wrote:


I am not sure if it is worth the memory handling code, we could
alternativly implement fixed size arrays with MAX_COUNTERS. This would
eas it a lot. But, this code will become generic, so we can stick with
this implementation.

But, cpu varables should be used, maybe with a later patch.


Great, many thanks.


This check is obsolete here as we do not call oprofile_arch_exit() on
failure.


Dito, obsolete now.


counter_config must be freed here.


If we shutdown all this in reverse order, this should be after the
loop.


Should be never NULL, the check can be removed.


	if (event)
		...


A 'return err;' here would remove the goto. I would preffer this.

Thanks,

-Robert


-- 
Advanced Micro Devices, Inc.
Operating System Research Center

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/4] oprofile: Handle initialisation failure mo ..., Robert Richter, (Fri Aug 27, 9:38 am)