diff options
author | David 'Digit' Turner <digit@android.com> | 2011-05-12 10:26:09 +0200 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2011-06-01 17:08:19 +0200 |
commit | 406a59bd0a2e7a38cd840a5c08602e3a36bd2df8 (patch) | |
tree | e9dbb51e71a14aa9118f8e9c980d4722abb04fd8 /trace.h | |
parent | 288208c386810fef725aa448a9f46bd2772bec8c (diff) | |
download | external_qemu-406a59bd0a2e7a38cd840a5c08602e3a36bd2df8.zip external_qemu-406a59bd0a2e7a38cd840a5c08602e3a36bd2df8.tar.gz external_qemu-406a59bd0a2e7a38cd840a5c08602e3a36bd2df8.tar.bz2 |
trace.h: rename to trace-android.h
This is done to allow for future integration of the
upstream auto-generated "trace.h" header file.
Change-Id: I9d1bba3320d9e8acfd7359540d3ed6695773061e
Diffstat (limited to 'trace.h')
-rw-r--r-- | trace.h | 64 |
1 files changed, 0 insertions, 64 deletions
@@ -1,64 +0,0 @@ -/* Copyright (C) 2006-2007 The Android Open Source Project -** -** This software is licensed under the terms of the GNU General Public -** License version 2, as published by the Free Software Foundation, and -** may be copied, distributed, and modified under those terms. -** -** This program is distributed in the hope that it will be useful, -** but WITHOUT ANY WARRANTY; without even the implied warranty of -** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -** GNU General Public License for more details. -*/ - -#ifndef TRACE_H -#define TRACE_H - -#include <inttypes.h> -#include "trace_common.h" - -extern uint64_t start_time, end_time; -extern uint64_t elapsed_usecs; -extern uint64_t Now(); - -struct TranslationBlock; - -// The simulated time, in clock ticks, starting with one. -extern uint64_t sim_time; -extern uint64_t trace_static_bb_num(void);; - -// This variable == 1 if we are currently tracing, otherwise == 0. -extern int tracing; -extern int trace_all_addr; -extern int trace_cache_miss; - -extern void start_tracing(); -extern void stop_tracing(); -extern void trace_init(const char *filename); -extern void trace_bb_start(uint32_t bb_addr); -extern void trace_add_insn(uint32_t insn, int is_thumb); -extern void trace_bb_end(); - -extern int get_insn_ticks_arm(uint32_t insn); -extern int get_insn_ticks_thumb(uint32_t insn); - -extern void trace_exception(uint32_t pc); -extern void trace_bb_helper(uint64_t bb_num, struct TranslationBlock *tb); -extern void trace_insn_helper(); -extern void sim_dcache_load(uint32_t addr); -extern void sim_dcache_store(uint32_t addr, uint32_t val); -extern void sim_dcache_swp(uint32_t addr); -extern void trace_interpreted_method(uint32_t addr, int call_type); - -extern const char *trace_filename; -extern int tracing; -extern int trace_cache_miss; -extern int trace_all_addr; - -// Trace process/thread operations -extern void trace_switch(int pid); -extern void trace_fork(int tgid, int pid); -extern void trace_clone(int tgid, int pid); -extern void trace_exit(int exitcode); -extern void trace_name(char *name); - -#endif /* TRACE_H */ |