Angel Pons | 118a9c7 | 2020-04-02 23:48:34 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | /* This file is part of the coreboot project. */ |
Rudolf Marek | 7f0e930 | 2011-09-02 23:23:41 +0200 | [diff] [blame] | 3 | |
| 4 | #include <types.h> |
| 5 | #include <console/console.h> |
| 6 | #include <trace.h> |
| 7 | |
| 8 | int volatile trace_dis = 0; |
| 9 | |
Stefan Reinauer | cbc0416 | 2016-08-01 12:20:40 -0700 | [diff] [blame] | 10 | void __cyg_profile_func_enter(void *func, void *callsite) |
Rudolf Marek | 7f0e930 | 2011-09-02 23:23:41 +0200 | [diff] [blame] | 11 | { |
| 12 | |
| 13 | if (trace_dis) |
| 14 | return; |
| 15 | |
| 16 | DISABLE_TRACE |
Julius Werner | 540a980 | 2019-12-09 13:03:29 -0800 | [diff] [blame] | 17 | printk(BIOS_INFO, "~%p(%p)\n", func, callsite); |
Rudolf Marek | 7f0e930 | 2011-09-02 23:23:41 +0200 | [diff] [blame] | 18 | ENABLE_TRACE |
| 19 | } |
| 20 | |
Stefan Reinauer | cbc0416 | 2016-08-01 12:20:40 -0700 | [diff] [blame] | 21 | void __cyg_profile_func_exit(void *func, void *callsite) |
Rudolf Marek | 7f0e930 | 2011-09-02 23:23:41 +0200 | [diff] [blame] | 22 | { |
| 23 | } |