This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Small fix to HP timing printing


Hi, when developing my dynamic linker DSO sorting patch [1], and measuring its
cycle performance, I found a small error in the HP_TIMING_PRINT trailing zero
setting; the '\0' should be set at MIN(Len,string length), instead of always
at the 'Len' position. Encountered some weirdness in printing counter results
because of this.

Okay for master?

[1] https://sourceware.org/ml/libc-alpha/2019-07/msg00472.html
    https://sourceware.org/ml/libc-alpha/2019-07/msg00473.html

Thanks,
Chung-Lin

	* sysdeps/generic/hp-timing-common.h (HP_TIMING_PRINT): Correct position
	of string null termination.

Attachment: hp-timing-common.h.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]