46 Profile->
Source = ProfileSource;
66 if (!SourceBuffer)
return FALSE;
74 if (!Profile->Started)
78 Profile->Started =
TRUE;
79 StartedProfile =
TRUE;
82 ProfileProcess = Profile->Process;
99 NextEntry = NextEntry->
Flink)
107 if (CurrentSource->
Source == Profile->Source)
119 CurrentSource = SourceBuffer;
122 CurrentSource->
Source = Profile->Source;
132 StartedProfile =
FALSE;
148 return StartedProfile;
165 if (Profile->Started)
169 Profile->Started =
FALSE;
170 StoppedProfile =
TRUE;
175 NextEntry = NextEntry->
Flink)
183 if (CurrentSource->
Source == Profile->Source)
198 StoppedProfile =
FALSE;
214 return StoppedProfile;
239 ProfileSourceInformation.
Source = ProfileSource;
242 &ProfileSourceInformation,
283 ProfileSourceInterval.
Source = ProfileSource;
287 &ProfileSourceInterval);
317 for (NextEntry = ListHead->
Flink;
318 NextEntry != ListHead;
319 NextEntry = NextEntry->
Flink)
#define NT_SUCCESS(StatCode)
IN CINT OUT PVOID IN ULONG OUT PULONG ReturnLength
#define RemoveEntryList(Entry)
#define InsertTailList(ListHead, Entry)
#define InsertHeadList(ListHead, Entry)
#define ExAllocatePoolWithTag(hernya, size, tag)
#define KeRaiseIrql(irql, oldIrql)
#define KeLowerIrql(oldIrql)
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
#define KeGetCurrentThread
VOID NTAPI HalStartProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
VOID NTAPI HalStopProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
ULONG_PTR NTAPI HalSetProfileInterval(IN ULONG_PTR Interval)
enum _KPROFILE_SOURCE KPROFILE_SOURCE
#define ExFreePoolWithTag(_P, _T)
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
struct _KPROFILE KPROFILE
#define KeGetTrapFramePc(TrapFrame)
BOOLEAN NTAPI KeStartProfile(IN PKPROFILE Profile, IN PVOID Buffer)
VOID NTAPI KeInitializeProfile(PKPROFILE Profile, PKPROCESS Process, PVOID ImageBase, SIZE_T ImageSize, ULONG BucketSize, KPROFILE_SOURCE ProfileSource, KAFFINITY Affinity)
VOID NTAPI KeSetProfileIrql(IN KIRQL ProfileIrql)
VOID NTAPI KeSetIntervalProfile(IN ULONG Interval, IN KPROFILE_SOURCE ProfileSource)
ULONG KiProfileTimeInterval
VOID NTAPI KeProfileInterrupt(IN PKTRAP_FRAME TrapFrame)
LIST_ENTRY KiProfileListHead
VOID NTAPI KiParseProfileList(IN PKTRAP_FRAME TrapFrame, IN KPROFILE_SOURCE Source, IN PLIST_ENTRY ListHead)
ULONG KiProfileAlignmentFixupInterval
LIST_ENTRY KiProfileSourceListHead
BOOLEAN NTAPI KeStopProfile(IN PKPROFILE Profile)
VOID NTAPI KeProfileInterruptWithSource(IN PKTRAP_FRAME TrapFrame, IN KPROFILE_SOURCE Source)
ULONG NTAPI KeQueryIntervalProfile(IN KPROFILE_SOURCE ProfileSource)
#define KeAcquireSpinLockAtDpcLevel(SpinLock)
#define KeReleaseSpinLockFromDpcLevel(SpinLock)
LIST_ENTRY ProfileListHead
struct _KPROCESS * Process
struct _LIST_ENTRY * Flink
#define RtlZeroMemory(Destination, Length)
#define CONTAINING_RECORD(address, type, field)
_In_ ULONG _In_ ULONG _In_ ULONG _Out_ PKIRQL _Out_ PKAFFINITY Affinity
#define HalQuerySystemInformation
@ HalProfileSourceInterval
@ HalProfileSourceInformation
#define HalSetSystemInformation
_Requires_lock_held_ Interrupt _Releases_lock_ Interrupt _In_ _IRQL_restores_ KIRQL OldIrql