[DTrace-devel] [PATCH 3/3] test: Mimic dtrace arithmetic more closely for avg/stddev

Eugene Loh eugene.loh at oracle.com
Wed Jul 16 19:51:51 UTC 2025


On 7/16/25 09:22, Nick Alcock wrote:

> On 1 May 2025, eugene loh stated:
>
>> From: Eugene Loh <eugene.loh at oracle.com>
>>
>> The multicpus test checks that data from multiple CPUs is aggregated
>> properly.  Operations like avg() and stddev() require division.
>> DTrace uses integer division, while awk does not.
> Oops!
>
>> for example, CPUs are not numbered consecutively.  More typically,
>> there may be a problem that the profile probe is not firing on every
>> expected CPU.  So a test failure probably was a sign of a problem,
>> but that's a different problem, one beyond the scope of this test.
> ... is there anything else that tests for those other problems?

I sure thought so, but I can't find anything and the obvious place to 
look is test/unittest/profile.  Frankly, I thought there were some 
"quality of profile" tests (like if I want a probe firing every 500 
msec, how often does the probe actually fire?).

>> Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
> Reviewed-by: Nick Alcock <nick.alcock at oracle.com>



More information about the DTrace-devel mailing list