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
21498223
Commit
21498223
authored
Dec 06, 2007
by
Matthew Wilcox
Committed by
Matthew Wilcox
Dec 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perfmon: Use task_is_*
Signed-off-by:
Matthew Wilcox
<
willy@linux.intel.com
>
parent
92a1f4bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
arch/ia64/kernel/perfmon.c
arch/ia64/kernel/perfmon.c
+2
-2
No files found.
arch/ia64/kernel/perfmon.c
View file @
21498223
...
@@ -2631,7 +2631,7 @@ pfm_task_incompatible(pfm_context_t *ctx, struct task_struct *task)
...
@@ -2631,7 +2631,7 @@ pfm_task_incompatible(pfm_context_t *ctx, struct task_struct *task)
*/
*/
if
(
task
==
current
)
return
0
;
if
(
task
==
current
)
return
0
;
if
(
(
task
->
state
!=
TASK_STOPPED
)
&&
(
task
->
state
!=
TASK_TRACED
))
{
if
(
!
task_is_stopped_or_traced
(
task
))
{
DPRINT
((
"cannot attach to non-stopped task [%d] state=%ld
\n
"
,
task_pid_nr
(
task
),
task
->
state
));
DPRINT
((
"cannot attach to non-stopped task [%d] state=%ld
\n
"
,
task_pid_nr
(
task
),
task
->
state
));
return
-
EBUSY
;
return
-
EBUSY
;
}
}
...
@@ -4792,7 +4792,7 @@ recheck:
...
@@ -4792,7 +4792,7 @@ recheck:
* the task must be stopped.
* the task must be stopped.
*/
*/
if
(
PFM_CMD_STOPPED
(
cmd
))
{
if
(
PFM_CMD_STOPPED
(
cmd
))
{
if
(
(
task
->
state
!=
TASK_STOPPED
)
&&
(
task
->
state
!=
TASK_TRACED
))
{
if
(
!
task_is_stopped_or_traced
(
task
))
{
DPRINT
((
"[%d] task not in stopped state
\n
"
,
task_pid_nr
(
task
)));
DPRINT
((
"[%d] task not in stopped state
\n
"
,
task_pid_nr
(
task
)));
return
-
EBUSY
;
return
-
EBUSY
;
}
}
...
...
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