mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-11 07:19:20 +00:00
Renamed "__no_instrument_function"
This commit is contained in:
@ -10,7 +10,7 @@ unsigned long long LogDepth = 0;
|
||||
unsigned int Level = 0;
|
||||
using namespace UniversalAsynchronousReceiverTransmitter;
|
||||
|
||||
static inline SafeFunction __no_instrument_function void profiler_uart_wrapper(char c, void *unused)
|
||||
static inline SafeFunction NIF void profiler_uart_wrapper(char c, void *unused)
|
||||
{
|
||||
bool renable = EnableProfiler;
|
||||
EnableProfiler = false;
|
||||
@ -20,7 +20,7 @@ static inline SafeFunction __no_instrument_function void profiler_uart_wrapper(c
|
||||
EnableProfiler = true;
|
||||
}
|
||||
|
||||
EXTERNC SafeFunction __no_instrument_function void __cyg_profile_func_enter(void *Function, void *CallSite)
|
||||
EXTERNC SafeFunction NIF void __cyg_profile_func_enter(void *Function, void *CallSite)
|
||||
{
|
||||
if (!EnableProfiler)
|
||||
return;
|
||||
@ -53,7 +53,7 @@ EXTERNC SafeFunction __no_instrument_function void __cyg_profile_func_enter(void
|
||||
Wait = false;
|
||||
}
|
||||
|
||||
EXTERNC SafeFunction __no_instrument_function void __cyg_profile_func_exit(void *Function, void *CallSite)
|
||||
EXTERNC SafeFunction NIF void __cyg_profile_func_exit(void *Function, void *CallSite)
|
||||
{
|
||||
if (!EnableProfiler)
|
||||
return;
|
||||
|
@ -38,7 +38,7 @@ struct gcov_info
|
||||
struct gcov_ctr_info counts[0];
|
||||
};
|
||||
|
||||
static inline SafeFunction __no_instrument_function void gcov_uart_wrapper(char c, void *unused)
|
||||
static inline SafeFunction NIF void gcov_uart_wrapper(char c, void *unused)
|
||||
{
|
||||
UART(COM2).Write(c);
|
||||
UNUSED(unused);
|
||||
@ -46,25 +46,25 @@ static inline SafeFunction __no_instrument_function void gcov_uart_wrapper(char
|
||||
|
||||
// TODO: Implement
|
||||
|
||||
EXTERNC SafeFunction __no_instrument_function void __gcov_init(gcov_info *p __unused)
|
||||
EXTERNC SafeFunction NIF void __gcov_init(gcov_info *p __unused)
|
||||
{
|
||||
}
|
||||
|
||||
EXTERNC SafeFunction __no_instrument_function void __gcov_exit(void)
|
||||
EXTERNC SafeFunction NIF void __gcov_exit(void)
|
||||
{
|
||||
}
|
||||
|
||||
EXTERNC SafeFunction __no_instrument_function void __gcov_flush(void)
|
||||
EXTERNC SafeFunction NIF void __gcov_flush(void)
|
||||
{
|
||||
}
|
||||
|
||||
EXTERNC SafeFunction __no_instrument_function void __gcov_merge_add(gcov_type *counters, unsigned int n_counters)
|
||||
EXTERNC SafeFunction NIF void __gcov_merge_add(gcov_type *counters, unsigned int n_counters)
|
||||
{
|
||||
UNUSED(counters);
|
||||
UNUSED(n_counters);
|
||||
}
|
||||
|
||||
EXTERNC SafeFunction __no_instrument_function void __gcov_merge_single(gcov_type *counters, unsigned int n_counters)
|
||||
EXTERNC SafeFunction NIF void __gcov_merge_single(gcov_type *counters, unsigned int n_counters)
|
||||
{
|
||||
UNUSED(counters);
|
||||
UNUSED(n_counters);
|
||||
|
@ -6,13 +6,13 @@
|
||||
|
||||
using namespace UniversalAsynchronousReceiverTransmitter;
|
||||
|
||||
static inline SafeFunction __no_instrument_function void gprof_uart_wrapper(char c, void *unused)
|
||||
static inline SafeFunction NIF void gprof_uart_wrapper(char c, void *unused)
|
||||
{
|
||||
UART(COM2).Write(c);
|
||||
UNUSED(unused);
|
||||
}
|
||||
|
||||
EXTERNC SafeFunction __no_instrument_function void mcount(unsigned long frompc, unsigned long selfpc)
|
||||
EXTERNC SafeFunction NIF void mcount(unsigned long frompc, unsigned long selfpc)
|
||||
{
|
||||
// TODO: Implement
|
||||
/* https://docs.kernel.org/trace/ftrace-design.html */
|
||||
|
Reference in New Issue
Block a user