X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/cb3231590a3c94ab4375e2228bd5e86b0cf1ad7e..HEAD:/bsd/dev/dtrace/sdt_subr.c diff --git a/bsd/dev/dtrace/sdt_subr.c b/bsd/dev/dtrace/sdt_subr.c index c9c52fb6a..67f056dab 100644 --- a/bsd/dev/dtrace/sdt_subr.c +++ b/bsd/dev/dtrace/sdt_subr.c @@ -73,6 +73,14 @@ static dtrace_pattr_t sdt_attr = { { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_ISA }, }; +static dtrace_pattr_t hv_attr = { + { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_ISA }, + { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN }, + { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN }, + { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN }, + { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_ISA }, +}; + sdt_provider_t sdt_providers[] = { { "vtrace", "__vtrace____", &vtrace_attr, 0 }, { "sysinfo", "__cpu_sysinfo____", &info_attr, 0 }, @@ -95,6 +103,7 @@ sdt_provider_t sdt_providers[] = { #if KASAN { "kasan", "__kasan____", &stab_attr, 0 }, #endif + { "hv", "__hv____", &hv_attr, 0 }, { NULL, NULL, NULL, 0 } }; @@ -959,6 +968,13 @@ sdt_argdesc_t sdt_args[] = { {"vminfo", "zalloc", 1, 1, "void*", "void*" }, {"vminfo", "zfree", 0, 0, "zone_t", "zone_t" }, {"vminfo", "zfree", 1, 1, "void*", "void*" }, + {"hv", "guest-enter", 0, 0, "uint32_t", "uint32_t" }, + {"hv", "guest-enter", 1, 1, "uint64_t *", "guest_regs_t *" }, + {"hv", "guest-exit", 0, 0, "uint32_t", "uint32_t" }, + {"hv", "guest-exit", 1, 1, "uint64_t *", "guest_regs_t *" }, + {"hv", "guest-error", 0, 0, "uint32_t", "uint32_t" }, + {"hv", "guest-error", 1, 1, "uint64_t *", "guest_regs_t *" }, + {"hv", "guest-error", 2, 2, "uint32_t", "uint32_t" }, { NULL, NULL, 0, 0, NULL, NULL } };