blob: 54471b0de4c6e33138b228b878199fcc95fd32a8 [file] [log] [blame]
Angel Pons118a9c72020-04-02 23:48:34 +02001/* SPDX-License-Identifier: GPL-2.0-only */
2/* This file is part of the coreboot project. */
Rudolf Marek7f0e9302011-09-02 23:23:41 +02003
4#include <types.h>
5#include <console/console.h>
6#include <trace.h>
7
8int volatile trace_dis = 0;
9
Stefan Reinauercbc04162016-08-01 12:20:40 -070010void __cyg_profile_func_enter(void *func, void *callsite)
Rudolf Marek7f0e9302011-09-02 23:23:41 +020011{
12
13 if (trace_dis)
14 return;
15
16 DISABLE_TRACE
Julius Werner540a9802019-12-09 13:03:29 -080017 printk(BIOS_INFO, "~%p(%p)\n", func, callsite);
Rudolf Marek7f0e9302011-09-02 23:23:41 +020018 ENABLE_TRACE
19}
20
Stefan Reinauercbc04162016-08-01 12:20:40 -070021void __cyg_profile_func_exit(void *func, void *callsite)
Rudolf Marek7f0e9302011-09-02 23:23:41 +020022{
23}