3 * \brief L4 kernel event tracing
7 * (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
8 * Björn Döbel <doebel@os.inf.tu-dresden.de>,
9 * Torsten Frenzel <frenzel@os.inf.tu-dresden.de>
10 * economic rights: Technische Universität Dresden (Germany)
12 * This file is part of TUD:OS and distributed under the terms of the
13 * GNU General Public License 2.
14 * Please see the COPYING-GPL-2 file for details.
16 * As a special exception, you may use this file as part of a free software
17 * library without restriction. Specifically, if other files instantiate
18 * templates or use macros or inline functions from this file, or you compile
19 * this file and link it with other files to produce an executable, this
20 * file does not by itself cause the resulting executable to be covered by
21 * the GNU General Public License. This exception does not however
22 * invalidate any other reasons why the executable file might be covered by
23 * the GNU General Public License.
25 /*****************************************************************************/
28 #ifndef __L4_KTRACE_H__
29 #error "Do not include this file directly."
32 L4_INLINE l4_tracebuffer_status_t *
33 fiasco_tbuf_get_status(void)
35 l4_tracebuffer_status_t *tbuf;
36 asm("int $3; cmpb $29, %%al" : "=a" (tbuf) : "0" (0));
41 fiasco_tbuf_get_status_phys(void)
44 asm("int $3; cmpb $29, %%al" : "=a" (tbuf_phys) : "0" (5));
49 fiasco_tbuf_log(const char *text)
52 asm volatile("int $3; cmpb $29, %%al"
54 : "a" (1), "d" (text));
59 fiasco_tbuf_log_3val(const char *text, l4_umword_t v1, l4_umword_t v2, l4_umword_t v3)
62 asm volatile("int $3; cmpb $29, %%al"
64 : "a" (4), "d" (text), "c" (v1), "S" (v2), "D" (v3) : "cc");
69 fiasco_tbuf_clear(void)
71 asm volatile("int $3; cmpb $29, %%al" : : "a" (2));
75 fiasco_tbuf_dump(void)
77 asm volatile("int $3; cmpb $29, %%al" : : "a" (3));
81 fiasco_timer_disable(void)
83 asm volatile("int $3; cmpb $29, %%al" : : "a" (6));
87 fiasco_timer_enable(void)
89 asm volatile("int $3; cmpb $29, %%al" : : "a" (7));
93 fiasco_tbuf_log_binary(const unsigned char *data)
96 asm volatile("int $3; cmpb $29, %%al"
98 : "a" (8), "d" (data));