|
@@ -471,49 +471,6 @@ bool qemu_plugin_bool_parse(const char *name, const char *value, bool *ret)
|
|
return name && value && qapi_bool_parse(name, value, ret, NULL);
|
|
return name && value && qapi_bool_parse(name, value, ret, NULL);
|
|
}
|
|
}
|
|
|
|
|
|
-/*
|
|
|
|
- * Binary path, start and end locations
|
|
|
|
- */
|
|
|
|
-const char *qemu_plugin_path_to_binary(void)
|
|
|
|
-{
|
|
|
|
- char *path = NULL;
|
|
|
|
-#ifdef CONFIG_USER_ONLY
|
|
|
|
- TaskState *ts = get_task_state(current_cpu);
|
|
|
|
- path = g_strdup(ts->bprm->filename);
|
|
|
|
-#endif
|
|
|
|
- return path;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-uint64_t qemu_plugin_start_code(void)
|
|
|
|
-{
|
|
|
|
- uint64_t start = 0;
|
|
|
|
-#ifdef CONFIG_USER_ONLY
|
|
|
|
- TaskState *ts = get_task_state(current_cpu);
|
|
|
|
- start = ts->info->start_code;
|
|
|
|
-#endif
|
|
|
|
- return start;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-uint64_t qemu_plugin_end_code(void)
|
|
|
|
-{
|
|
|
|
- uint64_t end = 0;
|
|
|
|
-#ifdef CONFIG_USER_ONLY
|
|
|
|
- TaskState *ts = get_task_state(current_cpu);
|
|
|
|
- end = ts->info->end_code;
|
|
|
|
-#endif
|
|
|
|
- return end;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-uint64_t qemu_plugin_entry_code(void)
|
|
|
|
-{
|
|
|
|
- uint64_t entry = 0;
|
|
|
|
-#ifdef CONFIG_USER_ONLY
|
|
|
|
- TaskState *ts = get_task_state(current_cpu);
|
|
|
|
- entry = ts->info->entry;
|
|
|
|
-#endif
|
|
|
|
- return entry;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* Create register handles.
|
|
* Create register handles.
|
|
*
|
|
*
|