New cvar `audit_handle_lifecycle` (Auditing group, default false). When enabled, emits one-line XELOGKERNEL traces tagged AUDIT-HLC at: NtCreateEvent return, NtSetEvent entry, KeSetEvent entry, NtWaitForSingleObjectEx entry + completion, EmulateCPInterruptDPC entry. Observation-only: zero-overhead when cvar off (single branch + flag read). Intended for handle disambiguation between xenia-rs and canary under the Wine cross-build oracle. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
19 lines
743 B
C
19 lines
743 B
C
/**
|
|
******************************************************************************
|
|
* Xenia : Xbox 360 Emulator Research Project *
|
|
******************************************************************************
|
|
* Copyright 2013 Ben Vanik. All rights reserved. *
|
|
* Released under the BSD license - see LICENSE in the root for more details. *
|
|
******************************************************************************
|
|
*/
|
|
|
|
#ifndef XENIA_KERNEL_KERNEL_FLAGS_H_
|
|
#define XENIA_KERNEL_KERNEL_FLAGS_H_
|
|
#include "xenia/base/cvar.h"
|
|
|
|
DECLARE_bool(headless);
|
|
DECLARE_bool(log_high_frequency_kernel_calls);
|
|
DECLARE_bool(audit_handle_lifecycle);
|
|
|
|
#endif // XENIA_KERNEL_KERNEL_FLAGS_H_
|