RE: [RFC PATCH 09/11] kprobes: core logic of eraly kprobes

From: Hillf Danton
Date: Wed Jan 07 2015 - 05:03:27 EST


> >>
> >> +struct early_kprobe_slot {
> >> + struct optimized_kprobe op;
> >> +};
> >> +
> > [...]
> >>
> >> /* Free optimized instructions and optimized_kprobe */
> >> +static int ek_free_early_kprobe(struct early_kprobe_slot *slot);
> >
> > [2] How is it implemented? In subsequent patches?
> >
>
> It is implemented using macro. Please see patch 7/11 and
>
> DEFINE_EKPROBE_ALLOC_OPS(struct early_kprobe_slot, early_kprobe, static);
>
What is the reason that it is listed in C file, given that it is done in H already?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/