From: Wang Qing <wangqing@vivo.com>
To: Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will@kernel.org>, Ingo Molnar <mingo@redhat.com>,
Peter Zijlstra <peterz@infradead.org>,
Juri Lelli <juri.lelli@redhat.com>,
Vincent Guittot <vincent.guittot@linaro.org>,
Dietmar Eggemann <dietmar.eggemann@arm.com>,
Steven Rostedt <rostedt@goodmis.org>,
Ben Segall <bsegall@google.com>, Mel Gorman <mgorman@suse.de>,
James Morse <james.morse@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
"Eric W. Biederman" <ebiederm@xmission.com>,
Thomas Gleixner <tglx@linutronix.de>,
jinho lim <jordan.lim@samsung.com>, Wang Qing <wangqing@vivo.com>,
Dave Martin <Dave.Martin@arm.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Cc: opensource.kernel@vivo.com
Subject: [V3 0/3] Fixed dump_backtrace() when task running on another cpu
Date: Tue, 14 Apr 2020 20:36:29 +0800 [thread overview]
Message-ID: <1586867796-5768-1-git-send-email-wangqing@vivo.com> (raw)
We cannot get FP and PC when the task is running on another CPU,
task->thread.cpu_context is the last time the task was switched out,
it's better to give a reminder than to provide wrong information
for example when Task blocked in spinlock/interrupt/busy loop.
The task_running() should be renamed to task_running_on_rq()
like the naming of task_running_on_cpu(), this is what it
originally mean.
Add task_running() no rq required.
V2:
- Add task_running_oncpu()
v3:
- Renamed task_running() to task_running_on_rq()
- Renamed task_running_oncpu() to task_running()
Wang Qing (3):
ARM64:fixed dump_backtrace() when task running on another cpu
sched:add task_running()
sched:rename task_running() and to task_running_on_rq
arch/arm64/kernel/traps.c | 7 +++++++
include/linux/sched.h | 10 ++++++++++
kernel/sched/core.c | 14 +++++++-------
kernel/sched/deadline.c | 6 +++---
kernel/sched/fair.c | 2 +-
kernel/sched/rt.c | 6 +++---
kernel/sched/sched.h | 2 +-
7 files changed, 32 insertions(+), 15 deletions(-)
--
2.7.4
next reply other threads:[~2020-04-14 12:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-14 12:36 Wang Qing [this message]
2020-04-14 12:36 ` [V3 1/3] ARM64:fixed " Wang Qing
2020-04-14 12:36 ` [V3 2/3] sched:add task_running() Wang Qing
2020-04-14 12:36 ` [V3 3/3] sched:rename task_running() and to task_running_on_rq Wang Qing
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1586867796-5768-1-git-send-email-wangqing@vivo.com \
--to=wangqing@vivo.com \
--cc=Dave.Martin@arm.com \
--cc=bsegall@google.com \
--cc=catalin.marinas@arm.com \
--cc=dietmar.eggemann@arm.com \
--cc=ebiederm@xmission.com \
--cc=james.morse@arm.com \
--cc=jordan.lim@samsung.com \
--cc=juri.lelli@redhat.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mgorman@suse.de \
--cc=mingo@redhat.com \
--cc=opensource.kernel@vivo.com \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
--cc=vincent.guittot@linaro.org \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®