mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 12:12:16 +00:00
hv: clean up function definitions in profiling.h
seperate the function definitions into debug/release directories to better distinguish debug/release libraries Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
parent
14f30a23c1
commit
2d2f96afce
@ -8,20 +8,11 @@
|
|||||||
#define PROFILING_H
|
#define PROFILING_H
|
||||||
|
|
||||||
#ifdef PROFILING_ON
|
#ifdef PROFILING_ON
|
||||||
|
|
||||||
#include <profiling_internal.h>
|
#include <profiling_internal.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
void profiling_vmenter_handler(struct acrn_vcpu *vcpu);
|
void profiling_vmenter_handler(struct acrn_vcpu *vcpu);
|
||||||
void profiling_vmexit_handler(struct acrn_vcpu *vcpu, uint64_t exit_reason);
|
void profiling_vmexit_handler(struct acrn_vcpu *vcpu, uint64_t exit_reason);
|
||||||
void profiling_setup(void);
|
void profiling_setup(void);
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
static inline void profiling_vmenter_handler(__unused struct acrn_vcpu *vcpu) {}
|
|
||||||
static inline void profiling_vmexit_handler(__unused struct acrn_vcpu *vcpu,
|
|
||||||
__unused uint64_t exit_reason) {}
|
|
||||||
static inline void profiling_setup(void) {}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* PROFILING_H */
|
#endif /* PROFILING_H */
|
||||||
|
11
hypervisor/release/profiling.c
Normal file
11
hypervisor/release/profiling.c
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <hypervisor.h>
|
||||||
|
|
||||||
|
void profiling_vmenter_handler(__unused struct acrn_vcpu *vcpu) {}
|
||||||
|
void profiling_vmexit_handler(__unused struct acrn_vcpu *vcpu, __unused uint64_t exit_reason) {}
|
||||||
|
void profiling_setup(void) {}
|
Loading…
Reference in New Issue
Block a user