Re: [tip:perf/core] perf/x86/intel: Clean-up/reduce PEBS code

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

 



tip-bot for Peter Zijlstra <tipbot@xxxxxxxxx> writes:
> +
> +	at  = (struct pebs_record_nhm *)(unsigned long)ds->pebs_buffer_base;
> +	top = (struct pebs_record_nhm *)(unsigned long)ds->pebs_index;
>  
>  	ds->pebs_index = ds->pebs_buffer_base;
>  
> +	n = (top - at) / x86_pmu.pebs_record_size;


This adds a full slow division to the PEBS hot path.

Does not seem like a improvement to me.

-Andi

-- 
ak@xxxxxxxxxxxxxxx -- Speaking for myself only
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Stable Commits]     [Linux Stable Kernel]     [Linux Kernel]     [Linux USB Devel]     [Linux Video &Media]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux