You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
void postProfSampleCostCentre(Capability *cap,
CostCentreStack *stack,
StgWord64 tick)
{
/* SNIP */
postEventHeader(&eventBuf, EVENT_PROF_SAMPLE_COST_CENTRE);
postPayloadSize(&eventBuf, len);
postWord32(&eventBuf, cap->no); /* THIS IS THE NOTABLE LINE */
postWord64(&eventBuf, tick);
/* SNIP */
}
This seems to be an inconsistency between ghc master and ghc-events master -- I haven't done the due diligence to check wheter ghc master has changed this recently, eg.
Or perhaps there's an implicit assumption that CapNo i is the sole member of Capset i?
So either there's a mismatch that should be fixed or I think it's deserving of a comment on profCapset. Thanks!
The text was updated successfully, but these errors were encountered:
I think the first field of
ProfSampleCostCentre
should beprofCap :: !CapNo
instead ofprofCapset :: !Capset
.ghc-events/src/GHC/RTS/EventTypes.hs
Lines 437 to 442 in 0fb2c17
ghc-events/src/GHC/RTS/Events/Binary.hs
Lines 895 to 914 in 85b9129
https://github.com/ghc/ghc/blob/73b22ff196160036ac10b762bf3a363fa8a451ad/rts/eventlog/EventLog.c#L1317-L1340 has
This seems to be an inconsistency between ghc master and ghc-events master -- I haven't done the due diligence to check wheter ghc master has changed this recently, eg.
Or perhaps there's an implicit assumption that
CapNo i
is the sole member ofCapset i
?So either there's a mismatch that should be fixed or I think it's deserving of a comment on
profCapset
. Thanks!The text was updated successfully, but these errors were encountered: