License cleanup: add SPDX GPL-2.0 license identifier to files with no license
Many source files in the tree are missing licensing information, which
makes it harder for compliance tools to determine the correct license.
By default all files without license information are under the default
license of the kernel, which is GPL version 2.
Update the files which contain no license information with the 'GPL-2.0'
SPDX license identifier. The SPDX identifier is a legally binding
shorthand, which can be used instead of the full boiler plate text.
This patch is based on work done by Thomas Gleixner and Kate Stewart and
Philippe Ombredanne.
How this work was done:
Patches were generated and checked against linux-4.14-rc6 for a subset of
the use cases:
- file had no licensing information it it.
- file was a */uapi/* one with no licensing information in it,
- file was a */uapi/* one with existing licensing information,
Further patches will be generated in subsequent months to fix up cases
where non-standard license headers were used, and references to license
had to be inferred by heuristics based on keywords.
The analysis to determine which SPDX License Identifier to be applied to
a file was done in a spreadsheet of side by side results from of the
output of two independent scanners (ScanCode & Windriver) producing SPDX
tag:value files created by Philippe Ombredanne. Philippe prepared the
base worksheet, and did an initial spot review of a few 1000 files.
The 4.13 kernel was the starting point of the analysis with 60,537 files
assessed. Kate Stewart did a file by file comparison of the scanner
results in the spreadsheet to determine which SPDX license identifier(s)
to be applied to the file. She confirmed any determination that was not
immediately clear with lawyers working with the Linux Foundation.
Criteria used to select files for SPDX license identifier tagging was:
- Files considered eligible had to be source code files.
- Make and config files were included as candidates if they contained >5
lines of source
- File already had some variant of a license header in it (even if <5
lines).
All documentation files were explicitly excluded.
The following heuristics were used to determine which SPDX license
identifiers to apply.
- when both scanners couldn't find any license traces, file was
considered to have no license information in it, and the top level
COPYING file license applied.
For non */uapi/* files that summary was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 11139
and resulted in the first patch in this series.
If that file was a */uapi/* path one, it was "GPL-2.0 WITH
Linux-syscall-note" otherwise it was "GPL-2.0". Results of that was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 WITH Linux-syscall-note 930
and resulted in the second patch in this series.
- if a file had some form of licensing information in it, and was one
of the */uapi/* ones, it was denoted with the Linux-syscall-note if
any GPL family license was found in the file or had no licensing in
it (per prior point). Results summary:
SPDX license identifier # files
---------------------------------------------------|------
GPL-2.0 WITH Linux-syscall-note 270
GPL-2.0+ WITH Linux-syscall-note 169
((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) 21
((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 17
LGPL-2.1+ WITH Linux-syscall-note 15
GPL-1.0+ WITH Linux-syscall-note 14
((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) 5
LGPL-2.0+ WITH Linux-syscall-note 4
LGPL-2.1 WITH Linux-syscall-note 3
((GPL-2.0 WITH Linux-syscall-note) OR MIT) 3
((GPL-2.0 WITH Linux-syscall-note) AND MIT) 1
and that resulted in the third patch in this series.
- when the two scanners agreed on the detected license(s), that became
the concluded license(s).
- when there was disagreement between the two scanners (one detected a
license but the other didn't, or they both detected different
licenses) a manual inspection of the file occurred.
- In most cases a manual inspection of the information in the file
resulted in a clear resolution of the license that should apply (and
which scanner probably needed to revisit its heuristics).
- When it was not immediately clear, the license identifier was
confirmed with lawyers working with the Linux Foundation.
- If there was any question as to the appropriate license identifier,
the file was flagged for further research and to be revisited later
in time.
In total, over 70 hours of logged manual review was done on the
spreadsheet to determine the SPDX license identifiers to apply to the
source files by Kate, Philippe, Thomas and, in some cases, confirmation
by lawyers working with the Linux Foundation.
Kate also obtained a third independent scan of the 4.13 code base from
FOSSology, and compared selected files where the other two scanners
disagreed against that SPDX file, to see if there was new insights. The
Windriver scanner is based on an older version of FOSSology in part, so
they are related.
Thomas did random spot checks in about 500 files from the spreadsheets
for the uapi headers and agreed with SPDX license identifier in the
files he inspected. For the non-uapi files Thomas did random spot checks
in about 15000 files.
In initial set of patches against 4.14-rc6, 3 files were found to have
copy/paste license identifier errors, and have been fixed to reflect the
correct identifier.
Additionally Philippe spent 10 hours this week doing a detailed manual
inspection and review of the 12,461 patched files from the initial patch
version early this week with:
- a full scancode scan run, collecting the matched texts, detected
license ids and scores
- reviewing anything where there was a license detected (about 500+
files) to ensure that the applied SPDX license was correct
- reviewing anything where there was no detection but the patch license
was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
SPDX license was correct
This produced a worksheet with 20 files needing minor correction. This
worksheet was then exported into 3 different .csv files for the
different types of files to be modified.
These .csv files were then reviewed by Greg. Thomas wrote a script to
parse the csv files and add the proper SPDX tag to the file, in the
format that the file expected. This script was further refined by Greg
based on the output to detect more types of files automatically and to
distinguish between header and source .c files (which need different
comment types.) Finally Greg ran the script using the .csv files to
generate the patches.
Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org>
Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-01 21:07:57 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2011-06-18 05:53:19 +07:00
|
|
|
#undef TRACE_SYSTEM
|
|
|
|
#define TRACE_SYSTEM rcu
|
|
|
|
|
|
|
|
#if !defined(_TRACE_RCU_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
|
|
#define _TRACE_RCU_H
|
|
|
|
|
|
|
|
#include <linux/tracepoint.h>
|
|
|
|
|
|
|
|
/*
|
2011-06-19 12:26:31 +07:00
|
|
|
* Tracepoint for start/end markers used for utilization calculations.
|
|
|
|
* By convention, the string is of the following forms:
|
|
|
|
*
|
|
|
|
* "Start <activity>" -- Mark the start of the specified activity,
|
|
|
|
* such as "context switch". Nesting is permitted.
|
|
|
|
* "End <activity>" -- Mark the end of the specified activity.
|
2011-06-22 12:43:26 +07:00
|
|
|
*
|
|
|
|
* An "@" character within "<activity>" is a comment character: Data
|
|
|
|
* reduction scripts will ignore the "@" and the remainder of the line.
|
2011-06-19 12:26:31 +07:00
|
|
|
*/
|
|
|
|
TRACE_EVENT(rcu_utilization,
|
|
|
|
|
2013-07-13 03:50:28 +07:00
|
|
|
TP_PROTO(const char *s),
|
2011-06-19 12:26:31 +07:00
|
|
|
|
|
|
|
TP_ARGS(s),
|
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
2013-07-13 03:50:28 +07:00
|
|
|
__field(const char *, s)
|
2011-06-19 12:26:31 +07:00
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->s = s;
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk("%s", __entry->s)
|
|
|
|
);
|
|
|
|
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
#ifdef CONFIG_RCU_TRACE
|
|
|
|
|
2014-09-23 01:00:48 +07:00
|
|
|
#if defined(CONFIG_TREE_RCU) || defined(CONFIG_PREEMPT_RCU)
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
|
|
|
|
/*
|
2013-08-10 02:19:29 +07:00
|
|
|
* Tracepoint for grace-period events. Takes a string identifying the
|
|
|
|
* RCU flavor, the grace-period number, and a string identifying the
|
|
|
|
* grace-period-related event as follows:
|
|
|
|
*
|
|
|
|
* "AccReadyCB": CPU acclerates new callbacks to RCU_NEXT_READY_TAIL.
|
|
|
|
* "AccWaitCB": CPU accelerates new callbacks to RCU_WAIT_TAIL.
|
2013-08-10 06:02:09 +07:00
|
|
|
* "newreq": Request a new grace period.
|
2013-08-10 02:19:29 +07:00
|
|
|
* "start": Start a grace period.
|
|
|
|
* "cpustart": CPU first notices a grace-period start.
|
|
|
|
* "cpuqs": CPU passes through a quiescent state.
|
|
|
|
* "cpuonl": CPU comes online.
|
|
|
|
* "cpuofl": CPU goes offline.
|
2018-05-02 02:54:11 +07:00
|
|
|
* "cpuofl-bgp": CPU goes offline while blocking a grace period.
|
2013-08-10 02:19:29 +07:00
|
|
|
* "reqwait": GP kthread sleeps waiting for grace-period request.
|
|
|
|
* "reqwaitsig": GP kthread awakened by signal from reqwait state.
|
|
|
|
* "fqswait": GP kthread waiting until time to force quiescent states.
|
|
|
|
* "fqsstart": GP kthread starts forcing quiescent states.
|
|
|
|
* "fqsend": GP kthread done forcing quiescent states.
|
|
|
|
* "fqswaitsig": GP kthread awakened by signal from fqswait state.
|
|
|
|
* "end": End a grace period.
|
|
|
|
* "cpuend": CPU first notices a grace-period end.
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
*/
|
|
|
|
TRACE_EVENT(rcu_grace_period,
|
|
|
|
|
2018-05-02 02:54:11 +07:00
|
|
|
TP_PROTO(const char *rcuname, unsigned long gp_seq, const char *gpevent),
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
|
2018-05-02 02:54:11 +07:00
|
|
|
TP_ARGS(rcuname, gp_seq, gpevent),
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
2013-07-13 03:50:28 +07:00
|
|
|
__field(const char *, rcuname)
|
2018-05-02 02:54:11 +07:00
|
|
|
__field(unsigned long, gp_seq)
|
2013-07-13 03:50:28 +07:00
|
|
|
__field(const char *, gpevent)
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->rcuname = rcuname;
|
2018-05-02 02:54:11 +07:00
|
|
|
__entry->gp_seq = gp_seq;
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__entry->gpevent = gpevent;
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk("%s %lu %s",
|
2018-05-02 02:54:11 +07:00
|
|
|
__entry->rcuname, __entry->gp_seq, __entry->gpevent)
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
);
|
|
|
|
|
2013-02-09 06:55:02 +07:00
|
|
|
/*
|
2018-04-20 06:38:25 +07:00
|
|
|
* Tracepoint for future grace-period events. The caller should pull
|
|
|
|
* the data from the rcu_node structure, other than rcuname, which comes
|
|
|
|
* from the rcu_state structure, and event, which is one of the following:
|
2013-02-09 06:55:02 +07:00
|
|
|
*
|
2018-04-20 06:38:25 +07:00
|
|
|
* "Startleaf": Request a grace period based on leaf-node data.
|
|
|
|
* "Prestarted": Someone beat us to the request
|
2018-05-12 21:42:20 +07:00
|
|
|
* "Startedleaf": Leaf node marked for future GP.
|
|
|
|
* "Startedleafroot": All nodes from leaf to root marked for future GP.
|
2013-02-09 06:55:02 +07:00
|
|
|
* "Startedroot": Requested a nocb grace period based on root-node data.
|
2018-04-20 06:38:25 +07:00
|
|
|
* "NoGPkthread": The RCU grace-period kthread has not yet started.
|
2013-02-09 06:55:02 +07:00
|
|
|
* "StartWait": Start waiting for the requested grace period.
|
|
|
|
* "ResumeWait": Resume waiting after signal.
|
|
|
|
* "EndWait": Complete wait.
|
|
|
|
* "Cleanup": Clean up rcu_node structure after previous GP.
|
2018-04-20 06:38:25 +07:00
|
|
|
* "CleanupMore": Clean up, and another GP is needed.
|
2013-02-09 06:55:02 +07:00
|
|
|
*/
|
2012-12-30 12:51:20 +07:00
|
|
|
TRACE_EVENT(rcu_future_grace_period,
|
2013-02-09 06:55:02 +07:00
|
|
|
|
2018-05-21 11:42:18 +07:00
|
|
|
TP_PROTO(const char *rcuname, unsigned long gp_seq,
|
|
|
|
unsigned long gp_seq_req, u8 level, int grplo, int grphi,
|
|
|
|
const char *gpevent),
|
2013-02-09 06:55:02 +07:00
|
|
|
|
2018-05-21 11:42:18 +07:00
|
|
|
TP_ARGS(rcuname, gp_seq, gp_seq_req, level, grplo, grphi, gpevent),
|
2013-02-09 06:55:02 +07:00
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
2013-07-13 03:50:28 +07:00
|
|
|
__field(const char *, rcuname)
|
2018-05-02 03:08:46 +07:00
|
|
|
__field(unsigned long, gp_seq)
|
2018-05-21 11:42:18 +07:00
|
|
|
__field(unsigned long, gp_seq_req)
|
2013-02-09 06:55:02 +07:00
|
|
|
__field(u8, level)
|
|
|
|
__field(int, grplo)
|
|
|
|
__field(int, grphi)
|
2013-07-13 03:50:28 +07:00
|
|
|
__field(const char *, gpevent)
|
2013-02-09 06:55:02 +07:00
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->rcuname = rcuname;
|
2018-05-02 03:08:46 +07:00
|
|
|
__entry->gp_seq = gp_seq;
|
2018-05-21 11:42:18 +07:00
|
|
|
__entry->gp_seq_req = gp_seq_req;
|
2013-02-09 06:55:02 +07:00
|
|
|
__entry->level = level;
|
|
|
|
__entry->grplo = grplo;
|
|
|
|
__entry->grphi = grphi;
|
|
|
|
__entry->gpevent = gpevent;
|
|
|
|
),
|
|
|
|
|
2018-05-02 03:08:46 +07:00
|
|
|
TP_printk("%s %lu %lu %u %d %d %s",
|
2018-05-21 11:42:18 +07:00
|
|
|
__entry->rcuname, __entry->gp_seq, __entry->gp_seq_req, __entry->level,
|
2018-05-02 03:08:46 +07:00
|
|
|
__entry->grplo, __entry->grphi, __entry->gpevent)
|
2013-02-09 06:55:02 +07:00
|
|
|
);
|
|
|
|
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
/*
|
|
|
|
* Tracepoint for grace-period-initialization events. These are
|
|
|
|
* distinguished by the type of RCU, the new grace-period number, the
|
|
|
|
* rcu_node structure level, the starting and ending CPU covered by the
|
|
|
|
* rcu_node structure, and the mask of CPUs that will be waited for.
|
|
|
|
* All but the type of RCU are extracted from the rcu_node structure.
|
|
|
|
*/
|
|
|
|
TRACE_EVENT(rcu_grace_period_init,
|
|
|
|
|
2018-05-02 03:08:46 +07:00
|
|
|
TP_PROTO(const char *rcuname, unsigned long gp_seq, u8 level,
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
int grplo, int grphi, unsigned long qsmask),
|
|
|
|
|
2018-05-02 03:08:46 +07:00
|
|
|
TP_ARGS(rcuname, gp_seq, level, grplo, grphi, qsmask),
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
2013-07-13 03:50:28 +07:00
|
|
|
__field(const char *, rcuname)
|
2018-05-02 03:08:46 +07:00
|
|
|
__field(unsigned long, gp_seq)
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__field(u8, level)
|
|
|
|
__field(int, grplo)
|
|
|
|
__field(int, grphi)
|
|
|
|
__field(unsigned long, qsmask)
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->rcuname = rcuname;
|
2018-05-02 03:08:46 +07:00
|
|
|
__entry->gp_seq = gp_seq;
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__entry->level = level;
|
|
|
|
__entry->grplo = grplo;
|
|
|
|
__entry->grphi = grphi;
|
|
|
|
__entry->qsmask = qsmask;
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk("%s %lu %u %d %d %lx",
|
2018-05-02 03:08:46 +07:00
|
|
|
__entry->rcuname, __entry->gp_seq, __entry->level,
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__entry->grplo, __entry->grphi, __entry->qsmask)
|
|
|
|
);
|
|
|
|
|
2016-01-29 11:25:09 +07:00
|
|
|
/*
|
|
|
|
* Tracepoint for expedited grace-period events. Takes a string identifying
|
|
|
|
* the RCU flavor, the expedited grace-period sequence number, and a string
|
|
|
|
* identifying the grace-period-related event as follows:
|
|
|
|
*
|
|
|
|
* "snap": Captured snapshot of expedited grace period sequence number.
|
|
|
|
* "start": Started a real expedited grace period.
|
2018-02-01 10:23:24 +07:00
|
|
|
* "reset": Started resetting the tree
|
|
|
|
* "select": Started selecting the CPUs to wait on.
|
2018-02-01 10:40:22 +07:00
|
|
|
* "selectofl": Selected CPU partially offline.
|
2018-02-01 10:23:24 +07:00
|
|
|
* "startwait": Started waiting on selected CPUs.
|
2016-01-29 11:25:09 +07:00
|
|
|
* "end": Ended a real expedited grace period.
|
2016-01-31 08:57:35 +07:00
|
|
|
* "endwake": Woke piggybackers up.
|
2016-01-29 11:25:09 +07:00
|
|
|
* "done": Someone else did the expedited grace period for us.
|
|
|
|
*/
|
|
|
|
TRACE_EVENT(rcu_exp_grace_period,
|
|
|
|
|
|
|
|
TP_PROTO(const char *rcuname, unsigned long gpseq, const char *gpevent),
|
|
|
|
|
|
|
|
TP_ARGS(rcuname, gpseq, gpevent),
|
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(const char *, rcuname)
|
|
|
|
__field(unsigned long, gpseq)
|
|
|
|
__field(const char *, gpevent)
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->rcuname = rcuname;
|
|
|
|
__entry->gpseq = gpseq;
|
|
|
|
__entry->gpevent = gpevent;
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk("%s %lu %s",
|
|
|
|
__entry->rcuname, __entry->gpseq, __entry->gpevent)
|
|
|
|
);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Tracepoint for expedited grace-period funnel-locking events. Takes a
|
|
|
|
* string identifying the RCU flavor, an integer identifying the rcu_node
|
|
|
|
* combining-tree level, another pair of integers identifying the lowest-
|
|
|
|
* and highest-numbered CPU associated with the current rcu_node structure,
|
|
|
|
* and a string. identifying the grace-period-related event as follows:
|
|
|
|
*
|
2016-01-31 08:57:35 +07:00
|
|
|
* "nxtlvl": Advance to next level of rcu_node funnel
|
|
|
|
* "wait": Wait for someone else to do expedited GP
|
2016-01-29 11:25:09 +07:00
|
|
|
*/
|
|
|
|
TRACE_EVENT(rcu_exp_funnel_lock,
|
|
|
|
|
|
|
|
TP_PROTO(const char *rcuname, u8 level, int grplo, int grphi,
|
|
|
|
const char *gpevent),
|
|
|
|
|
|
|
|
TP_ARGS(rcuname, level, grplo, grphi, gpevent),
|
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(const char *, rcuname)
|
|
|
|
__field(u8, level)
|
|
|
|
__field(int, grplo)
|
|
|
|
__field(int, grphi)
|
|
|
|
__field(const char *, gpevent)
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->rcuname = rcuname;
|
|
|
|
__entry->level = level;
|
|
|
|
__entry->grplo = grplo;
|
|
|
|
__entry->grphi = grphi;
|
|
|
|
__entry->gpevent = gpevent;
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk("%s %d %d %d %s",
|
|
|
|
__entry->rcuname, __entry->level, __entry->grplo,
|
|
|
|
__entry->grphi, __entry->gpevent)
|
|
|
|
);
|
|
|
|
|
2017-10-13 05:16:41 +07:00
|
|
|
#ifdef CONFIG_RCU_NOCB_CPU
|
2013-08-15 06:24:26 +07:00
|
|
|
/*
|
|
|
|
* Tracepoint for RCU no-CBs CPU callback handoffs. This event is intended
|
|
|
|
* to assist debugging of these handoffs.
|
|
|
|
*
|
|
|
|
* The first argument is the name of the RCU flavor, and the second is
|
|
|
|
* the number of the offloaded CPU are extracted. The third and final
|
|
|
|
* argument is a string as follows:
|
|
|
|
*
|
|
|
|
* "WakeEmpty": Wake rcuo kthread, first CB to empty list.
|
2014-07-30 04:50:47 +07:00
|
|
|
* "WakeEmptyIsDeferred": Wake rcuo kthread later, first CB to empty list.
|
2013-08-15 06:24:26 +07:00
|
|
|
* "WakeOvf": Wake rcuo kthread, CB list is huge.
|
2014-07-30 04:50:47 +07:00
|
|
|
* "WakeOvfIsDeferred": Wake rcuo kthread later, CB list is huge.
|
2013-08-15 06:24:26 +07:00
|
|
|
* "WakeNot": Don't wake rcuo kthread.
|
|
|
|
* "WakeNotPoll": Don't wake rcuo kthread because it is polling.
|
2014-07-30 04:50:47 +07:00
|
|
|
* "DeferredWake": Carried out the "IsDeferred" wakeup.
|
2013-08-16 03:23:23 +07:00
|
|
|
* "Poll": Start of new polling cycle for rcu_nocb_poll.
|
|
|
|
* "Sleep": Sleep waiting for CBs for !rcu_nocb_poll.
|
2013-08-15 06:24:26 +07:00
|
|
|
* "WokeEmpty": rcuo kthread woke to find empty list.
|
|
|
|
* "WokeNonEmpty": rcuo kthread woke to find non-empty list.
|
2013-08-16 03:23:23 +07:00
|
|
|
* "WaitQueue": Enqueue partially done, timed wait for it to complete.
|
|
|
|
* "WokeQueue": Partial enqueue now complete.
|
2013-08-15 06:24:26 +07:00
|
|
|
*/
|
|
|
|
TRACE_EVENT(rcu_nocb_wake,
|
|
|
|
|
|
|
|
TP_PROTO(const char *rcuname, int cpu, const char *reason),
|
|
|
|
|
|
|
|
TP_ARGS(rcuname, cpu, reason),
|
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(const char *, rcuname)
|
|
|
|
__field(int, cpu)
|
|
|
|
__field(const char *, reason)
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->rcuname = rcuname;
|
|
|
|
__entry->cpu = cpu;
|
|
|
|
__entry->reason = reason;
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk("%s %d %s", __entry->rcuname, __entry->cpu, __entry->reason)
|
|
|
|
);
|
2017-10-13 05:16:41 +07:00
|
|
|
#endif
|
2013-08-15 06:24:26 +07:00
|
|
|
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
/*
|
|
|
|
* Tracepoint for tasks blocking within preemptible-RCU read-side
|
|
|
|
* critical sections. Track the type of RCU (which one day might
|
|
|
|
* include SRCU), the grace-period number that the task is blocking
|
|
|
|
* (the current or the next), and the task's PID.
|
|
|
|
*/
|
|
|
|
TRACE_EVENT(rcu_preempt_task,
|
|
|
|
|
2018-05-02 03:35:20 +07:00
|
|
|
TP_PROTO(const char *rcuname, int pid, unsigned long gp_seq),
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
|
2018-05-02 03:35:20 +07:00
|
|
|
TP_ARGS(rcuname, pid, gp_seq),
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
2013-07-13 03:50:28 +07:00
|
|
|
__field(const char *, rcuname)
|
2018-05-02 03:35:20 +07:00
|
|
|
__field(unsigned long, gp_seq)
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__field(int, pid)
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->rcuname = rcuname;
|
2018-05-02 03:35:20 +07:00
|
|
|
__entry->gp_seq = gp_seq;
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__entry->pid = pid;
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk("%s %lu %d",
|
2018-05-02 03:35:20 +07:00
|
|
|
__entry->rcuname, __entry->gp_seq, __entry->pid)
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Tracepoint for tasks that blocked within a given preemptible-RCU
|
|
|
|
* read-side critical section exiting that critical section. Track the
|
|
|
|
* type of RCU (which one day might include SRCU) and the task's PID.
|
|
|
|
*/
|
|
|
|
TRACE_EVENT(rcu_unlock_preempted_task,
|
|
|
|
|
2018-05-02 03:35:20 +07:00
|
|
|
TP_PROTO(const char *rcuname, unsigned long gp_seq, int pid),
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
|
2018-05-02 03:35:20 +07:00
|
|
|
TP_ARGS(rcuname, gp_seq, pid),
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
2013-07-13 03:50:28 +07:00
|
|
|
__field(const char *, rcuname)
|
2018-05-02 03:35:20 +07:00
|
|
|
__field(unsigned long, gp_seq)
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__field(int, pid)
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->rcuname = rcuname;
|
2018-05-02 03:35:20 +07:00
|
|
|
__entry->gp_seq = gp_seq;
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__entry->pid = pid;
|
|
|
|
),
|
|
|
|
|
2018-05-02 03:35:20 +07:00
|
|
|
TP_printk("%s %lu %d", __entry->rcuname, __entry->gp_seq, __entry->pid)
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Tracepoint for quiescent-state-reporting events. These are
|
|
|
|
* distinguished by the type of RCU, the grace-period number, the
|
|
|
|
* mask of quiescent lower-level entities, the rcu_node structure level,
|
|
|
|
* the starting and ending CPU covered by the rcu_node structure, and
|
|
|
|
* whether there are any blocked tasks blocking the current grace period.
|
|
|
|
* All but the type of RCU are extracted from the rcu_node structure.
|
|
|
|
*/
|
|
|
|
TRACE_EVENT(rcu_quiescent_state_report,
|
|
|
|
|
2018-05-02 03:35:20 +07:00
|
|
|
TP_PROTO(const char *rcuname, unsigned long gp_seq,
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
unsigned long mask, unsigned long qsmask,
|
|
|
|
u8 level, int grplo, int grphi, int gp_tasks),
|
|
|
|
|
2018-05-02 03:35:20 +07:00
|
|
|
TP_ARGS(rcuname, gp_seq, mask, qsmask, level, grplo, grphi, gp_tasks),
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
2013-07-13 03:50:28 +07:00
|
|
|
__field(const char *, rcuname)
|
2018-05-02 03:35:20 +07:00
|
|
|
__field(unsigned long, gp_seq)
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__field(unsigned long, mask)
|
|
|
|
__field(unsigned long, qsmask)
|
|
|
|
__field(u8, level)
|
|
|
|
__field(int, grplo)
|
|
|
|
__field(int, grphi)
|
|
|
|
__field(u8, gp_tasks)
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->rcuname = rcuname;
|
2018-05-02 03:35:20 +07:00
|
|
|
__entry->gp_seq = gp_seq;
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__entry->mask = mask;
|
|
|
|
__entry->qsmask = qsmask;
|
|
|
|
__entry->level = level;
|
|
|
|
__entry->grplo = grplo;
|
|
|
|
__entry->grphi = grphi;
|
|
|
|
__entry->gp_tasks = gp_tasks;
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk("%s %lu %lx>%lx %u %d %d %u",
|
2018-05-02 03:35:20 +07:00
|
|
|
__entry->rcuname, __entry->gp_seq,
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__entry->mask, __entry->qsmask, __entry->level,
|
|
|
|
__entry->grplo, __entry->grphi, __entry->gp_tasks)
|
|
|
|
);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Tracepoint for quiescent states detected by force_quiescent_state().
|
2018-05-08 02:07:48 +07:00
|
|
|
* These trace events include the type of RCU, the grace-period number
|
|
|
|
* that was blocked by the CPU, the CPU itself, and the type of quiescent
|
|
|
|
* state, which can be "dti" for dyntick-idle mode, "kick" when kicking
|
|
|
|
* a CPU that has been in dyntick-idle mode for too long, or "rqc" if the
|
|
|
|
* CPU got a quiescent state via its rcu_qs_ctr.
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
*/
|
|
|
|
TRACE_EVENT(rcu_fqs,
|
|
|
|
|
2018-05-02 03:35:20 +07:00
|
|
|
TP_PROTO(const char *rcuname, unsigned long gp_seq, int cpu, const char *qsevent),
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
|
2018-05-02 03:35:20 +07:00
|
|
|
TP_ARGS(rcuname, gp_seq, cpu, qsevent),
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
2013-07-13 03:50:28 +07:00
|
|
|
__field(const char *, rcuname)
|
2018-05-02 03:35:20 +07:00
|
|
|
__field(unsigned long, gp_seq)
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__field(int, cpu)
|
2013-07-13 03:50:28 +07:00
|
|
|
__field(const char *, qsevent)
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->rcuname = rcuname;
|
2018-05-02 03:35:20 +07:00
|
|
|
__entry->gp_seq = gp_seq;
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__entry->cpu = cpu;
|
|
|
|
__entry->qsevent = qsevent;
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk("%s %lu %d %s",
|
2018-05-02 03:35:20 +07:00
|
|
|
__entry->rcuname, __entry->gp_seq,
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__entry->cpu, __entry->qsevent)
|
|
|
|
);
|
|
|
|
|
2014-09-23 01:00:48 +07:00
|
|
|
#endif /* #if defined(CONFIG_TREE_RCU) || defined(CONFIG_PREEMPT_RCU) */
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Tracepoint for dyntick-idle entry/exit events. These take a string
|
2017-10-05 02:29:01 +07:00
|
|
|
* as argument: "Start" for entering dyntick-idle mode, "Startirq" for
|
|
|
|
* entering it from irq/NMI, "End" for leaving it, "Endirq" for leaving it
|
|
|
|
* to irq/NMI, "--=" for events moving towards idle, and "++=" for events
|
2017-10-06 09:55:31 +07:00
|
|
|
* moving away from idle.
|
2011-11-23 03:13:03 +07:00
|
|
|
*
|
|
|
|
* These events also take a pair of numbers, which indicate the nesting
|
2017-10-06 09:55:31 +07:00
|
|
|
* depth before and after the event of interest, and a third number that is
|
|
|
|
* the ->dynticks counter. Note that task-related and interrupt-related
|
|
|
|
* events use two separate counters, and that the "++=" and "--=" events
|
|
|
|
* for irq/NMI will change the counter by two, otherwise by one.
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
*/
|
|
|
|
TRACE_EVENT(rcu_dyntick,
|
|
|
|
|
2017-10-05 06:24:29 +07:00
|
|
|
TP_PROTO(const char *polarity, long oldnesting, long newnesting, atomic_t dynticks),
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
|
2017-10-05 06:24:29 +07:00
|
|
|
TP_ARGS(polarity, oldnesting, newnesting, dynticks),
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
2013-07-13 03:50:28 +07:00
|
|
|
__field(const char *, polarity)
|
2017-10-05 05:55:16 +07:00
|
|
|
__field(long, oldnesting)
|
|
|
|
__field(long, newnesting)
|
2017-10-05 06:24:29 +07:00
|
|
|
__field(int, dynticks)
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->polarity = polarity;
|
2011-11-01 05:01:54 +07:00
|
|
|
__entry->oldnesting = oldnesting;
|
|
|
|
__entry->newnesting = newnesting;
|
2017-10-05 06:24:29 +07:00
|
|
|
__entry->dynticks = atomic_read(&dynticks);
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
),
|
|
|
|
|
2017-10-05 06:24:29 +07:00
|
|
|
TP_printk("%s %lx %lx %#3x", __entry->polarity,
|
|
|
|
__entry->oldnesting, __entry->newnesting,
|
|
|
|
__entry->dynticks & 0xfff)
|
2011-11-23 05:58:03 +07:00
|
|
|
);
|
|
|
|
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
/*
|
|
|
|
* Tracepoint for the registration of a single RCU callback function.
|
|
|
|
* The first argument is the type of RCU, the second argument is
|
2012-01-07 05:11:30 +07:00
|
|
|
* a pointer to the RCU callback itself, the third element is the
|
|
|
|
* number of lazy callbacks queued, and the fourth element is the
|
|
|
|
* total number of callbacks queued.
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
*/
|
|
|
|
TRACE_EVENT(rcu_callback,
|
|
|
|
|
2013-07-13 03:50:28 +07:00
|
|
|
TP_PROTO(const char *rcuname, struct rcu_head *rhp, long qlen_lazy,
|
2012-01-07 05:11:30 +07:00
|
|
|
long qlen),
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
|
2012-01-07 05:11:30 +07:00
|
|
|
TP_ARGS(rcuname, rhp, qlen_lazy, qlen),
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
2013-07-13 03:50:28 +07:00
|
|
|
__field(const char *, rcuname)
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__field(void *, rhp)
|
|
|
|
__field(void *, func)
|
2012-01-07 05:11:30 +07:00
|
|
|
__field(long, qlen_lazy)
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__field(long, qlen)
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->rcuname = rcuname;
|
|
|
|
__entry->rhp = rhp;
|
|
|
|
__entry->func = rhp->func;
|
2012-01-07 05:11:30 +07:00
|
|
|
__entry->qlen_lazy = qlen_lazy;
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__entry->qlen = qlen;
|
|
|
|
),
|
|
|
|
|
2012-01-07 05:11:30 +07:00
|
|
|
TP_printk("%s rhp=%p func=%pf %ld/%ld",
|
|
|
|
__entry->rcuname, __entry->rhp, __entry->func,
|
|
|
|
__entry->qlen_lazy, __entry->qlen)
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Tracepoint for the registration of a single RCU callback of the special
|
|
|
|
* kfree() form. The first argument is the RCU type, the second argument
|
|
|
|
* is a pointer to the RCU callback, the third argument is the offset
|
|
|
|
* of the callback within the enclosing RCU-protected data structure,
|
2012-01-07 05:11:30 +07:00
|
|
|
* the fourth argument is the number of lazy callbacks queued, and the
|
|
|
|
* fifth argument is the total number of callbacks queued.
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
*/
|
|
|
|
TRACE_EVENT(rcu_kfree_callback,
|
|
|
|
|
2013-07-13 03:50:28 +07:00
|
|
|
TP_PROTO(const char *rcuname, struct rcu_head *rhp, unsigned long offset,
|
2012-01-07 05:11:30 +07:00
|
|
|
long qlen_lazy, long qlen),
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
|
2012-01-07 05:11:30 +07:00
|
|
|
TP_ARGS(rcuname, rhp, offset, qlen_lazy, qlen),
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
2013-07-13 03:50:28 +07:00
|
|
|
__field(const char *, rcuname)
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__field(void *, rhp)
|
|
|
|
__field(unsigned long, offset)
|
2012-01-07 05:11:30 +07:00
|
|
|
__field(long, qlen_lazy)
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__field(long, qlen)
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->rcuname = rcuname;
|
|
|
|
__entry->rhp = rhp;
|
|
|
|
__entry->offset = offset;
|
2012-01-07 05:11:30 +07:00
|
|
|
__entry->qlen_lazy = qlen_lazy;
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__entry->qlen = qlen;
|
|
|
|
),
|
|
|
|
|
2012-01-07 05:11:30 +07:00
|
|
|
TP_printk("%s rhp=%p func=%ld %ld/%ld",
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__entry->rcuname, __entry->rhp, __entry->offset,
|
2012-01-07 05:11:30 +07:00
|
|
|
__entry->qlen_lazy, __entry->qlen)
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
);
|
|
|
|
|
2011-06-19 12:26:31 +07:00
|
|
|
/*
|
|
|
|
* Tracepoint for marking the beginning rcu_do_batch, performed to start
|
2011-06-21 15:14:54 +07:00
|
|
|
* RCU callback invocation. The first argument is the RCU flavor,
|
2012-01-07 05:11:30 +07:00
|
|
|
* the second is the number of lazy callbacks queued, the third is
|
|
|
|
* the total number of callbacks queued, and the fourth argument is
|
|
|
|
* the current RCU-callback batch limit.
|
2011-06-18 05:53:19 +07:00
|
|
|
*/
|
|
|
|
TRACE_EVENT(rcu_batch_start,
|
|
|
|
|
2013-07-13 03:50:28 +07:00
|
|
|
TP_PROTO(const char *rcuname, long qlen_lazy, long qlen, long blimit),
|
2011-06-18 05:53:19 +07:00
|
|
|
|
2012-01-07 05:11:30 +07:00
|
|
|
TP_ARGS(rcuname, qlen_lazy, qlen, blimit),
|
2011-06-18 05:53:19 +07:00
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
2013-07-13 03:50:28 +07:00
|
|
|
__field(const char *, rcuname)
|
2012-01-07 05:11:30 +07:00
|
|
|
__field(long, qlen_lazy)
|
2011-06-19 12:26:31 +07:00
|
|
|
__field(long, qlen)
|
2012-11-15 05:37:29 +07:00
|
|
|
__field(long, blimit)
|
2011-06-18 05:53:19 +07:00
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
2011-06-21 15:14:54 +07:00
|
|
|
__entry->rcuname = rcuname;
|
2012-01-07 05:11:30 +07:00
|
|
|
__entry->qlen_lazy = qlen_lazy;
|
2011-06-19 12:26:31 +07:00
|
|
|
__entry->qlen = qlen;
|
|
|
|
__entry->blimit = blimit;
|
2011-06-18 05:53:19 +07:00
|
|
|
),
|
|
|
|
|
2012-11-15 05:37:29 +07:00
|
|
|
TP_printk("%s CBs=%ld/%ld bl=%ld",
|
2012-01-07 05:11:30 +07:00
|
|
|
__entry->rcuname, __entry->qlen_lazy, __entry->qlen,
|
|
|
|
__entry->blimit)
|
2011-06-18 05:53:19 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
/*
|
2011-06-19 12:26:31 +07:00
|
|
|
* Tracepoint for the invocation of a single RCU callback function.
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
* The first argument is the type of RCU, and the second argument is
|
|
|
|
* a pointer to the RCU callback itself.
|
2011-06-18 05:53:19 +07:00
|
|
|
*/
|
|
|
|
TRACE_EVENT(rcu_invoke_callback,
|
|
|
|
|
2013-07-13 03:50:28 +07:00
|
|
|
TP_PROTO(const char *rcuname, struct rcu_head *rhp),
|
2011-06-18 05:53:19 +07:00
|
|
|
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
TP_ARGS(rcuname, rhp),
|
2011-06-18 05:53:19 +07:00
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
2013-07-13 03:50:28 +07:00
|
|
|
__field(const char *, rcuname)
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__field(void *, rhp)
|
|
|
|
__field(void *, func)
|
2011-06-18 05:53:19 +07:00
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__entry->rcuname = rcuname;
|
2011-06-19 12:26:31 +07:00
|
|
|
__entry->rhp = rhp;
|
|
|
|
__entry->func = rhp->func;
|
2011-06-18 05:53:19 +07:00
|
|
|
),
|
|
|
|
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
TP_printk("%s rhp=%p func=%pf",
|
|
|
|
__entry->rcuname, __entry->rhp, __entry->func)
|
2011-06-18 05:53:19 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
/*
|
2011-06-19 12:26:31 +07:00
|
|
|
* Tracepoint for the invocation of a single RCU callback of the special
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
* kfree() form. The first argument is the RCU flavor, the second
|
|
|
|
* argument is a pointer to the RCU callback, and the third argument
|
|
|
|
* is the offset of the callback within the enclosing RCU-protected
|
|
|
|
* data structure.
|
2011-06-18 05:53:19 +07:00
|
|
|
*/
|
|
|
|
TRACE_EVENT(rcu_invoke_kfree_callback,
|
|
|
|
|
2013-07-13 03:50:28 +07:00
|
|
|
TP_PROTO(const char *rcuname, struct rcu_head *rhp, unsigned long offset),
|
2011-06-18 05:53:19 +07:00
|
|
|
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
TP_ARGS(rcuname, rhp, offset),
|
2011-06-18 05:53:19 +07:00
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
2013-07-13 03:50:28 +07:00
|
|
|
__field(const char *, rcuname)
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__field(void *, rhp)
|
2011-06-19 12:26:31 +07:00
|
|
|
__field(unsigned long, offset)
|
2011-06-18 05:53:19 +07:00
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
__entry->rcuname = rcuname;
|
2011-06-19 12:26:31 +07:00
|
|
|
__entry->rhp = rhp;
|
2011-06-18 05:53:19 +07:00
|
|
|
__entry->offset = offset;
|
|
|
|
),
|
|
|
|
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
TP_printk("%s rhp=%p func=%ld",
|
|
|
|
__entry->rcuname, __entry->rhp, __entry->offset)
|
2011-06-18 05:53:19 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
/*
|
2011-06-19 12:26:31 +07:00
|
|
|
* Tracepoint for exiting rcu_do_batch after RCU callbacks have been
|
2011-12-08 07:32:40 +07:00
|
|
|
* invoked. The first argument is the name of the RCU flavor,
|
|
|
|
* the second argument is number of callbacks actually invoked,
|
|
|
|
* the third argument (cb) is whether or not any of the callbacks that
|
|
|
|
* were ready to invoke at the beginning of this batch are still
|
|
|
|
* queued, the fourth argument (nr) is the return value of need_resched(),
|
|
|
|
* the fifth argument (iit) is 1 if the current task is the idle task,
|
|
|
|
* and the sixth argument (risk) is the return value from
|
|
|
|
* rcu_is_callbacks_kthread().
|
2011-06-18 05:53:19 +07:00
|
|
|
*/
|
|
|
|
TRACE_EVENT(rcu_batch_end,
|
|
|
|
|
2013-07-13 03:50:28 +07:00
|
|
|
TP_PROTO(const char *rcuname, int callbacks_invoked,
|
2013-08-19 01:59:25 +07:00
|
|
|
char cb, char nr, char iit, char risk),
|
2011-06-18 05:53:19 +07:00
|
|
|
|
2011-12-08 07:32:40 +07:00
|
|
|
TP_ARGS(rcuname, callbacks_invoked, cb, nr, iit, risk),
|
2011-06-18 05:53:19 +07:00
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
2013-07-13 03:50:28 +07:00
|
|
|
__field(const char *, rcuname)
|
2011-06-19 12:26:31 +07:00
|
|
|
__field(int, callbacks_invoked)
|
2013-08-19 01:59:25 +07:00
|
|
|
__field(char, cb)
|
|
|
|
__field(char, nr)
|
|
|
|
__field(char, iit)
|
|
|
|
__field(char, risk)
|
2011-06-18 05:53:19 +07:00
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
2011-06-21 15:14:54 +07:00
|
|
|
__entry->rcuname = rcuname;
|
2011-06-19 12:26:31 +07:00
|
|
|
__entry->callbacks_invoked = callbacks_invoked;
|
2011-12-08 07:32:40 +07:00
|
|
|
__entry->cb = cb;
|
|
|
|
__entry->nr = nr;
|
|
|
|
__entry->iit = iit;
|
|
|
|
__entry->risk = risk;
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk("%s CBs-invoked=%d idle=%c%c%c%c",
|
|
|
|
__entry->rcuname, __entry->callbacks_invoked,
|
|
|
|
__entry->cb ? 'C' : '.',
|
|
|
|
__entry->nr ? 'S' : '.',
|
|
|
|
__entry->iit ? 'I' : '.',
|
|
|
|
__entry->risk ? 'R' : '.')
|
2011-06-18 05:53:19 +07:00
|
|
|
);
|
|
|
|
|
2011-10-02 21:44:32 +07:00
|
|
|
/*
|
|
|
|
* Tracepoint for rcutorture readers. The first argument is the name
|
|
|
|
* of the RCU flavor from rcutorture's viewpoint and the second argument
|
2016-10-11 08:26:04 +07:00
|
|
|
* is the callback address. The third argument is the start time in
|
|
|
|
* seconds, and the last two arguments are the grace period numbers
|
|
|
|
* at the beginning and end of the read, respectively. Note that the
|
|
|
|
* callback address can be NULL.
|
2011-10-02 21:44:32 +07:00
|
|
|
*/
|
2017-06-07 06:39:00 +07:00
|
|
|
#define RCUTORTURENAME_LEN 8
|
2011-10-02 21:44:32 +07:00
|
|
|
TRACE_EVENT(rcu_torture_read,
|
|
|
|
|
2013-07-13 03:50:28 +07:00
|
|
|
TP_PROTO(const char *rcutorturename, struct rcu_head *rhp,
|
2012-11-15 07:26:40 +07:00
|
|
|
unsigned long secs, unsigned long c_old, unsigned long c),
|
2011-10-02 21:44:32 +07:00
|
|
|
|
2012-11-15 07:26:40 +07:00
|
|
|
TP_ARGS(rcutorturename, rhp, secs, c_old, c),
|
2011-10-02 21:44:32 +07:00
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
2017-06-07 06:39:00 +07:00
|
|
|
__field(char, rcutorturename[RCUTORTURENAME_LEN])
|
2011-10-02 21:44:32 +07:00
|
|
|
__field(struct rcu_head *, rhp)
|
2012-11-15 07:26:40 +07:00
|
|
|
__field(unsigned long, secs)
|
|
|
|
__field(unsigned long, c_old)
|
|
|
|
__field(unsigned long, c)
|
2011-10-02 21:44:32 +07:00
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
2017-06-07 06:39:00 +07:00
|
|
|
strncpy(__entry->rcutorturename, rcutorturename,
|
|
|
|
RCUTORTURENAME_LEN);
|
|
|
|
__entry->rcutorturename[RCUTORTURENAME_LEN - 1] = 0;
|
2011-10-02 21:44:32 +07:00
|
|
|
__entry->rhp = rhp;
|
2012-11-15 07:26:40 +07:00
|
|
|
__entry->secs = secs;
|
|
|
|
__entry->c_old = c_old;
|
|
|
|
__entry->c = c;
|
2011-10-02 21:44:32 +07:00
|
|
|
),
|
|
|
|
|
2012-11-15 07:26:40 +07:00
|
|
|
TP_printk("%s torture read %p %luus c: %lu %lu",
|
|
|
|
__entry->rcutorturename, __entry->rhp,
|
|
|
|
__entry->secs, __entry->c_old, __entry->c)
|
2011-10-02 21:44:32 +07:00
|
|
|
);
|
|
|
|
|
2012-05-24 08:47:05 +07:00
|
|
|
/*
|
|
|
|
* Tracepoint for _rcu_barrier() execution. The string "s" describes
|
|
|
|
* the _rcu_barrier phase:
|
rcu: Make rcu_barrier() understand about missing rcuo kthreads
Commit 35ce7f29a44a (rcu: Create rcuo kthreads only for onlined CPUs)
avoids creating rcuo kthreads for CPUs that never come online. This
fixes a bug in many instances of firmware: Instead of lying about their
age, these systems instead lie about the number of CPUs that they have.
Before commit 35ce7f29a44a, this could result in huge numbers of useless
rcuo kthreads being created.
It appears that experience indicates that I should have told the
people suffering from this problem to fix their broken firmware, but
I instead produced what turned out to be a partial fix. The missing
piece supplied by this commit makes sure that rcu_barrier() knows not to
post callbacks for no-CBs CPUs that have not yet come online, because
otherwise rcu_barrier() will hang on systems having firmware that lies
about the number of CPUs.
It is tempting to simply have rcu_barrier() refuse to post a callback on
any no-CBs CPU that does not have an rcuo kthread. This unfortunately
does not work because rcu_barrier() is required to wait for all pending
callbacks. It is therefore required to wait even for those callbacks
that cannot possibly be invoked. Even if doing so hangs the system.
Given that posting a callback to a no-CBs CPU that does not yet have an
rcuo kthread can hang rcu_barrier(), It is tempting to report an error
in this case. Unfortunately, this will result in false positives at
boot time, when it is perfectly legal to post callbacks to the boot CPU
before the scheduler has started, in other words, before it is legal
to invoke rcu_barrier().
So this commit instead has rcu_barrier() avoid posting callbacks to
CPUs having neither rcuo kthread nor pending callbacks, and has it
complain bitterly if it finds CPUs having no rcuo kthread but some
pending callbacks. And when rcu_barrier() does find CPUs having no rcuo
kthread but pending callbacks, as noted earlier, it has no choice but
to hang indefinitely.
Reported-by: Yanko Kaneti <yaneti@declera.com>
Reported-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Reported-by: Meelis Roos <mroos@linux.ee>
Reported-by: Eric B Munson <emunson@akamai.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: Eric B Munson <emunson@akamai.com>
Tested-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Tested-by: Yanko Kaneti <yaneti@declera.com>
Tested-by: Kevin Fenzi <kevin@scrye.com>
Tested-by: Meelis Roos <mroos@linux.ee>
2014-10-27 23:15:54 +07:00
|
|
|
* "Begin": _rcu_barrier() started.
|
|
|
|
* "EarlyExit": _rcu_barrier() piggybacked, thus early exit.
|
|
|
|
* "Inc1": _rcu_barrier() piggyback check counter incremented.
|
|
|
|
* "OfflineNoCB": _rcu_barrier() found callback on never-online CPU
|
|
|
|
* "OnlineNoCB": _rcu_barrier() found online no-CBs CPU.
|
|
|
|
* "OnlineQ": _rcu_barrier() found online CPU with callbacks.
|
|
|
|
* "OnlineNQ": _rcu_barrier() found online CPU, no callbacks.
|
2012-05-24 08:47:05 +07:00
|
|
|
* "IRQ": An rcu_barrier_callback() callback posted on remote CPU.
|
2017-04-11 05:40:35 +07:00
|
|
|
* "IRQNQ": An rcu_barrier_callback() callback found no callbacks.
|
2012-05-24 08:47:05 +07:00
|
|
|
* "CB": An rcu_barrier_callback() invoked a callback, not the last.
|
|
|
|
* "LastCB": An rcu_barrier_callback() invoked the last callback.
|
rcu: Make rcu_barrier() understand about missing rcuo kthreads
Commit 35ce7f29a44a (rcu: Create rcuo kthreads only for onlined CPUs)
avoids creating rcuo kthreads for CPUs that never come online. This
fixes a bug in many instances of firmware: Instead of lying about their
age, these systems instead lie about the number of CPUs that they have.
Before commit 35ce7f29a44a, this could result in huge numbers of useless
rcuo kthreads being created.
It appears that experience indicates that I should have told the
people suffering from this problem to fix their broken firmware, but
I instead produced what turned out to be a partial fix. The missing
piece supplied by this commit makes sure that rcu_barrier() knows not to
post callbacks for no-CBs CPUs that have not yet come online, because
otherwise rcu_barrier() will hang on systems having firmware that lies
about the number of CPUs.
It is tempting to simply have rcu_barrier() refuse to post a callback on
any no-CBs CPU that does not have an rcuo kthread. This unfortunately
does not work because rcu_barrier() is required to wait for all pending
callbacks. It is therefore required to wait even for those callbacks
that cannot possibly be invoked. Even if doing so hangs the system.
Given that posting a callback to a no-CBs CPU that does not yet have an
rcuo kthread can hang rcu_barrier(), It is tempting to report an error
in this case. Unfortunately, this will result in false positives at
boot time, when it is perfectly legal to post callbacks to the boot CPU
before the scheduler has started, in other words, before it is legal
to invoke rcu_barrier().
So this commit instead has rcu_barrier() avoid posting callbacks to
CPUs having neither rcuo kthread nor pending callbacks, and has it
complain bitterly if it finds CPUs having no rcuo kthread but some
pending callbacks. And when rcu_barrier() does find CPUs having no rcuo
kthread but pending callbacks, as noted earlier, it has no choice but
to hang indefinitely.
Reported-by: Yanko Kaneti <yaneti@declera.com>
Reported-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Reported-by: Meelis Roos <mroos@linux.ee>
Reported-by: Eric B Munson <emunson@akamai.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: Eric B Munson <emunson@akamai.com>
Tested-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Tested-by: Yanko Kaneti <yaneti@declera.com>
Tested-by: Kevin Fenzi <kevin@scrye.com>
Tested-by: Meelis Roos <mroos@linux.ee>
2014-10-27 23:15:54 +07:00
|
|
|
* "Inc2": _rcu_barrier() piggyback check counter incremented.
|
2012-05-24 08:47:05 +07:00
|
|
|
* The "cpu" argument is the CPU or -1 if meaningless, the "cnt" argument
|
|
|
|
* is the count of remaining callbacks, and "done" is the piggybacking count.
|
|
|
|
*/
|
|
|
|
TRACE_EVENT(rcu_barrier,
|
|
|
|
|
2013-07-13 03:50:28 +07:00
|
|
|
TP_PROTO(const char *rcuname, const char *s, int cpu, int cnt, unsigned long done),
|
2012-05-24 08:47:05 +07:00
|
|
|
|
|
|
|
TP_ARGS(rcuname, s, cpu, cnt, done),
|
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
2013-07-13 03:50:28 +07:00
|
|
|
__field(const char *, rcuname)
|
|
|
|
__field(const char *, s)
|
2012-05-24 08:47:05 +07:00
|
|
|
__field(int, cpu)
|
|
|
|
__field(int, cnt)
|
|
|
|
__field(unsigned long, done)
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->rcuname = rcuname;
|
|
|
|
__entry->s = s;
|
|
|
|
__entry->cpu = cpu;
|
|
|
|
__entry->cnt = cnt;
|
|
|
|
__entry->done = done;
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk("%s %s cpu %d remaining %d # %lu",
|
|
|
|
__entry->rcuname, __entry->s, __entry->cpu, __entry->cnt,
|
|
|
|
__entry->done)
|
|
|
|
);
|
|
|
|
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
#else /* #ifdef CONFIG_RCU_TRACE */
|
|
|
|
|
2018-05-02 02:54:11 +07:00
|
|
|
#define trace_rcu_grace_period(rcuname, gp_seq, gpevent) do { } while (0)
|
2018-05-21 11:42:18 +07:00
|
|
|
#define trace_rcu_future_grace_period(rcuname, gp_seq, gp_seq_req, \
|
2012-12-30 12:51:20 +07:00
|
|
|
level, grplo, grphi, event) \
|
|
|
|
do { } while (0)
|
2018-05-02 03:08:46 +07:00
|
|
|
#define trace_rcu_grace_period_init(rcuname, gp_seq, level, grplo, grphi, \
|
2016-01-29 11:25:09 +07:00
|
|
|
qsmask) do { } while (0)
|
|
|
|
#define trace_rcu_exp_grace_period(rcuname, gqseq, gpevent) \
|
|
|
|
do { } while (0)
|
|
|
|
#define trace_rcu_exp_funnel_lock(rcuname, level, grplo, grphi, gpevent) \
|
|
|
|
do { } while (0)
|
2013-08-15 06:24:26 +07:00
|
|
|
#define trace_rcu_nocb_wake(rcuname, cpu, reason) do { } while (0)
|
2018-05-02 03:35:20 +07:00
|
|
|
#define trace_rcu_preempt_task(rcuname, pid, gp_seq) do { } while (0)
|
2018-05-02 03:35:20 +07:00
|
|
|
#define trace_rcu_unlock_preempted_task(rcuname, gp_seq, pid) do { } while (0)
|
2018-05-02 03:35:20 +07:00
|
|
|
#define trace_rcu_quiescent_state_report(rcuname, gp_seq, mask, qsmask, level, \
|
2012-01-07 05:11:30 +07:00
|
|
|
grplo, grphi, gp_tasks) do { } \
|
|
|
|
while (0)
|
2018-05-02 03:35:20 +07:00
|
|
|
#define trace_rcu_fqs(rcuname, gp_seq, cpu, qsevent) do { } while (0)
|
2017-10-05 06:24:29 +07:00
|
|
|
#define trace_rcu_dyntick(polarity, oldnesting, newnesting, dyntick) do { } while (0)
|
2012-01-07 05:11:30 +07:00
|
|
|
#define trace_rcu_callback(rcuname, rhp, qlen_lazy, qlen) do { } while (0)
|
|
|
|
#define trace_rcu_kfree_callback(rcuname, rhp, offset, qlen_lazy, qlen) \
|
|
|
|
do { } while (0)
|
|
|
|
#define trace_rcu_batch_start(rcuname, qlen_lazy, qlen, blimit) \
|
|
|
|
do { } while (0)
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
#define trace_rcu_invoke_callback(rcuname, rhp) do { } while (0)
|
|
|
|
#define trace_rcu_invoke_kfree_callback(rcuname, rhp, offset) do { } while (0)
|
2011-12-08 07:32:40 +07:00
|
|
|
#define trace_rcu_batch_end(rcuname, callbacks_invoked, cb, nr, iit, risk) \
|
|
|
|
do { } while (0)
|
2012-11-15 07:26:40 +07:00
|
|
|
#define trace_rcu_torture_read(rcutorturename, rhp, secs, c_old, c) \
|
|
|
|
do { } while (0)
|
2012-05-24 08:47:05 +07:00
|
|
|
#define trace_rcu_barrier(name, s, cpu, cnt, done) do { } while (0)
|
rcu: Add grace-period, quiescent-state, and call_rcu trace events
Add trace events to record grace-period start and end, quiescent states,
CPUs noticing grace-period start and end, grace-period initialization,
call_rcu() invocation, tasks blocking in RCU read-side critical sections,
tasks exiting those same critical sections, force_quiescent_state()
detection of dyntick-idle and offline CPUs, CPUs entering and leaving
dyntick-idle mode (except from NMIs), CPUs coming online and going
offline, and CPUs being kicked for staying in dyntick-idle mode for too
long (as in many weeks, even on 32-bit systems).
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
rcu: Add the rcu flavor to callback trace events
The earlier trace events for registering RCU callbacks and for invoking
them did not include the RCU flavor (rcu_bh, rcu_preempt, or rcu_sched).
This commit adds the RCU flavor to those trace events.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-06-25 20:36:56 +07:00
|
|
|
|
|
|
|
#endif /* #else #ifdef CONFIG_RCU_TRACE */
|
|
|
|
|
2011-06-18 05:53:19 +07:00
|
|
|
#endif /* _TRACE_RCU_H */
|
|
|
|
|
|
|
|
/* This part must be outside protection */
|
|
|
|
#include <trace/define_trace.h>
|