Re: [Xen-devel] [PATCH v1 15/27] compiler: Option to default to hidden symbols

2017-10-19 Thread Luis R. Rodriguez
On Wed, Oct 18, 2017 at 04:15:10PM -0700, Thomas Garnier wrote: > On Thu, Oct 12, 2017 at 1:02 PM, Luis R. Rodriguez wrote: > > On Wed, Oct 11, 2017 at 01:30:15PM -0700, Thomas Garnier wrote: > >> diff --git a/include/linux/compiler.h b/include/linux/compiler.h >

Re: [Xen-devel] [PATCH v1 15/27] compiler: Option to default to hidden symbols

2017-10-12 Thread Luis R. Rodriguez
On Wed, Oct 11, 2017 at 01:30:15PM -0700, Thomas Garnier wrote: > Provide an option to default visibility to hidden except for key > symbols. This option is disabled by default and will be used by x86_64 > PIE support to remove errors between compilation units. > > The default visibility is also e

Re: [Xen-devel] [PATCH v4 14/16] kprobes: move kprobe declarations to asm-generic/kprobes.h

2017-02-01 Thread Luis R. Rodriguez
On Mon, Aug 29, 2016 at 11:04:18PM +0900, Masami Hiramatsu wrote: > On Tue, 23 Aug 2016 18:31:05 +0200 > "Luis R. Rodriguez" wrote: > > > On Tue, Aug 23, 2016 at 12:11:40AM +0900, Masami Hiramatsu wrote: > > > On Fri, 19 Aug 2016 14:34:12 -0700 > > > m

Re: [Xen-devel] [PATCH v7 06/14] firmware/Makefile: force recompilation if makefile changes

2017-01-23 Thread Luis R. Rodriguez
On Thu, Jan 19, 2017 at 12:19:15PM +0100, Greg KH wrote: > On Sun, Jan 15, 2017 at 01:10:49PM -0800, Luis R. Rodriguez wrote: > > If you modify the target asm we currently do not force the > > recompilation of the firmware files. The target asm is in > > the firmware/Makefil

[Xen-devel] [PATCH v4 2/6] tools: add init.h for tools

2017-01-15 Thread Luis R. Rodriguez
Start off with just __ref -- we enalbe you to override, if you do that then you can define your own. The way you'd use this, if you do override, is define your own __ref and then use include_next. Signed-off-by: Luis R. Rodriguez --- tools/include/linux/init.h | 9 + 1 file chang

[Xen-devel] [PATCH v4 4/6] tools: expand export.h with VMLINUX_SYMBOL()

2017-01-15 Thread Luis R. Rodriguez
This will be used later by the linker-table userspace sandbox. Signed-off-by: Luis R. Rodriguez --- tools/include/linux/export.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a/tools/include/linux/export.h b/tools/include/linux/export.h index d07e586b9ba0

[Xen-devel] [PATCH v4 3/6] tools: add __used and enable to override

2017-01-15 Thread Luis R. Rodriguez
This adds __used, to be used later in the userspace linker-tables sandbox. If any userspace applicaiton wants to override they can add their own definition and then use include_next. This definition should probably suffice for most uses cases though. Signed-off-by: Luis R. Rodriguez --- tools

[Xen-devel] [PATCH v7 11/14] kprobes: move kprobe declarations to asm-generic/kprobes.h

2017-01-15 Thread Luis R. Rodriguez
n x86 where kprobes is disabled but ftrace is left enabled. o include on arch/arm64/kernel/probes/decode-insn.h v4: introduced this patch into the series Signed-off-by: Luis R. Rodriguez --- MAINTAINERS| 1 + arch/alpha/include/asm/Kbuild | 1 + arch/arc/in

[Xen-devel] [PATCH v7 12/14] kprobes: port .kprobes.text to section range

2017-01-15 Thread Luis R. Rodriguez
r a simple section range. v2: introduced this patch in this series Signed-off-by: Luis R. Rodriguez --- arch/arc/kernel/vmlinux.lds.S| 1 - arch/arm/kernel/entry-armv.S | 3 ++- arch/arm/kernel/vmlinux-xip.lds.S| 1 - arch/arm/kernel/vmlinux.lds.S| 1

[Xen-devel] [PATCH v7 14/14] lib: add linker tables test driver

2017-01-15 Thread Luis R. Rodriguez
Add a test drivers for linker tables. v7: address ./scripts/checkpatch.pl --codespell issues v6: rename table macro as suggested by Andy Shevchenko v5: added this commit for the first time in this series. Signed-off-by: Luis R. Rodriguez --- lib/Kconfig.debug| 6

[Xen-devel] [PATCH v4 5/6] tools: add __section() to compiler.h

2017-01-15 Thread Luis R. Rodriguez
This will be used later by the userspace linker table. Signed-off-by: Luis R. Rodriguez --- tools/include/linux/compiler.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/include/linux/compiler.h b/tools/include/linux/compiler.h index 556c991de212..6321265df00a 100644 --- a/tools

[Xen-devel] [PATCH v4 0/6] tools: add linker table userspace sandbox

2017-01-15 Thread Luis R. Rodriguez
This v4 also addresses some spelling / checkpatch comlplains. The remaining checkpatch complaints are not valid for the code in question. This applies after the series: [PATCH v7 00/14] linux: generalize sections, ranges and linker tables Luis R. Rodriguez (6): tools: add a userspace tools

[Xen-devel] [PATCH v4 1/6] tools: add a userspace tools bug.h

2017-01-15 Thread Luis R. Rodriguez
s for the only purpose of includeing bug.h. This simplifies that. v4: address ./scripts/checkpatch.pl --codespell complaints Signed-off-by: Luis R. Rodriguez --- tools/include/asm-generic/bug.h | 26 ++ tools/include/linux/bug.h | 6 ++ tools/include/linux/ker

[Xen-devel] [PATCH v7 07/14] firmware: port built-in section to linker table

2017-01-15 Thread Luis R. Rodriguez
e() helper on firmware/Makefile to enable having to unfold things on our own. v2: introduced this file in this version of the series Cc: Barry Song Cc: Mike Frysinger Cc: Steven Miao Cc: Michael Matz Cc: Guenter Roeck Cc: Fengguang Wu Signed-off-by: Luis R. Rodriguez --- arch/x86/

[Xen-devel] [PATCH v7 10/14] dynamic_debug: port to use linker tables

2017-01-15 Thread Luis R. Rodriguez
use LINKTABLE_EMPTY(), LINKTABLE_START() v4: fix compilation on blackfin v3: added modular support v2: introduced this patch into the series Cc: Barry Song Cc: Mike Frysinger Cc: Steven Miao Cc: Michael Matz Cc: Guenter Roeck Cc: Fengguang Wu Signed-off-by: Luis R. Rodriguez --- include/asm-ge

[Xen-devel] [PATCH v7 09/14] jump_label: port __jump_table to linker tables

2017-01-15 Thread Luis R. Rodriguez
e of ASM_CMD_SEP to enable architectures to override later if needed o guard tables.h inclusion and table definition with __KERNEL__ v2: introduced in this series Signed-off-by: Luis R. Rodriguez --- arch/arm/include/asm/jump_label.h | 6 -- arch/arm64/include/asm/jump_labe

[Xen-devel] [PATCH v7 13/14] kprobes: port blacklist kprobes to linker table

2017-01-15 Thread Luis R. Rodriguez
6 v3: this patch was introduced in this series Acked-by: Masami Hiramatsu Signed-off-by: Luis R. Rodriguez --- arch/powerpc/include/asm/ppc_asm.h | 4 ++-- arch/x86/include/asm/asm.h | 4 +++- include/asm-generic/kprobes.h | 4 ++-- include/asm-generic/vmlinux.l

[Xen-devel] [PATCH v7 06/14] firmware/Makefile: force recompilation if makefile changes

2017-01-15 Thread Luis R. Rodriguez
If you modify the target asm we currently do not force the recompilation of the firmware files. The target asm is in the firmware/Makefile, peg this file as a dependency to require re-compilation of firmware targets when the asm changes. v3: introduced in this series Signed-off-by: Luis R

[Xen-devel] [PATCH v7 00/14] linux: generalize sections, ranges and linker tables

2017-01-15 Thread Luis R. Rodriguez
nux/kernel/git/mcgrof/linux-next.git/log/?h=20170113-linker-tables-v7-try2 Luis R. Rodriguez (14): generic-sections: add section core helpers xtensa: skip adding literal when SORT() is used ranges.h: add helpers to build and identify Linux section ranges tables.h: add linker table suppor

[Xen-devel] [PATCH v7 03/14] ranges.h: add helpers to build and identify Linux section ranges

2017-01-15 Thread Luis R. Rodriguez
s on sparc o adds section ranges to linker script o rename SECTION_RANGE_ALL() o use default alignment, fixes builds on powerpc and arm for both __LINUX_RANGE() and __LINUX_RANGE_ORDER() o expand documentation to document modules support o add maintainers o use generic-y v3: new in this series, uses copylef

[Xen-devel] [PATCH v7 02/14] xtensa: skip adding literal when SORT() is used

2017-01-15 Thread Luis R. Rodriguez
When SORT(foo.*) is used the current sed replacements add SORT(foo.literal foo.*), this breaks linking. Avoid adding literals for SORT globs, if needed, these need to be added manually. Signed-off-by: Luis R. Rodriguez --- arch/xtensa/kernel/Makefile | 8 1 file changed, 4 insertions

[Xen-devel] [PATCH v7 01/14] generic-sections: add section core helpers

2017-01-15 Thread Luis R. Rodriguez
ore immediately accessible to asm code, not just C code. Note for ASM_CMD_SEP we use by default "\n", architectures needed to override can do so on their own sections.h prior to inclusion of asm-generic/sections.h Signed-off-by: Luis R. Rodriguez --- Documentation/index.rs

[Xen-devel] [PATCH v7 08/14] jump_label: move guard #endif down where it belongs

2017-01-15 Thread Luis R. Rodriguez
The ending header guard is misplaced. This has no functional change, this is just an eye-sore. Signed-off-by: Luis R. Rodriguez --- include/linux/jump_label.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/jump_label.h b/include/linux/jump_label.h index

[Xen-devel] [PATCH v7 05/14] kbuild: enable option to force compile force-obj-y and force-lib-y

2017-01-15 Thread Luis R. Rodriguez
rnatives that are possible with linker tables. Signed-off-by: Luis R. Rodriguez --- Documentation/kbuild/makefiles.txt | 36 Documentation/sections/linker-tables.rst | 15 +++ include/linux/tables.h | 71

[Xen-devel] [PATCH v7 04/14] tables.h: add linker table support

2017-01-15 Thread Luis R. Rodriguez
ION_TBL_ALL_STR() on relocs.c when needed. Cc: Michael Brown Signed-off-by: Luis R. Rodriguez --- Documentation/sections/index.rst | 1 + Documentation/sections/linker-tables.rst | 212 +++ MAINTAINERS | 10 + arch/alpha/include/asm/Kbuild

Re: [Xen-devel] [PATCH v6 00/14] linux: generalize sections, ranges and linker tables

2017-01-11 Thread Luis R. Rodriguez
On Mon, Jan 09, 2017 at 08:29:15PM +0200, Andy Shevchenko wrote: > On Mon, 2017-01-09 at 19:12 +0200, Andy Shevchenko wrote: > > On Mon, 2017-01-09 at 18:27 +0200, Andy Shevchenko wrote: > > > On Mon, 2017-01-09 at 06:58 -0800, Luis R. Rodriguez wrote: > > > > The

Re: [Xen-devel] [PATCH v6 00/14] linux: generalize sections, ranges and linker tables

2017-01-09 Thread Luis R. Rodriguez
On Mon, Jan 9, 2017 at 11:12 AM, Shevchenko, Andriy wrote: > On Mon, 2017-01-09 at 18:27 +0200, Andy Shevchenko wrote: >> On Mon, 2017-01-09 at 06:58 -0800, Luis R. Rodriguez wrote: > >> > The only architecture that was not tested was avr32 and that is >> > be

Re: [Xen-devel] [PATCH v6 00/14] linux: generalize sections, ranges and linker tables

2017-01-09 Thread Luis R. Rodriguez
On Mon, Jan 9, 2017 at 10:27 AM, Andy Shevchenko wrote: > On Mon, 2017-01-09 at 06:58 -0800, Luis R. Rodriguez wrote: >> The only architecture that was not tested was avr32 and that is >> because linux-next fails to compile on it. I'd like to greatly thank Guenter >&g

[Xen-devel] [PATCH v6 11/14] kprobes: move kprobe declarations to asm-generic/kprobes.h

2017-01-09 Thread Luis R. Rodriguez
n x86 where kprobes is disabled but ftrace is left enabled. o include on arch/arm64/kernel/probes/decode-insn.h v4: introduced this patch into the series Signed-off-by: Luis R. Rodriguez --- arch/alpha/include/asm/Kbuild | 1 + arch/arc/include/asm/kprobes.h | 6 -- arc

[Xen-devel] [PATCH v3 2/6] tools: add init.h for tools

2017-01-09 Thread Luis R. Rodriguez
Start off with just __ref -- we enalbe you to override, if you do that then you can define your own. The way you'd use this, if you do override, is define your own __ref and then use include_next. Signed-off-by: Luis R. Rodriguez --- tools/include/linux/init.h | 9 + 1 file chang

[Xen-devel] [PATCH v3 1/6] tools: add a userspace tools bug.h

2017-01-09 Thread Luis R. Rodriguez
s for the ony purpose of includeing bug.h. This simplifies that. Signed-off-by: Luis R. Rodriguez --- tools/include/asm-generic/bug.h | 24 tools/include/linux/bug.h | 6 ++ tools/include/linux/kernel.h| 2 ++ 3 files changed, 32 insertions(+) create

[Xen-devel] [PATCH v3 0/6] tools: add linker table userspace sandbox

2017-01-09 Thread Luis R. Rodriguez
as it is a debug patch used to force 0-day to force-enable the test driver. [0] https://git.kernel.org/cgit/linux/kernel/git/mcgrof/linux-next.git/log/?h=20170109-linker-tables-v6 Luis Luis R. Rodriguez (6): tools: add a userspace tools bug.h tools: add init.h for tools tools: add __used

[Xen-devel] [PATCH v3 4/6] tools: expand export.h with VMLINUX_SYMBOL()

2017-01-09 Thread Luis R. Rodriguez
This will be used later by the linker-table userspace sandbox. Signed-off-by: Luis R. Rodriguez --- tools/include/linux/export.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a/tools/include/linux/export.h b/tools/include/linux/export.h index d07e586b9ba0

[Xen-devel] [PATCH v3 5/6] tools: add __section() to compiler.h

2017-01-09 Thread Luis R. Rodriguez
This will be used later by the userspace linker table. Signed-off-by: Luis R. Rodriguez --- tools/include/linux/compiler.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/include/linux/compiler.h b/tools/include/linux/compiler.h index 556c991de212..6321265df00a 100644 --- a/tools

[Xen-devel] [PATCH v3 3/6] tools: add __used and enable to override

2017-01-09 Thread Luis R. Rodriguez
This adds __used, to be used later in the userspace linker-tables sandbox. If any userspace applicaiton wants to override they can add their own definition and then use include_next. This definition should probably suffice for most uses cases though. Signed-off-by: Luis R. Rodriguez --- tools

[Xen-devel] [PATCH v6 14/14] lib: add linker tables test driver

2017-01-09 Thread Luis R. Rodriguez
Add a test drivers for linker tables. v6: rename table macro as suggested by Andy Shevchenko v5: added this commit for the first time in this series. Signed-off-by: Luis R. Rodriguez --- lib/Kconfig.debug| 6 + lib/Makefile | 1 + lib

[Xen-devel] [PATCH v6 12/14] kprobes: port .kprobes.text to section range

2017-01-09 Thread Luis R. Rodriguez
r a simple section range. v2: introduced this patch in this series Signed-off-by: Luis R. Rodriguez --- arch/arc/kernel/vmlinux.lds.S| 1 - arch/arm/kernel/entry-armv.S | 3 ++- arch/arm/kernel/vmlinux-xip.lds.S| 1 - arch/arm/kernel/vmlinux.lds.S| 1

[Xen-devel] [PATCH v6 13/14] kprobes: port blacklist kprobes to linker table

2017-01-09 Thread Luis R. Rodriguez
6 v3: this patch was introduced in this series Acked-by: Masami Hiramatsu Signed-off-by: Luis R. Rodriguez --- arch/powerpc/include/asm/ppc_asm.h | 4 ++-- arch/x86/include/asm/asm.h | 4 +++- include/asm-generic/kprobes.h | 4 ++-- include/asm-generic/vmlinux.l

[Xen-devel] [PATCH v6 09/14] jump_label: port __jump_table to linker tables

2017-01-09 Thread Luis R. Rodriguez
e of ASM_CMD_SEP to enable architectures to override later if needed o guard tables.h inclusion and table definition with __KERNEL__ v2: introduced in this series Signed-off-by: Luis R. Rodriguez --- arch/arm/include/asm/jump_label.h | 6 -- arch/arm64/include/asm/jump_labe

[Xen-devel] [PATCH v6 07/14] firmware: port built-in section to linker table

2017-01-09 Thread Luis R. Rodriguez
e() helper on firmware/Makefile to enable having to unfold things on our own. v2: introduced this file in this version of the series Cc: Barry Song Cc: Mike Frysinger Cc: Steven Miao Cc: Michael Matz Cc: Guenter Roeck Cc: Fengguang Wu Signed-off-by: Luis R. Rodriguez --- arch/x86/

[Xen-devel] [PATCH v6 05/14] kbuild: enable option to force compile force-obj-y and force-lib-y

2017-01-09 Thread Luis R. Rodriguez
rnatives that are possible with linker tables. Signed-off-by: Luis R. Rodriguez --- Documentation/kbuild/makefiles.txt | 36 Documentation/sections/linker-tables.rst | 15 +++ include/linux/tables.h | 71

[Xen-devel] [PATCH v6 10/14] dynamic_debug: port to use linker tables

2017-01-09 Thread Luis R. Rodriguez
use LINKTABLE_EMPTY(), LINKTABLE_START() v4: fix compilation on blackfin v3: added modular support v2: introduced this patch into the series Cc: Barry Song Cc: Mike Frysinger Cc: Steven Miao Cc: Michael Matz Cc: Guenter Roeck Cc: Fengguang Wu Signed-off-by: Luis R. Rodriguez --- include/asm-ge

[Xen-devel] [PATCH v6 08/14] jump_label: move guard #endif down where it belongs

2017-01-09 Thread Luis R. Rodriguez
The ending header guard is misplaced. This has no functional change, this is just an eye-sore. Signed-off-by: Luis R. Rodriguez --- include/linux/jump_label.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/jump_label.h b/include/linux/jump_label.h index

[Xen-devel] [PATCH v6 01/14] generic-sections: add section core helpers

2017-01-09 Thread Luis R. Rodriguez
ode. Note for ASM_CMD_SEP we use by default "\n", architectures needed to override can do so on their own sections.h prior to inclusion of asm-generic/sections.h Signed-off-by: Luis R. Rodriguez --- Documentation/index.rst | 1 + Documentation/sections

[Xen-devel] [PATCH v6 06/14] firmware/Makefile: force recompilation if makefile changes

2017-01-09 Thread Luis R. Rodriguez
If you modify the target asm we currently do not force the recompilation of the firmware files. The target asm is in the firmware/Makefile, peg this file as a dependency to require re-compilation of firmware targets when the asm changes. v3: introduced in this series Signed-off-by: Luis R

[Xen-devel] [PATCH v6 04/14] tables.h: add linker table support

2017-01-09 Thread Luis R. Rodriguez
: Michael Brown Signed-off-by: Luis R. Rodriguez --- Documentation/sections/index.rst | 1 + Documentation/sections/linker-tables.rst | 212 +++ MAINTAINERS | 10 + arch/alpha/include/asm/Kbuild| 1 + arch/arc/include/asm/Kbuild

[Xen-devel] [PATCH v6 03/14] ranges.h: add helpers to build and identify Linux section ranges

2017-01-09 Thread Luis R. Rodriguez
o rename SECTION_RANGE_ALL() o use default alignment, fixes builds on powerpc and arm for both __LINUX_RANGE() and __LINUX_RANGE_ORDER() o expand documentation to document modules support o add maintainers o use generic-y v3: new in this series, uses copyleft-next Signed-off-by: Luis R. R

[Xen-devel] [PATCH v6 02/14] xtensa: skip adding literal when SORT() is used

2017-01-09 Thread Luis R. Rodriguez
When SORT(foo.*) is used the current sed replacements add SORT(foo.literal foo.*), this breaks linking. Avoid adding literals for SORT globs, if needed, these need to be added manually. Signed-off-by: Luis R. Rodriguez --- arch/xtensa/kernel/Makefile | 8 1 file changed, 4 insertions

[Xen-devel] [PATCH v6 00/14] linux: generalize sections, ranges and linker tables

2017-01-09 Thread Luis R. Rodriguez
c tree for those curious, its the last patch [1]. This tree is based on linux-next tag next-20170109. [0] https://lkml.kernel.org/r/20161222023811.21246-1-mcg...@kernel.org [1] https://git.kernel.org/cgit/linux/kernel/git/mcgrof/linux-next.git/log/?h=20170109-linker-tables-v6 Luis R. Rodriguez (14):

Re: [Xen-devel] [PATCH v5 04/14] tables.h: add linker table support

2017-01-09 Thread Luis R. Rodriguez
On Fri, Jan 06, 2017 at 10:43:59PM +0200, Andy Shevchenko wrote: > On Fri, Jan 6, 2017 at 10:00 PM, Luis R. Rodriguez wrote: > > On Wed, Jan 04, 2017 at 11:47:14AM +0200, Andy Shevchenko wrote: > >> On Tue, Jan 3, 2017 at 11:25 PM, Luis R. Rodriguez > >> wrote: > &

Re: [Xen-devel] [PATCH v5 04/14] tables.h: add linker table support

2017-01-06 Thread Luis R. Rodriguez
On Wed, Jan 04, 2017 at 11:47:14AM +0200, Andy Shevchenko wrote: > On Tue, Jan 3, 2017 at 11:25 PM, Luis R. Rodriguez wrote: > > On Thu, Dec 22, 2016 at 03:58:18PM +0200, Andy Shevchenko wrote: > >> On Wed, 2016-12-21 at 18:38 -0800, Luis R. Rodriguez wrote: > >> &g

