Re: [patch] perf_event_open.2: update time_shift sample code

2016-10-20 Thread Michael Kerrisk (man-pages)
On 10/21/2016 06:38 AM, Vince Weaver wrote: > > Linux 4.3 (b20112edeadf0b8a1416de061caa4beb11539902) improved > the accuracy of the clock/ns conversion routines. As a result > the shift factor can now be 32. This value is directly > exported in the perf_event_open() mmap page, and this > potenti

[patch] perf_event_open.2: update time_shift sample code

2016-10-20 Thread Vince Weaver
Linux 4.3 (b20112edeadf0b8a1416de061caa4beb11539902) improved the accuracy of the clock/ns conversion routines. As a result the shift factor can now be 32. This value is directly exported in the perf_event_open() mmap page, and this potentially breaks the sample code that shifts 1 left by the sh