mirror of
https://github.com/xemu-project/xemu.git
synced 2025-04-02 11:11:48 -04:00
Going forward with simpletrace v2 variable size trace records, we cannot have a generic function to print trace event info and therefore this interface becomes invalid. As per Stefan Hajnoczi: "This command is only available from the human monitor. It's not very useful because it historically hasn't been able to pretty-print events or show them in the right order (we use a ringbuffer but it prints them out from index 0). Therefore, I don't think we're under any obligation to keep this command around. No one has complained about it's limitations - I think this is a sign that no one has used it. I'd be okay with a patch that removes it." Ref: http://lists.gnu.org/archive/html/qemu-devel/2012-01/msg01268.html Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
37 lines
1.1 KiB
C
37 lines
1.1 KiB
C
/*
|
|
* Simple trace backend
|
|
*
|
|
* Copyright IBM, Corp. 2010
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2. See
|
|
* the COPYING file in the top-level directory.
|
|
*
|
|
*/
|
|
|
|
#ifndef TRACE_SIMPLE_H
|
|
#define TRACE_SIMPLE_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <stdio.h>
|
|
|
|
typedef uint64_t TraceEventID;
|
|
|
|
typedef struct {
|
|
const char *tp_name;
|
|
bool state;
|
|
} TraceEvent;
|
|
|
|
void trace0(TraceEventID event);
|
|
void trace1(TraceEventID event, uint64_t x1);
|
|
void trace2(TraceEventID event, uint64_t x1, uint64_t x2);
|
|
void trace3(TraceEventID event, uint64_t x1, uint64_t x2, uint64_t x3);
|
|
void trace4(TraceEventID event, uint64_t x1, uint64_t x2, uint64_t x3, uint64_t x4);
|
|
void trace5(TraceEventID event, uint64_t x1, uint64_t x2, uint64_t x3, uint64_t x4, uint64_t x5);
|
|
void trace6(TraceEventID event, uint64_t x1, uint64_t x2, uint64_t x3, uint64_t x4, uint64_t x5, uint64_t x6);
|
|
void st_print_trace_file_status(FILE *stream, fprintf_function stream_printf);
|
|
void st_set_trace_file_enabled(bool enable);
|
|
bool st_set_trace_file(const char *file);
|
|
void st_flush_trace_buffer(void);
|
|
|
|
#endif /* TRACE_SIMPLE_H */
|