On Thu, Nov 09, 2017 at 11:13:44AM +0000, Roger Pau Monne wrote: > So that other implementations of the sysctl can be added. > > Signed-off-by: Roger Pau Monné <roger....@citrix.com> > --- > Cc: Andrew Cooper <andrew.coop...@citrix.com> > Cc: George Dunlap <george.dun...@eu.citrix.com> > Cc: Ian Jackson <ian.jack...@eu.citrix.com> > Cc: Jan Beulich <jbeul...@suse.com> > Cc: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> > Cc: Stefano Stabellini <sstabell...@kernel.org> > Cc: Tim Deegan <t...@xen.org> > Cc: Wei Liu <wei.l...@citrix.com> > --- > Changes since v1: > - Constify cov_ops. > - Introduce a local coverage.h provate header and place the > definition of cov_sysctl_ops there. > --- > xen/common/coverage/coverage.h | 12 ++++++++++++ > xen/common/coverage/gcov.c | 13 ++++++++++--- > 2 files changed, 22 insertions(+), 3 deletions(-) > create mode 100644 xen/common/coverage/coverage.h > > diff --git a/xen/common/coverage/coverage.h b/xen/common/coverage/coverage.h > new file mode 100644 > index 0000000000..4613d5e6c1 > --- /dev/null > +++ b/xen/common/coverage/coverage.h > @@ -0,0 +1,12 @@ > +#ifndef _XEN_COV_PRIV_H > +#define _XEN_COV_PRIV_H > + > +#include <xen/types.h> > + > +struct cov_sysctl_ops { > + uint32_t (*get_size)(void); > + void (*reset_counters)(void); > + int (*dump)(XEN_GUEST_HANDLE_PARAM(char), uint32_t *); > +}; > + > +#endif
Perhaps add the editor configuration block? _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel