LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 1/1] um: add IRQENTRY and SOFTIRQENTRY points.
       [not found] <CGME20180420090931epcas5p47799b0f1aef5b1bb70e33118bc167c84@epcas5p4.samsung.com>
@ 2018-04-20  9:07 ` Maninder Singh
  0 siblings, 0 replies; only message in thread
From: Maninder Singh @ 2018-04-20  9:07 UTC (permalink / raw)
  To: jdike, richard, kstewart, tglx, gregkh, pombredanne
  Cc: user-mode-linux-devel, user-mode-linux-user, linux-kernel,
	a.sahrawat, pankaj.m, v.narang, Maninder Singh

This patchs add sections for IRQENTRY and SOFTIRQENTRY.
Initially added by below kernel patch for all architecture,
but missed in um.

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=be7635e7287e0e8013af3c89a6354a9e0182594c

We need to add both sections because if someone has to use
stackdepot feature for stacktrace and want to filter IRQ stack
entries, it will break build for um.

Below patch is breaking build break for um.
mm/page_owner: ignore everything below the IRQ entry point.
V2:- https://lkml.org/lkml/2018/3/26/178
V3:- https://lkml.org/lkml/2018/3/27/357

Signed-off-by: Vaneet Narang <v.narang@samsung.com>
Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
---
 arch/um/kernel/dyn.lds.S | 2 ++
 arch/um/kernel/uml.lds.S | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/arch/um/kernel/dyn.lds.S b/arch/um/kernel/dyn.lds.S
index d417e38..0fb2d3a 100644
--- a/arch/um/kernel/dyn.lds.S
+++ b/arch/um/kernel/dyn.lds.S
@@ -71,6 +71,8 @@ SECTIONS
     SCHED_TEXT
     CPUIDLE_TEXT
     LOCK_TEXT
+    IRQENTRY_TEXT
+    SOFTIRQENTRY_TEXT
     *(.fixup)
     *(.stub .text.* .gnu.linkonce.t.*)
     /* .gnu.warning sections are handled specially by elf32.em.  */
diff --git a/arch/um/kernel/uml.lds.S b/arch/um/kernel/uml.lds.S
index 3d6ed6b..f12b856 100644
--- a/arch/um/kernel/uml.lds.S
+++ b/arch/um/kernel/uml.lds.S
@@ -31,6 +31,8 @@ SECTIONS
     SCHED_TEXT
     CPUIDLE_TEXT
     LOCK_TEXT
+    IRQENTRY_TEXT
+    SOFTIRQENTRY_TEXT
     *(.fixup)
     /* .gnu.warning sections are handled specially by elf32.em.  */
     *(.gnu.warning)
-- 
1.9.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-04-20  9:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20180420090931epcas5p47799b0f1aef5b1bb70e33118bc167c84@epcas5p4.samsung.com>
2018-04-20  9:07 ` [PATCH 1/1] um: add IRQENTRY and SOFTIRQENTRY points Maninder Singh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).