mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
include: Rename sysemu/ -> system/
Headers in include/sysemu/ are not only related to system *emulation*, they are also used by virtualization. Rename as system/ which is clearer. Files renamed manually then mechanical change using sed tool. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Tested-by: Lei Yang <leiyang@redhat.com> Message-Id: <20241203172445.28576-1-philmd@linaro.org>
This commit is contained in:
parent
63cda19446
commit
32cad1ffb8
965 changed files with 1708 additions and 1707 deletions
45
include/system/stats.h
Normal file
45
include/system/stats.h
Normal file
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* Copyright (c) 2022 Oracle and/or its affiliates.
|
||||
*
|
||||
* This work is licensed under the terms of the GNU GPL, version 2.
|
||||
* See the COPYING file in the top-level directory.
|
||||
*/
|
||||
|
||||
#ifndef STATS_H
|
||||
#define STATS_H
|
||||
|
||||
#include "qapi/qapi-types-stats.h"
|
||||
|
||||
typedef void StatRetrieveFunc(StatsResultList **result, StatsTarget target,
|
||||
strList *names, strList *targets, Error **errp);
|
||||
typedef void SchemaRetrieveFunc(StatsSchemaList **result, Error **errp);
|
||||
|
||||
/*
|
||||
* Register callbacks for the QMP query-stats command.
|
||||
*
|
||||
* @provider: stats provider checked against QMP command arguments
|
||||
* @stats_fn: routine to query stats:
|
||||
* @schema_fn: routine to query stat schemas:
|
||||
*/
|
||||
void add_stats_callbacks(StatsProvider provider,
|
||||
StatRetrieveFunc *stats_fn,
|
||||
SchemaRetrieveFunc *schemas_fn);
|
||||
|
||||
/*
|
||||
* Helper routines for adding stats entries to the results lists.
|
||||
*/
|
||||
void add_stats_entry(StatsResultList **, StatsProvider, const char *id,
|
||||
StatsList *stats_list);
|
||||
void add_stats_schema(StatsSchemaList **, StatsProvider, StatsTarget,
|
||||
StatsSchemaValueList *);
|
||||
|
||||
/*
|
||||
* True if a string matches the filter passed to the stats_fn callback,
|
||||
* false otherwise.
|
||||
*
|
||||
* Note that an empty list means no filtering, i.e. all strings will
|
||||
* return true.
|
||||
*/
|
||||
bool apply_str_list_filter(const char *string, strList *list);
|
||||
|
||||
#endif /* STATS_H */
|
Loading…
Add table
Add a link
Reference in a new issue