lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 13 Sep 2013 23:18:21 -0700
From:	Andi Kleen <>
Subject: Re: [tip:perf/core] perf/x86/intel: Clean-up/reduce PEBS code

tip-bot for Peter Zijlstra <> 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.


-- -- Speaking for myself only
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists