[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3 09/16] x86/VPMU: Interface for setting PMU mode and flags
>>> On 06.01.14 at 20:24, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx> wrote: > --- a/xen/include/public/xenpmu.h > +++ b/xen/include/public/xenpmu.h > @@ -13,6 +13,64 @@ > #define XENPMU_VER_MAJ 0 > #define XENPMU_VER_MIN 0 > > +/* > + * ` enum neg_errnoval > + * ` HYPERVISOR_xenpmu_op(enum xenpmu_op cmd, struct xenpmu_params *args); > + * > + * @cmd == XENPMU_* (PMU operation) > + * @args == struct xenpmu_params > + */ > +/* ` enum xenpmu_op { */ > +#define XENPMU_mode_get 0 /* Also used for getting PMU version */ > +#define XENPMU_mode_set 1 > +#define XENPMU_feature_get 2 > +#define XENPMU_feature_set 3 > +/* ` } */ > + > +/* ANSI-C does not support anonymous unions */ > +#if !defined(__GNUC__) || defined(__STRICT_ANSI__) > +#define __ANON_UNION_NAME(x) x > +#else > +#define __ANON_UNION_NAME(x) > +#endif Same comment as on the earlier incarnation in another patch of this series: This shouldn't be in a public header, or if it really needs to be, then properly prefixed. Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |