From: Kay Tiong Khoo <kaytiong@gmail.com>
To: Michal Schmidt <xschmi00@stud.feec.vutbr.cz>
Cc: linux-kernel@vger.kernel.org
Subject: Re: stopping a process during a timer interrupt
Date: Thu, 19 Oct 2006 11:42:31 +0800 [thread overview]
Message-ID: <08F249B5-AED0-42EF-8B61-1B3AFAF1747C@gmail.com> (raw)
In-Reply-To: <45363AA1.1070604@stud.feec.vutbr.cz>
That's true. But if you are writing a profiler, the current process
is the process of interest in the interrupt context.
Kay Tiong
On Oct 18, 2006, at 10:30 PM, Michal Schmidt wrote:
> Kay Tiong Khoo skrev:
>> On a timer interrupt, I tried to stop the current process by changing
>> it's run state to TASK_STOPPED via set_current_state(TASK_STOPPED).
>> However, this results in a system hang.
>> I can't find a way to stop the current process during an interrupt
>> context. Does such code exist in the kernel? If not, how does one go
>> about implementing it from within a kernel module.
>
> In interrupt context there's no "current process" by definition.
>
> Michal
prev parent reply other threads:[~2006-10-19 3:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <d0bd1c10610170311s3ef77226n1d645f3f1e178753@mail.gmail.com>
2006-10-17 10:18 ` Kay Tiong Khoo
2006-10-17 22:56 ` Hagen Paul Pfeifer
2006-10-19 3:38 ` Kay Tiong Khoo
2006-10-18 14:30 ` Michal Schmidt
2006-10-19 3:42 ` Kay Tiong Khoo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=08F249B5-AED0-42EF-8B61-1B3AFAF1747C@gmail.com \
--to=kaytiong@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=xschmi00@stud.feec.vutbr.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®