-0x38)
are larger than a single timer register set size (0x20).
Change the code to define timer-specific register offsets as offsets
from the first timer register to make the code easier to understand and
better reflect the register layout.
Signed-off-by: Marcin Nowakowski <marcin.nowa
d what has previously gone unnoticed now leads to a kernel
panic during boot.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
---
drivers/clocksource/time-pistachio.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/clocksource/time-pistac
Hi Serge,
On 19.12.2016 03:07, Serge Semin wrote:
Bootmem allocator initialization needs to be discarded.
PFN limit constants are still in use by some subsystems, so they
need to be properly initialized. The initialization is moved into
a separate method and performed with help of commonly used
Hi Serge,
On 19.12.2016 03:07, Serge Semin wrote:
Both new memblock and boot_mem_map subsystems need to be fully
cleared before a new memory region is added. So the early parser is
correspondingly modified.
Signed-off-by: Serge Semin
---
arch/mips/kernel/setup.c | 67
Hi Serge,
Thanks for this patch series, it's really useful. I've tested it on
Malta and Ci40 and it seems to work well (I've posted a few small
comments separately).
On 19.12.2016 03:07, Serge Semin wrote:
Most of the modern platforms supported by linux kernel have already
been cleaned up
attempting
to use perf tool to access hardware performance counters.
Fix this by explicitly calling irq_create_fwspec_mapping() for local
interrupts.
Fixes: e875bd66dfb ("irqchip/mips-gic: Fix local interrupts")
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Hi Yang,
On 13.02.2017 16:28, Yang Ling wrote:
Add support for the PWM controller present in Loongson1 family of SoCs.
Signed-off-by: Yang Ling
---
drivers/pwm/Kconfig | 9 +++
drivers/pwm/Makefile| 1 +
drivers/pwm/pwm-loongson1.c | 169
Add a new command cpp_its_S introduced in:
cf2a5e0bb4c6 ("MIPS: Support generating Flattened Image Trees (.itb)")
to ksym_dep_filter handler - otherwise a warning is produced during the
build of MIPS platforms (when vmlinux.*.itb target is chosen)
Signed-off-by: Marcin Nowakowski <m
Add a new command cpp_its_S introduced in:
cf2a5e0bb4c6 ("MIPS: Support generating Flattened Image Trees (.itb)")
to ksym_dep_filter handler - otherwise a warning is produced during the
build of MIPS platforms (when vmlinux.*.itb target is chosen)
Signed-off-by: Marcin Nowakowski <m
Hi Yang,
On 15.02.2017 14:09, Yang Ling wrote:
+ tmp = (unsigned long long)clk_get_rate(pc->clk) * period_ns;
+ do_div(tmp, 10);
NSEC_PER_SEC ?
+ period = tmp;
+
+ tmp = (unsigned long long)period * duty_ns;
+ do_div(tmp, period_ns);
+ duty =
Hi Arnaldo,
On 15.02.2017 16:18, Arnaldo Carvalho de Melo wrote:
Em Wed, Feb 15, 2017 at 03:56:30PM +0100, Marcin Nowakowski escreveu:
Makefile in lib/api unconditionally sets the LD to support
cross-compilation. However, when invoked from within the perf build LD
may be already appropriately
override to a conditional one.
Fixes: 37b4e2020a5f ('perf build: Add EXTRA_LDFLAGS option to makefile')
Fixes: 703e01652d25 ('tools lib api: Respect CROSS_COMPILE for the linker')
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
---
tools/lib/api/Makefile | 2 +-
1 file chan
The declarations of arch-specific functions have been moved to a common
header in commit 3820b4d2789f ('uprobes: Move function declarations out of
arch'), but MIPS and S390 has added them to their own trees later.
Remove the unnecessary duplicates.
Signed-off-by: Marcin Nowakowski <marcin.nowa
Hi Andrew,
On 03.09.2016 12:59, Heiko Carstens wrote:
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
---
arch/mips/include/asm/uprobes.h | 12
arch/s390/include/asm/uprobes.h | 10 --
2 files changed, 22 deletions(-)
You may either split this
On 31.08.2016 01:28, Steven Rostedt wrote:
On Tue, 30 Aug 2016 16:09:04 -0700
Andy Lutomirski wrote:
But none of this should be a problem at all for MIPS, right? AFAICT
the only problem for MIPS is that there *is* a mapping from metadata
to nr. If that mapping got
On 30.08.2016 01:55, Andy Lutomirski wrote:
On Aug 29, 2016 11:30 AM, "Marcin Nowakowski"
<marcin.nowakow...@imgtec.com> wrote:
Syscall metadata makes an assumption that only a single syscall number
corresponds to a given method. This is true for most archs, but
can break t
On 31.08.2016 02:01, Andy Lutomirski wrote:
On Tue, Aug 30, 2016 at 4:28 PM, Steven Rostedt wrote:
On Tue, 30 Aug 2016 16:09:04 -0700
Andy Lutomirski wrote:
But none of this should be a problem at all for MIPS, right? AFAICT
the only problem for
Hi Andy,
Thanks for your review and the comments, I'll address them in a next
iteration. Do you have any other comments on the complete patchset?
On 12.09.2016 19:35, Andy Lutomirski wrote:
On Sep 9, 2016 1:04 AM, "Marcin Nowakowski"
<marcin.nowakow...@imgtec.com> wrote:
Ex
Now that compat syscalls are properly distinguished from native calls,
we can add metadata for compat syscalls as well.
All the macros used to generate the metadata are the same as for
standard syscalls, but with a compat_ prefix to distinguish them easily.
Signed-off-by: Marcin Nowakowski
Add missing arch code - arch_trace_is_compat_syscall and
arch_syscall_addr
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
Cc: Martin Schwidefsky <schwidef...@de.ibm.com>
Cc: Hei
the regs provided.
This will be used by x86 in a follow-up change.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
---
kernel/trace/trace_syscalls.c | 4
1 file changed, 4 inserti
Add missing arch code - arch_trace_is_compat_syscall and
arch_syscall_addr
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
Cc: "James E.J. Bottomley" <j...@parisc-linux.org&g
-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
---
arch/mips/kernel/ftrace.c | 4 +-
arch/powerpc/kernel/ftrace.c | 2 +-
include/linux/ftrace.h| 2 +-
kernel/trace/trac
syscall lookup together with the syscall metadata table
traversal to register for appropriate events instead. This slightly
increases the overhead during event (un)registration, but does not
impact the trace events themselves, which still use syscall numbers
directly.
Signed-off-by: Marcin Nowakowski
things work as previously until arch-specific patch is applied. The only
exception here is x86 which had extra methods to prevent incorrect syscall
reporting for compat tasks - this may happen after patch 2 is applied and
without x86/tracing patch.
Marcin Nowakowski (11):
tracing/syscalls: remove
Add arch_syscall_addr for arm64 and define NR_compat_syscalls, as the
number of compat syscalls for arm64 exceeds the number defined by
NR_syscalls.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...
Adapt the code to make use of new syscall handling interface
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
Cc: Benjamin Herrenschmidt <b...@kernel.crashing.org>
Cc: Paul Mackerr
Add missing arch code - arch_trace_is_compat_syscall and
arch_syscall_addr
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
Cc: "David S. Miller" <da...@davemloft.net&
Add missing arch code - arch_trace_is_compat_syscall and
arch_syscall_addr
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc:Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
Cc: Chris Metcalf <cmetc...@mellanox.com>
---
arch/t
bit from syscall
numbers.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
Cc: Thomas Gleixner <t...@linutronix.de>
Cc: "H. Peter Anvin" <h...@zytor.com>
Cc: x...@kerne
here ... hence this change is sent as an RFC so that I can
get valuable feedback on the proposed solution.
Finally the last patch adds the missing compat syscall metadata.
Marcin Nowakowski (3):
tracing/syscalls: remove syscall_nr from syscall metadata
tracing/syscalls: add handling for compat
Now that compat syscalls are properly distinguished from native calls,
we can add metadata for compat syscalls as well.
All the macros used to generate the metadata are the same as for
standard syscalls, but with a compat_ prefix to distinguish them easily.
Signed-off-by: Marcin Nowakowski
is reviewed.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
---
arch/mips/kernel/ftrace.c | 4 +-
arch/x86/include/asm/ftrace.h | 10 +---
arch/x86/kernel/ftrace.c | 14 ++
include/linux/ftrace.h| 2 +-
kernel/trace/trace.h | 11 +++-
change in
how syscall tables and numbers are defined for each arch.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
---
include/linux/syscalls.h | 1 -
include/trace/syscall.h | 2 -
kernel/trace/trace_syscalls.c | 150 ---
Depending on the kernel configuration, up to 3 syscall tables can be
used in parallel - so set the number properly to ensure syscall tracing
is set up properly.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
---
arch/mips/include/asm/unistd.h | 4
1 file chan
will be of size 1 and is not going to
add any overhead. If an arch requires multiple syscall_nr to be
supported, it needs to define its own NR_syscall_tables to override the
default behaviour.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
---
include/linux/syscalls.h | 2 +-
i
On 27.09.2016 14:04, Ralf Baechle wrote:
On Mon, Aug 29, 2016 at 11:30:07AM +0200, Marcin Nowakowski wrote:
Depending on the kernel configuration, up to 3 syscall tables can be
used in parallel - so set the number properly to ensure syscall tracing
is set up properly.
Signed-off-by: Marcin
- tile: change in_compat_syscall to is_compat_task (suggested and signed-off by
Chris Metcalf)
Marcin Nowakowski (12):
tracing/syscalls: remove syscall_nr from syscall metadata
tracing/syscalls: add handling for compat tasks
tracing/syscalls: drop arch_syscall_match_sym_name
tracing
syscall lookup together with the syscall metadata table
traversal to register for appropriate events instead. This slightly
increases the overhead during event (un)registration, but does not
impact the trace events themselves, which still use syscall numbers
directly.
Signed-off-by: Marcin Nowakowski
Add missing arch code - arch_trace_is_compat_syscall and
arch_syscall_addr
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
Cc: "James E.J. Bottomley" <j...@parisc-linux.org&g
Add missing arch code - arch_trace_is_compat_syscall and
arch_syscall_addr
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
Signed-off-by: Chris Metcalf <cmetc...@mellanox.com>
--
-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
---
arch/mips/kernel/ftrace.c | 4 +-
arch/powerpc/kernel/ftrace.c | 2 +-
include/linux/ftrace.h| 2 +-
kernel/trace/trac
.
Next commit will make syscall_match_sym_name implementation a bit
larger, so clean it up now to avoid further patching arch code whenever
the core method changes.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Signed-off-by: Michael Ellerman <m...@eller
Add missing arch code - arch_trace_is_compat_syscall and
arch_syscall_addr
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
Cc: Martin Schwidefsky <schwidef...@de.ibm.com>
Cc: Hei
Now that compat syscalls are properly distinguished from native calls,
we can add metadata for compat syscalls as well.
All the macros used to generate the metadata are the same as for
standard syscalls, but with a compat_ prefix to distinguish them easily.
Signed-off-by: Marcin Nowakowski
the regs provided.
This will be used by x86 in a follow-up change.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
---
kernel/trace/trace_syscalls.c | 4
1 file changed, 4 inserti
bit from syscall
numbers.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
Cc: Thomas Gleixner <t...@linutronix.de>
Cc: "H. Peter Anvin" <h...@zytor.com>
Cc: x...@kerne
the regs provided.
This will be used by x86 in a follow-up change.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
---
kernel/trace/trace_syscalls.c | 4
1 file changed, 4 inserti
Adapt the code to make use of new syscall handling interface
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
Cc: Benjamin Herrenschmidt <b...@kernel.crashing.org>
Cc: Paul Mackerr
Add missing arch code - arch_trace_is_compat_syscall and
arch_syscall_addr
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
Cc: "David S. Miller" <da...@davemloft.net&
Add arch_syscall_addr for arm64 and define NR_compat_syscalls, as the
number of compat syscalls for arm64 exceeds the number defined by
NR_syscalls.
Convert the existing uses of __NR_compat_syscalls to the newly
introduced NR_compat_syscalls
Signed-off-by: Marcin Nowakowski <marcin.nowa
* macro
invocations throughout this file.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
---
include/linux/elfcore.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/elfcore.h b/include/linux/elfcore.h
index 698d51a..be7 100644
--- a/include
DTBs are compiled into byte arrays that are placed inside
.dtb.init.rodata section. As they are never referenced directly from the
code, they get removed during dead data elimination and we end up with
__dtb_start == __dtb_end.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Add missing arch code - arch_trace_is_compat_syscall and
arch_syscall_addr
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
Cc: Martin Schwidefsky <schwidef...@de.ibm.com>
Cc: Hei
methods to prevent incorrect syscall
reporting for compat tasks - this may happen after patch 2 is applied and
without x86/tracing patch.
version 3:
- rebase on top of linux-next-20161011
- tile: change in_compat_syscall to is_compat_task (suggested and signed-off by
Chris Metcalf)
Marcin
syscall lookup together with the syscall metadata table
traversal to register for appropriate events instead. This slightly
increases the overhead during event (un)registration, but does not
impact the trace events themselves, which still use syscall numbers
directly.
Signed-off-by: Marcin Nowakowski
bit from syscall
numbers.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
Cc: Thomas Gleixner <t...@linutronix.de>
Cc: "H. Peter Anvin" <h...@zytor.com>
Cc: x...@kerne
Add missing arch code - arch_trace_is_compat_syscall and
arch_syscall_addr
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
Cc: "David S. Miller" <da...@davemloft.net&
-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
---
arch/mips/kernel/ftrace.c | 4 +-
arch/powerpc/kernel/ftrace.c | 2 +-
include/linux/ftrace.h| 2 +-
kernel/trace/trac
Adapt the code to make use of new syscall handling interface
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
Cc: Benjamin Herrenschmidt <b...@kernel.crashing.org>
Cc: Paul Mackerr
the regs provided.
This will be used by x86 in a follow-up change.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
---
kernel/trace/trace_syscalls.c | 4
1 file changed, 4 inserti
Now that compat syscalls are properly distinguished from native calls,
we can add metadata for compat syscalls as well.
All the macros used to generate the metadata are the same as for
standard syscalls, but with a compat_ prefix to distinguish them easily.
Signed-off-by: Marcin Nowakowski
Add missing arch code - arch_trace_is_compat_syscall and
arch_syscall_addr
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
Cc: "James E.J. Bottomley" <j...@parisc-linux.org&g
Add arch_syscall_addr for arm64 and define NR_compat_syscalls, as the
number of compat syscalls for arm64 exceeds the number defined by
NR_syscalls.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...
Add missing arch code - arch_trace_is_compat_syscall and
arch_syscall_addr
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
Cc: Steven Rostedt <rost...@goodmis.org>
Cc: Ingo Molnar <mi...@redhat.com>
Signed-off-by: Chris Metcalf <cmetc...@mellanox.com>
--
On 12.10.2016 11:59, Michael Ellerman wrote:
I went to test this and noticed the exit and enter events appear to be
reversed in time? (your series on top of 24532f768121)
thanks for testing the patch - I've found a bug that has sneaked in
while cleaning up the patches before submission ...
On 12.10.2016 10:50, Michael Ellerman wrote:
<...>
It's annoying that we have to duplicate all that just to do a + 1.
How about this as a precursor?
> <...>
Thanks for the suggestion - unless anyone sees a reason to keep the
current solution I'll change it.
Marcin
On 12.10.2016 15:53, Thomas Gleixner wrote:
On Tue, 11 Oct 2016, Marcin Nowakowski wrote:
-/*
- * Because ia32 syscalls do not map to x86_64 syscall numbers
- * this screws up the trace output when tracing a ia32 task.
- * Instead of reporting bogus syscalls, just do not trace them
Hi Will,
On 11.10.2016 15:36, Will Deacon wrote:
On Tue, Oct 11, 2016 at 12:42:52PM +0200, Marcin Nowakowski wrote:
Add arch_syscall_addr for arm64 and define NR_compat_syscalls, as the
number of compat syscalls for arm64 exceeds the number defined by
NR_syscalls.
Signed-off-by: Marcin
e the test method being optimised away.
Finally, add __init annotations to find_trace_probe_file() and
kprobe_trace_selftest_target() as they are only called from within an
__init method.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
---
kernel/trace/tra
The number of probe hits is stored in a percpu variable and therefore
can't be read directly. Add a helper method trace_kprobe_nhit() that
performs the required calculation.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
---
kernel/trace/trace_kprobe.
On 09.12.2016 15:03, Steven Rostedt wrote:
On Fri, 9 Dec 2016 09:00:52 -0500
Steven Rostedt <rost...@goodmis.org> wrote:
On Fri, 9 Dec 2016 13:25:51 +0100
Marcin Nowakowski <marcin.nowakow...@imgtec.com> wrote:
The number of probe hits is stored in a percpu variable and the
e the test method being optimised away.
Finally, add __init annotations to find_trace_probe_file() and
kprobe_trace_selftest_target() as they are only called from within an
__init method.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
---
kernel/trace/tra
-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
---
kernel/trace/trace_kprobe.c | 19 +--
1 file changed, 13 insertions(+), 6 deletions(-)
v2: improved commit message as suggested by Steven Rostedt
diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c
index e
is copied, caches are not flushed at all and stale data may
be found in icache.
Replace a simple copy_to_page() with arch_uprobe_copy_ixol() to allow
the arch to ensure all caches are updated accordingly.
This change fixes uprobes on MIPS InterAptiv (tested on Creator Ci40).
Signed-off-by: Marcin
Since the KERN_CONT changes, the current debug printks have a lot of
empty lines making the log messages very hard to read.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
---
drivers/of/base.c | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/d
Hi Nick,
On 22.12.2016 10:08, Nicholas Piggin wrote:
On Thu, 22 Dec 2016 09:51:45 +0100
Marcin Nowakowski <marcin.nowakow...@imgtec.com> wrote:
Enabling dead code & data elimination currently breaks ftrace operation,
as the __mcount_loc section is removed (as it is not reference
erly handle the section
names as created by the use of -ffunction-sections.
The following 2 patches fix that behaviour.
They are based on next-20161208.
Marcin Nowakowski (2):
kbuild: keep __mcount_loc table through dead code elimination
recordmcount: fix mcount recording with -ffunction-sect
When CONFIG_LD_DEAD_CODE_DATA_ELIMINATION is enabled we must ensure
__mcount_loc is preserved, as otherwise there are no valid entries for
ftrace to work with.
Fixes: 4b89b7f7aad5 ('kbuild: keep data tables through dead code elimination')
Signed-off-by: Marcin Nowakowski <marcin.nowa
zA-Z_]*", add a similar
pattern matching to recordmcount script for section detection.
To simplify the basic C implementation, replace the regex with a string
match on the prefix and a single character match following the '.text.'
prefix.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgt
Hi Oleg,
On 20.12.2016 14:08, Oleg Nesterov wrote:
On 12/19, tip-bot for Marcin Nowakowski wrote:
uprobes: Fix uprobes on MIPS, allow for a cache flush after ixol breakpoint
creation
Commit:
72e6ae285a1d ('ARM: 8043/1: uprobes need icache flush after xol write'
... has introduced
Hi Corey,
This has already been fixed here:
https://git.linux-mips.org/cgit/ralf/upstream-sfr.git/commit/?id=21da5332327b6d183bd93336ecf29c70bc609b7b
https://git.linux-mips.org/cgit/ralf/upstream-sfr.git/commit/?id=735302665c353d6756e7fa2a2cf41b039299f732
Marcin
On 09.08.2017 23:25,
Hi Paul,
On 07.06.2017 22:04, Paul Cercueil wrote:
In the devicetree, it is possible to specify the baudrate, parity,
bits, flow of the early console, by passing a configuration string like
this:
aliases {
serial0 =
};
chosen {
stdout-path = "serial0:57600n8";
};
This, for
'schedstats' kernel parameter should be set to enable/disable, so
correct the printk hint saying that it should be set to 'enable' rather
than 'enabled' to enable scheduler tracepoints.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
---
kernel/sched/fair.c | 2 +-
1 file c
be longer than the update
timeout leading to update failure.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
---
v2: move notrace attribute after return type
---
drivers/irqchip/irq-mips-gic.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/i
10/0x1b8
[3.041915] [<804e589c>] ftrace_ops_no_ops+0x114/0x1bc
[3.047923] [<8045478c>] core_kernel_text+0x10/0x1b8
[3.053682] [<804119b8>] prepare_ftrace_return+0x6c/0x114
[3.059938] [<80411b2c>] ftrace_graph_caller+0x20/0x44
(...)
Mark the function notrace to avoid it
Hi Paul, Maarten,
On 20.06.2017 17:18, Paul Cercueil wrote:
From: Maarten ter Huurne
We have seen MMC DMA transfers read corrupted data from SDRAM when
a burst interval ends at physical address 0x1000. To avoid this
problem, we remove the final page of low memory
Hi Sudip,
This patch fixes the build error, but leaves the I6500 handling incorrect.
I had explained to Ralf how the build should be fixed a while ago so
hopefully he will fix it up in his -next branch (dd71e57bacb5 should
have been applied on top of f7a31b5e7874, but in Ralf's tree
This patch series fixes build errors observed when building net, memfd, gpio
and intel_pstate tests
Marcin Nowakowski (3):
selftests/{net,memfd}: fix undefined references to external libraries
selftests/gpio: fix build error
selftests/intel_pstate: fix undefined reference when building
from selftests build and this is left as a future
task to resolve properly.
Fixes: a8ba798bc8ec ('selftests: enable O and KBUILD_OUTPUT')
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
---
tools/testing/selftests/gpio/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 de
Currently the build fails with:
/tmp/ccmgtz8N.o: In function `main':
aperf.c:(.text+0x278): undefined reference to `sqrt'
collect2: error: ld returned 1 exit status
Replace LDFLAGS with LDLIBS to ensure proper ordering of arguments in
build rules.
Signed-off-by: Marcin Nowakowski
('selftests: enable O and KBUILD_OUTPUT')
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
---
tools/testing/selftests/memfd/Makefile | 4 ++--
tools/testing/selftests/net/Makefile | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/testing/sel
Hi Serge,
On 22.05.2017 12:26, Serge Semin wrote:
Regarding the patchset. I'm still pretty much eager to make it being
part of kernel MIPS arch. But there was a problem I outlined
in the patchset header message, which I can't fix by myself.
Particulary It's connected with Loonson3 or SGI IP27
Hi Serge,
On 19.12.2016 03:07, Serge Semin wrote:
Most of the modern platforms supported by linux kernel have already
been cleaned up of old bootmem allocator by moving to nobootmem
interface wrapping up the memblock. This patchset is the first
attempt to do the similar improvement for MIPS for
Hi Marc,
On 08.06.2017 15:26, Marc Zyngier wrote:
On Thu, Jun 08 2017 at 3:06:23 pm BST, Marcin Nowakowski
<marcin.nowakow...@imgtec.com> wrote:
gic_read_count(), gic_write_compare() and gic_write_cpu_compare() are
often used in a sequence to update the compare register with a count
be longer than the update
timeout leading to update failure.
Signed-off-by: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
---
drivers/irqchip/irq-mips-gic.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/irqchip/irq-mips-gic.c b/drivers/irqchip/irq-mips
Levin)
<alexander.le...@verizon.com> wrote:
From: Marcin Nowakowski <marcin.nowakow...@imgtec.com>
[ Upstream commit 73fbc1eba7ffa3bf0ad12486232a8a1edb4e4411 ]
When a memory offset is specified through the commandline, add the
memory in range PHYS_OFFSET:Y as reserved memory area.
Otherwise the
Hi Arnd, Greg,
On 19.11.2017 21:55, Arnd Bergmann wrote:
[Adding the others to cc]
-- Forwarded message --
From: Arnd Bergmann
Date: Sun, Nov 19, 2017 at 9:53 PM
Subject: Re: stable-rc/linux-4.4.y build: 182 builds: 60 failed, 122
passed, 60 errors, 60 warnings
Hi Mathieu,
On 28.12.2017 22:29, Mathieu Malaterre wrote:
--- /dev/null
+++ b/drivers/nvmem/jz4780-efuse.c
@@ -0,0 +1,305 @@
+/*
+ * JZ4780 EFUSE Memory Support driver
+ *
+ * Copyright (c) 2017 PrasannaKumar Muralidharan
+ *
+ * This program is free software; you
Hi Serge,
On 19.12.2017 21:14, Serge Semin wrote:
Hello folks,
Almost a year ago I sent a patchset to the Linux MIPS community. The main
target of the patchset
was to get rid from the old bootmem allocator usage at the MIPS architecture.
Additionally I had
a problem with CMA usage on my MIPS
1 - 100 of 214 matches
Mail list logo