Skip to contentSkip to conversation

perfmon doesn't send SIGPROF in

perfmon Eric Piel 1 participant 1 message Apr 18, 2003

lore
Share & tools
lore

Eric Piel

author
#0 lore raw
Quoted 5 lines · Stephane Eranian

The attached patch against 2.5.67 corrects the problem. Note that this patch also includes other updates.

Let me know how it goes.

Very good, it worked!:

# ./realfeel4 
897.528 MHz
secondsPerTick=1.11417e-09
ticksPerSecond‰7528470.872679
sample_period = 6282699
smallest = 4511, largest = 8271, nsamples = 1426, sigma = 6869234,
sigmasqr = 33252330632
Mean 4817.13, stddev 337.37

Thank you!

Also, after a quick glance at the patch I noticed this update:
-/* pmc8 */ { PFM_REG_CONFIG , 0, 0xffffffff3fffffffUL, 0xffffffff9fffffffUL, NULL, pfm_mck_pmc_check, {0UL,0UL, 0UL, 0UL}, {0UL,0UL, 0UL, 0UL}},
-/* pmc9 */ { PFM_REG_CONFIG , 0, 0xffffffff3ffffffcUL, 0xffffffff9fffffffUL, NULL, pfm_mck_pmc_check, {0UL,0UL, 0UL, 0UL}, {0UL,0UL, 0UL, 0UL}},
+/* pmc8 */ { PFM_REG_CONFIG , 0, 0xffffffff3fffffffUL, 0xffffffff3fffffffUL, NULL, pfm_mck_pmc_check, {0UL,0UL, 0UL, 0UL}, {0UL,0UL, 0UL, 0UL}},
+/* pmc9 */ { PFM_REG_CONFIG , 0, 0xffffffff3ffffffcUL, 0xffffffff3fffffffUL, NULL, pfm_mck_pmc_check, {0UL,0UL, 0UL, 0UL}, {0UL,0UL, 0UL, 0UL}},

Could you describe shortly what this is suppose to fix? Recently I had some troubles with some PMU counters on Itanium2 (hard to trigger) and I wonder if this could be solved by that patch...

Eric