acrn-hypervisor/hypervisor/release/trace.c
Gao, Shiqing f398b9c29e release: fix the compilation error in release mode
Commit `512c98fd7 hv: trace: show cpu usage of vms in pcpu sharing case`
causes the compilation error in release mode:
  hypervisor/common/schedule.c:190: undefined reference to `TRACE_16STR'

This patch fixes this issue.

Tracked-On: #861

Signed-off-by: Gao, Shiqing <shiqing.gao@intel.com>
2024-07-03 11:26:01 +08:00

22 lines
574 B
C

/*
* Copyright (C) 2018-2022 Intel Corporation.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <types.h>
void TRACE_2L(__unused uint32_t evid, __unused uint64_t e, __unused uint64_t f) {}
void TRACE_4I(__unused uint32_t evid, __unused uint32_t a, __unused uint32_t b,
__unused uint32_t c, __unused uint32_t d)
{
}
void TRACE_6C(__unused uint32_t evid, __unused uint8_t a1, __unused uint8_t a2,
__unused uint8_t a3, __unused uint8_t a4, __unused uint8_t b1, __unused uint8_t b2)
{
}
void TRACE_16STR(__unused uint32_t evid, __unused const char name[]) {}