1 /* src/vm/jit/trace.h - Functions for tracing from java code.
3 Copyright (C) 1996-2005, 2006, 2007 R. Grafl, A. Krall, C. Kruegel,
4 C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5 E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6 J. Wenninger, Institut f. Computersprachen - TU Wien
8 This file is part of CACAO.
10 This program is free software; you can redistribute it and/or
11 modify it under the terms of the GNU General Public License as
12 published by the Free Software Foundation; either version 2, or (at
13 your option) any later version.
15 This program is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25 $Id: trace.h 8304 2007-08-14 19:57:20Z pm $
29 #ifndef _VM_JIT_TRACE_H
30 #define _VM_JIT_TRACE_H
34 #include "vmcore/method.h"
38 /* trace_java_call_enter ******************************************************
40 Traces an entry into a java method.
42 arg_regs: Array of size ARG_CNT containing all argument registers in
43 the same format as in asm_vm_call_method. The array is usually allocated
44 on the stack and used for restoring the argument registers later.
46 stack: Pointer to first on stack argument in the same format passed to
49 *******************************************************************************/
51 void trace_java_call_enter(methodinfo *m, uint64_t *arg_regs, uint64_t *stack);
53 /* trace_java_call_exit ********************************************************
55 Traces an exit form a java method.
57 return_regs: Array of size 3 containing return registers:
59 [1] : REG_RESULT2 (if available on architecture)
61 The array is usually allocated on the stack and used for restoring the
62 registers later. The format of the array is the same as the format of
63 register arguments passed to asm_vm_call_method.
65 *******************************************************************************/
67 void trace_java_call_exit(methodinfo *m, uint64_t *return_regs);
69 #endif /* !defined(NDEBUG) */