Re: determine likely/unlikely ratio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 31, 2007 at 03:01:52AM +0100, Roel Kluin wrote:

> Isn't it possible to determine the likely/unlikely ratio's?
> I've come up with this idea:
> 
> Change the definition of likely and unlikely - with a DEBUG_LIKELINESS config
> option set - let the macro use __FILE__ and __LINE__ to determine where the 
> (un/)likely occurred. Evaluate the condition, and log those.
>...
> Comments welcome

Look at profile-likely-unlikely-macros.patch in -mm.

> Roel

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux