Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
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
Show 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)
*/
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
));
return
-
EBUSY
;
}
...
...
@@ -4792,7 +4792,7 @@ pfm_check_task_state(pfm_context_t *ctx, int cmd, unsigned long flags)
* the task must be stopped.
*/
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
)));
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