diff options
author | RajithaY <rajithax.yerrumsetty@intel.com> | 2017-04-25 03:31:15 -0700 |
---|---|---|
committer | Rajitha Yerrumchetty <rajithax.yerrumsetty@intel.com> | 2017-05-22 06:48:08 +0000 |
commit | bb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch) | |
tree | ca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/trace/control-internal.h | |
parent | a14b48d18a9ed03ec191cf16b162206998a895ce (diff) |
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to
kvmfornfv repo and make use of the updated latest qemu for the
execution of all testcase
Change-Id: I1280af507a857675c7f81d30c95255635667bdd7
Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/trace/control-internal.h')
-rw-r--r-- | qemu/trace/control-internal.h | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/qemu/trace/control-internal.h b/qemu/trace/control-internal.h deleted file mode 100644 index dcf67f505..000000000 --- a/qemu/trace/control-internal.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Interface for configuring and controlling the state of tracing events. - * - * Copyright (C) 2011-2014 LluĂs Vilanova <vilanova@ac.upc.edu> - * - * This work is licensed under the terms of the GNU GPL, version 2 or later. - * See the COPYING file in the top-level directory. - */ - -#ifndef TRACE__CONTROL_INTERNAL_H -#define TRACE__CONTROL_INTERNAL_H - - - -extern TraceEvent trace_events[]; -extern bool trace_events_dstate[]; -extern int trace_events_enabled_count; - - -static inline TraceEventID trace_event_count(void) -{ - return TRACE_EVENT_COUNT; -} - -static inline TraceEvent *trace_event_id(TraceEventID id) -{ - assert(id < trace_event_count()); - return &trace_events[id]; -} - -static inline bool trace_event_is_pattern(const char *str) -{ - assert(str != NULL); - return strchr(str, '*') != NULL; -} - -static inline TraceEventID trace_event_get_id(TraceEvent *ev) -{ - assert(ev != NULL); - return ev->id; -} - -static inline const char * trace_event_get_name(TraceEvent *ev) -{ - assert(ev != NULL); - return ev->name; -} - -static inline bool trace_event_get_state_static(TraceEvent *ev) -{ - assert(ev != NULL); - return ev->sstate; -} - -static inline bool trace_event_get_state_dynamic_by_id(int id) -{ - return unlikely(trace_events_enabled_count) && trace_events_dstate[id]; -} - -static inline bool trace_event_get_state_dynamic(TraceEvent *ev) -{ - int id = trace_event_get_id(ev); - return trace_event_get_state_dynamic_by_id(id); -} - -static inline void trace_event_set_state_dynamic(TraceEvent *ev, bool state) -{ - int id = trace_event_get_id(ev); - assert(ev != NULL); - assert(trace_event_get_state_static(ev)); - trace_events_enabled_count += state - trace_events_dstate[id]; - trace_events_dstate[id] = state; -} - -#endif /* TRACE__CONTROL_INTERNAL_H */ |