Re: [RFC v2 7/7] kprobes: port to linker table

From: Russell King - ARM Linux
Date: Fri Feb 19 2016 - 09:16:06 EST


On Fri, Feb 19, 2016 at 05:45:59AM -0800, Luis R. Rodriguez wrote:
> kprobe makes use of two custom sections:
>
> type name begin end
> init.data _kprobe_blacklist __start_kprobe_blacklist __stop_kprobe_blacklist
> text .kprobes.text __kprobes_text_start __kprobes_text_end
>
> Port these to the linker table generic solution. This lets
> us remove all the custom kprobe section declarations on the
> linker script.

I don't like this. You create this "table" thing, which you use for
tables, and then you go and use it for something else - for kprobes
text which is not a table. The kprobes text section is a section for
text which is not kprobe-able.

So, it seems to be a complete mis-nomer to me. Maybe you can explain
the rationale here?

--
RMK's Patch system: http://www.arm.linux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.