From: "will fitzgerald" <linux_learning@yahoo.co.uk>
To: linux-kernel@vger.kernel.org
Cc: linux-c-programming@vger.kernel.org
Subject: important how to stop interrupts and start them again after finishing what you wanted to do??
Date: Tue, 5 Nov 2002 17:35:55 +0000 (GMT) [thread overview]
Message-ID: <20021105173555.88591.qmail@web13102.mail.yahoo.com> (raw)
Hi all,
does any know how i can stop and start interrupts.
i have added a probe function to the kernel to measure
network mechanisms times in cycles, called
probe_point().
probe_point(int probeid){
get rdtsc time and put id and time into buffer
when full use printk to write buffer to disk.
}
then in mechanisms of interest i place a call to the
probe_point()for example,
vortex_interrupt(){
probe_point(10);// entry of function
.
.function stuff
.
.probe_point(11);// exit of function
}
the problem is some times my buffer does not record
some id's or times. i think this is because another
interrupt took place and so the probe_point() exits
before it gets a chance to store the id and time.
how do i go about setting an non interrupt in the
probe_point function to make sure it finishes what its
supposed to do?
for example:
probe_point(int probeid){
do not interrupt me until i do:
get rdtsc time and put id and time into buffer
when full use printk to write buffer to disk.
now i have finshed puting an id and time into a buffer
so you can interrpt now.
}
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
next reply other threads:[~2002-11-05 17:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-05 17:35 will fitzgerald [this message]
2002-11-05 18:59 ` important how to stop interrupts and start them again after finishing what you wanted to do?? Richard B. Johnson
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=20021105173555.88591.qmail@web13102.mail.yahoo.com \
--to=linux_learning@yahoo.co.uk \
--cc=linux-c-programming@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).