public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Michal Schmidt <xschmi00@stud.feec.vutbr.cz>
To: ranjith kumar <ranjit_kumar_b4u@yahoo.co.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: privilege level of program which is called by call_usermodehelper()
Date: Sun, 12 Nov 2006 21:16:38 +0100	[thread overview]
Message-ID: <45578126.2000306@stud.feec.vutbr.cz> (raw)
In-Reply-To: <20061112190848.37896.qmail@web27401.mail.ukl.yahoo.com>

ranjith kumar wrote:
> Hi,
> 
> I think  the program which is called by
> call_usermodehelper() will not  be executed at
> privilege level zero on IA-32 machines. 
> Am I right?

Right. Only the kernel runs in privilege level (ring) 0.

> How to run a program which has been compiled by a
> compiler(say gcc) at privilege level zero?

You don't. Well, you could put it in the kernel...

> Indeed I  want to compare time taken in executing two
> programs. If we run them at privilege level zero by
> calling them in a kernel module, processor will not
> switch to other processors.

That's a false assumption. Even kernel code is preemptible nowadays.

> So that we can find out
> time taken to execute a program more accurately.

If you run your program on an otherwise idle machine, the results should 
be pretty accurate.
If you really think it matters, then run your program with real-time 
priority.

> What you say??
> Thanks in advance.

Michal

      reply	other threads:[~2006-11-12 20:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-12 19:08 privilege level of program which is called by call_usermodehelper() ranjith kumar
2006-11-12 20:16 ` Michal Schmidt [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=45578126.2000306@stud.feec.vutbr.cz \
    --to=xschmi00@stud.feec.vutbr.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ranjit_kumar_b4u@yahoo.co.uk \
    /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