VOID
NTAPI
-KeSetIntervalProfile(IN KPROFILE_SOURCE ProfileSource,
- IN ULONG Interval)
+KeSetIntervalProfile(IN ULONG Interval,
+ IN KPROFILE_SOURCE ProfileSource)
{
HAL_PROFILE_SOURCE_INTERVAL ProfileSourceInterval;
}
/* Get the Pointer to the Bucket Value representing this Program Counter */
- BucketValue = (PULONG)((((ULONG_PTR)Profile->Buffer +
- (ProgramCounter - (ULONG_PTR)Profile->RangeBase))
- >> Profile->BucketShift) &~ 0x3);
+ BucketValue = (PULONG)((ULONG_PTR)Profile->Buffer +
+ (((ProgramCounter - (ULONG_PTR)Profile->RangeBase)
+ >> Profile->BucketShift) &~ 0x3));
/* Increment the value */
- ++BucketValue;
+ (*BucketValue)++;
}
}