[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH v3 01/11] plugins: add types for callbacks related to cer
From: |
Julian Ganz |
Subject: |
Re: [RFC PATCH v3 01/11] plugins: add types for callbacks related to certain discontinuities |
Date: |
Thu, 05 Dec 2024 21:25:30 +0000 |
Hi Pierrick,
December 5, 2024 at 6:35 PM, "Pierrick Bouvier" wrote:
> On 12/5/24 04:44, Julian Ganz wrote:
>
> >
> > Hi Pierrick,
> > December 4, 2024 at 11:45 PM, "Pierrick Bouvier" wrote:
> >
> > >
> > > On 12/2/24 11:26, Julian Ganz wrote:
> > >
> > include/qemu/plugin.h | 1 +
> > include/qemu/qemu-plugin.h | 43 ++++++++++++++++++++++++++++++++++++++
> > 2 files changed, 44 insertions(+)
> > diff --git a/include/qemu/plugin.h b/include/qemu/plugin.h
> > index 9726a9ebf3..27a176b631 100644
> > --- a/include/qemu/plugin.h
> > +++ b/include/qemu/plugin.h
> > <snip>
> > +
> > +/**
> > + * typedef qemu_plugin_vcpu_discon_cb_t - vcpu discontinuity callback
> > + * @vcpu_index: the current vcpu context
> > + * @type: the type of discontinuity
> > + * @from_pc: the source of the discontinuity, e.g. the PC before the
> > + * transition
> > + * @to_pc: the PC pointing to the next instruction to be executed
> > + *
> >
> > >
> > > Missing those parameters when building doc.
> > > include/qemu/qemu-plugin.h:198: warning: Function parameter or member
> > > 'id' not described in 'qemu_plugin_vcpu_discon_cb_t'
> > > include/qemu/qemu-plugin.h:289: warning: Function parameter or member
> > > 'type' not described in 'qemu_plugin_register_vcpu_discon_cb'
> > > 2 warnings as Errors
> > >
> > Yes, I forgot about id. But type is clearly documented. Maybe the tool
> > is confused about the name and thinks it's a reserved word or something?
> > In that case I better change that to something else.
> >
> The type (qemu_plugin_discon_type) is documented, but the parameter "type" is
> not. Even if the name is correctly chosen, you still need to make it appear
> in the doc.
Yes. I didn't realize that the two warnings were for different entities
because I somehow failed to parse the entire line.
Regards,
Julian Ganz
- Re: [RFC PATCH v3 01/11] plugins: add types for callbacks related to certain discontinuities, (continued)
- Re: [RFC PATCH v3 01/11] plugins: add types for callbacks related to certain discontinuities, Julian Ganz, 2024/12/05
- Re: [RFC PATCH v3 01/11] plugins: add types for callbacks related to certain discontinuities, Julian Ganz, 2024/12/05
- Re: [RFC PATCH v3 01/11] plugins: add types for callbacks related to certain discontinuities, Pierrick Bouvier, 2024/12/05
- Re: [RFC PATCH v3 01/11] plugins: add types for callbacks related to certain discontinuities, Julian Ganz, 2024/12/06
- Re: [RFC PATCH v3 01/11] plugins: add types for callbacks related to certain discontinuities, Pierrick Bouvier, 2024/12/06
- Re: [RFC PATCH v3 01/11] plugins: add types for callbacks related to certain discontinuities, Julian Ganz, 2024/12/07
- Re: [RFC PATCH v3 01/11] plugins: add types for callbacks related to certain discontinuities, Pierrick Bouvier, 2024/12/09
Re: [RFC PATCH v3 01/11] plugins: add types for callbacks related to certain discontinuities, Pierrick Bouvier, 2024/12/04
[RFC PATCH v3 06/11] target/arm: call plugin trap callbacks, Julian Ganz, 2024/12/02
[RFC PATCH v3 03/11] plugins: add hooks for new discontinuity related callbacks, Julian Ganz, 2024/12/02
[RFC PATCH v3 05/11] target/alpha: call plugin trap callbacks, Julian Ganz, 2024/12/02
[RFC PATCH v3 02/11] plugins: add API for registering discontinuity callbacks, Julian Ganz, 2024/12/02
[RFC PATCH v3 07/11] target/avr: call plugin trap callbacks, Julian Ganz, 2024/12/02
[RFC PATCH v3 08/11] target/mips: call plugin trap callbacks, Julian Ganz, 2024/12/02
[RFC PATCH v3 09/11] target/riscv: call plugin trap callbacks, Julian Ganz, 2024/12/02