Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
aed9cd6a
Commit
aed9cd6a
authored
Jul 28, 2009
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rt/trace' into rt/base
parents
27b7488e
189b7ee6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
0 deletions
+34
-0
include/trace/events/sched.h
include/trace/events/sched.h
+31
-0
kernel/panic.c
kernel/panic.c
+1
-0
kernel/sched.c
kernel/sched.c
+2
-0
No files found.
include/trace/events/sched.h
View file @
aed9cd6a
...
...
@@ -262,6 +262,37 @@ TRACE_EVENT(sched_process_exit,
__entry
->
comm
,
__entry
->
pid
,
__entry
->
prio
)
);
/*
* Tracepoint for priority boosting/deboosting of a task:
*
* (NOTE: the 'rq' argument is not used by generic trace events,
* but used by the latency tracer plugin. )
*/
TRACE_EVENT
(
sched_task_setprio
,
TP_PROTO
(
struct
rq
*
rq
,
struct
task_struct
*
p
,
int
oldprio
),
TP_ARGS
(
rq
,
p
,
oldprio
),
TP_STRUCT__entry
(
__array
(
char
,
comm
,
TASK_COMM_LEN
)
__field
(
pid_t
,
pid
)
__field
(
int
,
prio
)
__field
(
int
,
oldprio
)
),
TP_fast_assign
(
memcpy
(
__entry
->
comm
,
p
->
comm
,
TASK_COMM_LEN
);
__entry
->
pid
=
p
->
pid
;
__entry
->
prio
=
p
->
prio
;
__entry
->
oldprio
=
oldprio
;
),
TP_printk
(
"task %s:%d [%d] oldprio=%d"
,
__entry
->
comm
,
__entry
->
pid
,
__entry
->
prio
,
__entry
->
oldprio
)
);
/*
* Tracepoint for a waiting task:
*/
...
...
kernel/panic.c
View file @
aed9cd6a
...
...
@@ -301,6 +301,7 @@ int oops_may_print(void)
*/
void
oops_enter
(
void
)
{
tracing_off
();
/* can't trust the integrity of the kernel anymore: */
debug_locks_off
();
do_oops_enter_exit
();
...
...
kernel/sched.c
View file @
aed9cd6a
...
...
@@ -5908,6 +5908,8 @@ void rt_mutex_setprio(struct task_struct *p, int prio)
p
->
prio
=
prio
;
trace_sched_task_setprio
(
rq
,
p
,
oldprio
);
if
(
running
)
p
->
sched_class
->
set_curr_task
(
rq
);
if
(
on_rq
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment