커널 추적 컨트롤 API 참조

이 API를 사용하면 커널 스택 추적을 캡처하고, 분석을 위해 여러 추적 파일을 병합하고, 힙 추적을 수행하고, 병합된 파일에 시스템 정보를 포함할 수 있습니다.

커널 추적 컨트롤 API는 Windows Vista에서 사용할 수 있게 되었습니다.

Windows 7 및 Windows Vista에서 x64 시스템의 stackwalk를 사용하려면 HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management에서 DisablePagingExecutive 레지스트리 값을 설정해야 합니다. 자세한 내용은 DisablePagingExecutive를 참조하세요.

참고 Windows 8 이상인 시스템은 이 레지스트리를 변경할 필요가 없습니다.

다음 예제에서는 이 레지스트리 값을 쿼리하는 방법을 보여 줍니다.

@REG QUERY "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management" -v DisablePagingExecutive

다음 예제에서는 stackwalk를 사용하도록 설정하는 방법을 보여 줍니다.

@REG ADD "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management" -v DisablePagingExecutive -d 0x1 -t REG_DWORD -f
@IF NOT %ERRORLEVEL% == 0 echo error: Could not configure system for 64-bit stackwalking. Please run this script from an elevated administrator console.

참고 이러한 변경 내용을 적용하려면 시스템을 다시 시작해야 합니다.

다음 예제에서는 stackwalk를 사용하지 않도록 설정하는 방법을 보여 줍니다.

@REG ADD "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management" -v DisablePagingExecutive -d 0x0 -t REG_DWORD -f
@IF NOT %ERRORLEVEL% == 0 echo error: Could not remove 64-bit stackwalking configuration. Please run this script from an elevated administrator console.

참고 이러한 변경 내용을 적용하려면 시스템을 다시 시작해야 합니다.

섹션 내용

함수

구조체

제어 플래그 추적

제어 이벤트 유형 추적

시스템 정보 사용자 지정 삽입

Windows Performance Toolkit 기술 참조