Re: [Xen-devel] [PATCH v5 09/14] jump_label: port __jump_table to linker tables

2017-01-03 Thread Luis R. Rodriguez
On Thu, Dec 22, 2016 at 04:08:22PM +0200, Andy Shevchenko wrote: > On Wed, 2016-12-21 at 18:38 -0800, Luis R. Rodriguez wrote: > > Move the __jump_table from the a custom section solution > > to a generic solution, this avoiding extra vmlinux.lds.h > > customizations. > &g

Re: [Xen-devel] [PATCH v5 04/14] tables.h: add linker table support

2017-01-03 Thread Luis R. Rodriguez
On Thu, Dec 22, 2016 at 03:58:18PM +0200, Andy Shevchenko wrote: > On Wed, 2016-12-21 at 18:38 -0800, Luis R. Rodriguez wrote: > > +#define LINKTABLE_FOR_EACH(pointer, tbl) > > Hmm... SOMEONE LIKES CAPITAL LETTERS FOR everything, right? :-) > >

[Xen-devel] [PATCH v2 2/6] tools: add init.h for tools

2016-12-21 Thread Luis R. Rodriguez
Start off with just __ref -- we enalbe you to override, if you do that then you can define your own. The way you'd use this, if you do override, is define your own __ref and then use include_next. Signed-off-by: Luis R. Rodriguez --- tools/include/linux/init.h | 9 + 1 file chang

[Xen-devel] [PATCH v2 4/6] tools: expand export.h with VMLINUX_SYMBOL()

2016-12-21 Thread Luis R. Rodriguez
This will be used later by the linker-table userspace sandbox. Signed-off-by: Luis R. Rodriguez --- tools/include/linux/export.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a/tools/include/linux/export.h b/tools/include/linux/export.h index d07e586b9ba0

[Xen-devel] [PATCH v2 0/6] tools: add linker table userspace sandbox

2016-12-21 Thread Luis R. Rodriguez
ch to force enable a driver on 0-day and Guenter's testbed. [0] https://lkml.kernel.org/r/1471642875-5957-1-git-send-email-mcg...@kernel.org [1] https://git.kernel.org/cgit/linux/kernel/git/mcgrof/linux-next.git/log/?h=20161221-linker-tables-v5 Luis R. Rodriguez (6): tools: add a userspace t

[Xen-devel] [PATCH v2 5/6] tools: add __section() to compiler.h

2016-12-21 Thread Luis R. Rodriguez
This will be used later by the userspace linker table. Signed-off-by: Luis R. Rodriguez --- tools/include/linux/compiler.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/include/linux/compiler.h b/tools/include/linux/compiler.h index 556c991de212..6321265df00a 100644 --- a/tools

[Xen-devel] [PATCH v2 1/6] tools: add a userspace tools bug.h

2016-12-21 Thread Luis R. Rodriguez
s for the ony purpose of includeing bug.h. This simplifies that. Signed-off-by: Luis R. Rodriguez --- tools/include/asm-generic/bug.h | 24 tools/include/linux/bug.h | 6 ++ tools/include/linux/kernel.h| 2 ++ 3 files changed, 32 insertions(+) create

[Xen-devel] [PATCH v2 3/6] tools: add __used and enable to override

2016-12-21 Thread Luis R. Rodriguez
This adds __used, to be used later in the userspace linker-tables sandbox. If any userspace applicaiton wants to override they can add their own definition and then use include_next. This definition should probably suffice for most uses cases though. Signed-off-by: Luis R. Rodriguez --- tools

[Xen-devel] [PATCH v5 12/14] kprobes: port .kprobes.text to section range

2016-12-21 Thread Luis R. Rodriguez
r a simple section range. v2: introduced this patch in this series Signed-off-by: Luis R. Rodriguez --- arch/arc/kernel/vmlinux.lds.S| 1 - arch/arm/kernel/entry-armv.S | 3 ++- arch/arm/kernel/vmlinux-xip.lds.S| 1 - arch/arm/kernel/vmlinux.lds.S| 1

[Xen-devel] [PATCH v5 14/14] lib: add linker tables test driver

2016-12-21 Thread Luis R. Rodriguez
Add a test drivers for linker tables. v5: added this commit for the first time in this series. Signed-off-by: Luis R. Rodriguez --- lib/Kconfig.debug| 6 + lib/Makefile | 1 + lib/test_linktables/Makefile | 13 + lib

[Xen-devel] [PATCH v5 07/14] firmware: port built-in section to linker table

2016-12-21 Thread Luis R. Rodriguez
to unfold things on our own. v2: introduced this file in this version of the series Cc: Barry Song Cc: Mike Frysinger Cc: Steven Miao Cc: Michael Matz Cc: Guenter Roeck Cc: Fengguang Wu Signed-off-by: Luis R. Rodriguez --- arch/x86/kernel/cpu/microcode/core.c | 8 drivers/base/firmwa

[Xen-devel] [PATCH v5 11/14] kprobes: move kprobe declarations to asm-generic/kprobes.h

2016-12-21 Thread Luis R. Rodriguez
n x86 where kprobes is disabled but ftrace is left enabled. o include on arch/arm64/kernel/probes/decode-insn.h v4: introduced this patch into the series Signed-off-by: Luis R. Rodriguez --- arch/alpha/include/asm/Kbuild | 1 + arch/arc/include/asm/kprobes.h | 6 -- arc

[Xen-devel] [PATCH v5 10/14] dynamic_debug: port to use linker tables

2016-12-21 Thread Luis R. Rodriguez
on on blackfin v3: added modular support v2: introduced this patch into the series Cc: Barry Song Cc: Mike Frysinger Cc: Steven Miao Cc: Michael Matz Cc: Guenter Roeck Cc: Fengguang Wu Signed-off-by: Luis R. Rodriguez --- include/asm-generic/vmlinux.lds.h | 4 include/linux/dynamic_de

[Xen-devel] [PATCH v5 08/14] jump_label: move guard #endif down where it belongs

2016-12-21 Thread Luis R. Rodriguez
The ending header guard is misplaced. This has no functional change, this is just an eye-sore. Signed-off-by: Luis R. Rodriguez --- include/linux/jump_label.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/jump_label.h b/include/linux/jump_label.h index

[Xen-devel] [PATCH v5 09/14] jump_label: port __jump_table to linker tables

2016-12-21 Thread Luis R. Rodriguez
r if needed o guard tables.h inclusion and table definition with __KERNEL__ v2: introduced in this series Signed-off-by: Luis R. Rodriguez --- arch/arm/include/asm/jump_label.h | 6 -- arch/arm64/include/asm/jump_label.h | 6 -- arch/mips/include/asm/jump_label.h| 6 -

[Xen-devel] [PATCH v5 13/14] kprobes: port blacklist kprobes to linker table

2016-12-21 Thread Luis R. Rodriguez
6 v3: this patch was introduced in this series Acked-by: Masami Hiramatsu Signed-off-by: Luis R. Rodriguez --- arch/powerpc/include/asm/ppc_asm.h | 4 ++-- arch/x86/include/asm/asm.h | 4 +++- include/asm-generic/kprobes.h | 4 ++-- include/asm-generic/vmlinux.l

[Xen-devel] [PATCH v5 06/14] firmware/Makefile: force recompilation if makefile changes

2016-12-21 Thread Luis R. Rodriguez
If you modify the target asm we currently do not force the recompilation of the firmware files. The target asm is in the firmware/Makefile, peg this file as a dependency to require re-compilation of firmware targets when the asm changes. v3: introduced in this series Signed-off-by: Luis R

[Xen-devel] [PATCH v5 05/14] kbuild: enable option to force compile force-obj-y and force-lib-y

2016-12-21 Thread Luis R. Rodriguez
rnatives that are possible with linker tables. Signed-off-by: Luis R. Rodriguez --- Documentation/kbuild/makefiles.txt | 36 Documentation/sections/linker-tables.rst | 15 +++ include/linux/tables.h | 71

[Xen-devel] [PATCH v5 03/14] ranges.h: add helpers to build and identify Linux section ranges

2016-12-21 Thread Luis R. Rodriguez
o rename SECTION_RANGE_ALL() o use default alignment, fixes builds on powerpc and arm for both __LINUX_RANGE() and __LINUX_RANGE_ORDER() o expand documentation to document modules support o add maintainers o use generic-y v3: new in this series, uses copyleft-next Signed-off-by: Luis R. R

[Xen-devel] [PATCH v5 04/14] tables.h: add linker table support

2016-12-21 Thread Luis R. Rodriguez
ine a clean use case of well documented sections. To help further with this make use of SECTION_TBL() to allow use of these in code and SECTION_TBL_ALL() on linker scripts, as well as SECTION_TBL_ALL_STR() on relocs.c when needed. Cc: Michael Brown Signed-off-by: Luis R. Rodriguez ---

[Xen-devel] [PATCH v5 01/14] generic-sections: add section core helpers

2016-12-21 Thread Luis R. Rodriguez
ode. Note for ASM_CMD_SEP we use by default "\n", architectures needed to override can do so on their own sections.h prior to inclusion of asm-generic/sections.h Signed-off-by: Luis R. Rodriguez --- Documentation/index.rst | 1 + Documentation/sections

[Xen-devel] [PATCH v5 02/14] xtensa: skip adding literal when SORT() is used

2016-12-21 Thread Luis R. Rodriguez
When SORT(foo.*) is used the current sed replacements add SORT(foo.literal foo.*), this breaks linking. Avoid adding literals for SORT globs, if needed, these need to be added manually. Signed-off-by: Luis R. Rodriguez --- arch/xtensa/kernel/Makefile | 8 1 file changed, 4 insertions

[Xen-devel] [PATCH v5 00/14] linux: generalize sections, ranges and linker tables

2016-12-21 Thread Luis R. Rodriguez
797-19295-1-git-send-email-mcg...@do-not-panic.com [2] http://drvbp1.linux-foundation.org/~mcgrof/papers/2016/12/21/linker-tables-20161221.pdf [3] https://git.kernel.org/cgit/linux/kernel/git/mcgrof/linux-next.git/log/?h=20161221-linker-tables-v5 Luis R. Rodriguez (14): generic-sections:

Re: [Xen-devel] [PATCH v4 08/16] kbuild: enable option to force compile force-obj-y and force-lib-y

2016-08-30 Thread Luis R. Rodriguez
On Tue, Aug 23, 2016 at 01:59:10AM +0200, Luis R. Rodriguez wrote: > On Fri, Aug 19, 2016 at 03:10:33PM -0700, Kees Cook wrote: > > On Fri, Aug 19, 2016 at 2:32 PM, wrote: > > > diff --git a/init/Kconfig b/init/Kconfig > > > index cac3f096050d..ef09e83b9196 1006

Re: [Xen-devel] [PATCH v4 14/16] kprobes: move kprobe declarations to asm-generic/kprobes.h

2016-08-30 Thread Luis R. Rodriguez
On Mon, Aug 29, 2016 at 11:04:18PM +0900, Masami Hiramatsu wrote: > On Tue, 23 Aug 2016 18:31:05 +0200 > "Luis R. Rodriguez" wrote: > > > On Tue, Aug 23, 2016 at 12:11:40AM +0900, Masami Hiramatsu wrote: > > > On Fri, 19 Aug 2016 14:34:12 -0700 > > > m

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-26 Thread Luis R. Rodriguez
On Fri, Aug 26, 2016 at 05:33:38PM +1000, Nicholas Piggin wrote: > On Thu, 25 Aug 2016 23:38:44 -0700 > "Luis R. Rodriguez" wrote: > > > > > > Ah, thing is we use this for both linktables and section ranges. > > > > > >

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-25 Thread Luis R. Rodriguez
On Aug 25, 2016 8:00 PM, "Nicholas Piggin" wrote: > > On Thu, 25 Aug 2016 19:52:39 +0200 > "Luis R. Rodriguez" wrote: > > > On Thu, Aug 25, 2016 at 04:51:21PM +1000, Nicholas Piggin wrote: > > > On Thu, 25 Aug 2016 08:05:40 +0200 > > > &

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-25 Thread Luis R. Rodriguez
On Thu, Aug 25, 2016 at 04:51:21PM +1000, Nicholas Piggin wrote: > On Thu, 25 Aug 2016 08:05:40 +0200 > "Luis R. Rodriguez" wrote: > > > Oh, that makes more sense. The SECTION stuff and custom sections was > > > confusing me. I would prefer just to drop all the L

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-24 Thread Luis R. Rodriguez
On Thu, Aug 25, 2016 at 12:06:33PM +1000, Nicholas Piggin wrote: > On Wed, 24 Aug 2016 22:12:53 +0200 > "Luis R. Rodriguez" wrote: > > But: > > > > git grep SECTION_TEXT works as expected immediately. > > > > I guess its a matter of perspective. &

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-24 Thread Luis R. Rodriguez
On Wed, Aug 24, 2016 at 01:51:41PM +1000, Nicholas Piggin wrote: > On Tue, 23 Aug 2016 19:33:06 +0200 > "Luis R. Rodriguez" wrote: > > > On Tue, Aug 23, 2016 at 11:26:33AM +1000, Nicholas Piggin wrote: > > > On Fri, 19 Aug 2016 14:34:02 -

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-23 Thread Luis R. Rodriguez
type() directly and C asm() would just __stringify() it. I figured a bit of bikeshedding would be possible here, so I decided to leave this for a later set of patches. But indeed, I agree with you. If we want this meshed out now.. let me know and lets bikeshed away... > > diff --git

Re: [Xen-devel] [PATCH v4 14/16] kprobes: move kprobe declarations to asm-generic/kprobes.h

2016-08-23 Thread Luis R. Rodriguez
On Tue, Aug 23, 2016 at 12:11:40AM +0900, Masami Hiramatsu wrote: > On Fri, 19 Aug 2016 14:34:12 -0700 > mcg...@kernel.org wrote: > > > From: "Luis R. Rodriguez" > > > > Often all is needed is these small helpers, instead of compiler.h > > or a full k

Re: [Xen-devel] [PATCH v1 7/7] tools: add userspace linker table sandbox

2016-08-22 Thread Luis R. Rodriguez
On Fri, Aug 19, 2016 at 03:31:47PM -0700, Kees Cook wrote: > On Fri, Aug 19, 2016 at 2:41 PM, wrote: > > From: "Luis R. Rodriguez" > > > > Add a userspace sandbox to allow easy experimentation and > > test extensions with linker tables, section ranges and

Re: [Xen-devel] [PATCH v4 08/16] kbuild: enable option to force compile force-obj-y and force-lib-y

2016-08-22 Thread Luis R. Rodriguez
On Fri, Aug 19, 2016 at 03:10:33PM -0700, Kees Cook wrote: > On Fri, Aug 19, 2016 at 2:32 PM, wrote: > > diff --git a/init/Kconfig b/init/Kconfig > > index cac3f096050d..ef09e83b9196 100644 > > --- a/init/Kconfig > > +++ b/init/Kconfig > > @@ -53,6 +53,28 @@ config CROSS_COMPILE > > nee

Re: [Xen-devel] [PATCH v4 07/16] tables.h: add linker table support

2016-08-22 Thread Luis R. Rodriguez
; > +++ b/arch/c6x/include/asm/tables.h > > @@ -0,0 +1,26 @@ > > +#ifndef _ASM_C6X_ASM_TABLES_H > > +#define _ASM_C6X_ASM_TABLES_H > > +/* > > + * Copyright (C) 2016 Luis R. Rodriguez > > + * > > + * This program is free software; you can redistribute it

Re: [Xen-devel] [PATCH v4 06/16] ranges.h: add helpers to build and identify Linux section ranges

2016-08-22 Thread Luis R. Rodriguez
On Fri, Aug 19, 2016 at 02:55:43PM -0700, Kees Cook wrote: > On Fri, Aug 19, 2016 at 2:32 PM, wrote: > > From: "Luis R. Rodriguez" > > > > Section ranges are on one of the types of custom sections > > types used in Linux. This provides a series of helpers

Re: [Xen-devel] [PATCH v4 04/16] generic-sections: add section core helpers

2016-08-22 Thread Luis R. Rodriguez
On Fri, Aug 19, 2016 at 02:47:48PM -0700, Kees Cook wrote: > On Fri, Aug 19, 2016 at 2:32 PM, wrote: > > From: "Luis R. Rodriguez" > > > > +SECTION_RODATA > > +-- > > +.. kernel-doc:: include/asm-generic/section-core.h > > + :doc: S

Re: [Xen-devel] [PATCH v4 00/16] linux: generalize sections, ranges and linker tables

2016-08-22 Thread Luis R. Rodriguez
On Fri, Aug 19, 2016 at 03:29:24PM -0700, Kees Cook wrote: > On Fri, Aug 19, 2016 at 2:32 PM, wrote: > > From: "Luis R. Rodriguez" > > > > This v4 addresses feedback from the previous v3 series [0], and also > > addresses a huge array of additional tests a

Re: [Xen-devel] [RFC v3 07/13] tables.h: add linker table support

2016-08-13 Thread Luis R. Rodriguez
On Sat, Aug 13, 2016 at 12:46:16PM +0200, Greg KH wrote: > On Sat, Aug 13, 2016 at 12:00:42AM +0200, Luis R. Rodriguez wrote: > > On Fri, Aug 12, 2016 at 10:23:34PM +0200, Greg KH wrote: > > > On Fri, Aug 12, 2016 at 07:04:52PM +0200, Luis R. Rodriguez wrote: > > >

Re: [Xen-devel] [RFC v3 07/13] tables.h: add linker table support

2016-08-12 Thread Luis R. Rodriguez
On Fri, Aug 12, 2016 at 10:23:34PM +0200, Greg KH wrote: > On Fri, Aug 12, 2016 at 07:04:52PM +0200, Luis R. Rodriguez wrote: > > Alright, how's this new description: > > > > diff --git a/init/Kconfig b/init/Kconfig > > index cac3f096050d..73e4890c24c4 100644 >

Re: [Xen-devel] [RFC v3 07/13] tables.h: add linker table support

2016-08-12 Thread Luis R. Rodriguez
On Fri, Aug 12, 2016 at 05:51:21PM +0200, Borislav Petkov wrote: > On Fri, Aug 12, 2016 at 05:28:05PM +0200, Luis R. Rodriguez wrote: > > Even so, you don't link the compiled extra code so the only penalty > > here is when compiling, nothing more. And if you are compiling ty

Re: [Xen-devel] [RFC v3 07/13] tables.h: add linker table support

2016-08-12 Thread Luis R. Rodriguez
On Fri, Aug 12, 2016 at 09:25:07AM +0200, Borislav Petkov wrote: > On Fri, Aug 12, 2016 at 08:50:11AM +0200, Luis R. Rodriguez wrote: > > On Fri, Aug 12, 2016 at 07:23:03AM +0200, Borislav Petkov wrote: > > > On Fri, Aug 12, 2016 at 05:51:29AM +0200, Luis R. Rodriguez wrote: >

Re: [Xen-devel] [RFC v3 07/13] tables.h: add linker table support

2016-08-11 Thread Luis R. Rodriguez
On Fri, Aug 12, 2016 at 07:23:03AM +0200, Borislav Petkov wrote: > On Fri, Aug 12, 2016 at 05:51:29AM +0200, Luis R. Rodriguez wrote: > > OK I've added CONFIG_BUILD_AVOID_BITROT. > > What does that do? Enabling it allows the forced compilation chosen by maintaine

Re: [Xen-devel] [RFC v3 07/13] tables.h: add linker table support

2016-08-11 Thread Luis R. Rodriguez
On Tue, Aug 09, 2016 at 05:55:08AM +0200, Borislav Petkov wrote: > On Mon, Aug 08, 2016 at 05:05:39PM +0200, Luis R. Rodriguez wrote: > > > So how can I disable those table-* things from even getting built? Avoid > > > using table-y? But then everything declared

Re: [Xen-devel] [RFC v3 00/13] linux: generalize sections, ranges and linker tables

2016-08-10 Thread Luis R. Rodriguez
On Tue, Aug 09, 2016 at 09:09:07AM -0700, James Bottomley wrote: > On Tue, 2016-08-09 at 15:24 +0100, One Thousand Gnomes wrote: > > > table development go under copyleft-next, Rusty recently asked for > > > code to go in prior to the license tag being added denoting this > > > license as GPL-com

Re: [Xen-devel] [RFC v3 07/13] tables.h: add linker table support

2016-08-08 Thread Luis R. Rodriguez
On Fri, Jul 29, 2016 at 12:06:30PM +0200, Borislav Petkov wrote: > On Fri, Jul 22, 2016 at 02:24:41PM -0700, Luis R. Rodriguez wrote: > > A linker table is a data structure that is stitched together from items > > in multiple object files. Linux has historically implicitly used li

Re: [Xen-devel] [RFC v3 07/13] tables.h: add linker table support

2016-07-27 Thread Luis R. Rodriguez
On Tue, Jul 26, 2016 at 12:30:14AM +0900, Masami Hiramatsu wrote: > On Fri, 22 Jul 2016 14:24:41 -0700 > "Luis R. Rodriguez" wrote: > > > +/** > > + * LINKTABLE_RUN_ALL - iterate and run through all entries on a linker > > table > > + * > > + *

Re: [Xen-devel] [RFC v3 13/13] kprobes: port blacklist kprobes to linker table

2016-07-27 Thread Luis R. Rodriguez
On Tue, Jul 26, 2016 at 12:27:22AM +0900, Masami Hiramatsu wrote: > On Fri, 22 Jul 2016 14:24:47 -0700 > "Luis R. Rodriguez" wrote: > > > kprobe makes use of two sections, the one dealing with the actual > > kprobes was recently ported using the standard secti

Re: [Xen-devel] [RFC v3 10/13] jump_label: port __jump_table to linker tables

2016-07-27 Thread Luis R. Rodriguez
On Fri, Jul 22, 2016 at 05:55:35PM -0500, Josh Poimboeuf wrote: > On Sat, Jul 23, 2016 at 12:26:54AM +0200, Luis R. Rodriguez wrote: > > On Fri, Jul 22, 2016 at 04:49:45PM -0500, Josh Poimboeuf wrote: > > > On Fri, Jul 22, 2016 at 02:24:44PM -0700, Luis R. Rodriguez wrote: &g

  1   2   3   4   5   6   7   8   9   >