public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: ranjith kumar <ranjit_kumar_b4u@yahoo.co.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: privilege levels and kernel mode
Date: Mon, 16 Oct 2006 00:02:09 +0100	[thread overview]
Message-ID: <1160953329.5732.91.camel@localhost.localdomain> (raw)
In-Reply-To: <20061015191716.15283.qmail@web27401.mail.ukl.yahoo.com>

Ar Sul, 2006-10-15 am 20:17 +0100, ysgrifennodd ranjith kumar:
> I know how to include assembly instructions in a C
> program to wtrite into "Model specific registers". But
> that program has to be run at privilege level zero.

Its more hairy than that because of SMP and handling overflows and
according to whether you need to profile all use or your own task and so
on. Fortunately someone has done all the hard work already - take a look
at the oprofile support in the kernel and see if it will do what you
need.

Alan

      parent reply	other threads:[~2006-10-15 22:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-15 18:34 [PATCH] close mprotect noexec hole Ulrich Drepper
2006-10-15 18:47 ` Linus Torvalds
2006-10-15 19:14   ` Ulrich Drepper
2006-10-15 19:40     ` Linus Torvalds
2006-10-15 21:37       ` Ulrich Drepper
2006-10-15 19:17   ` privilege levels and kernel mode ranjith kumar
2006-10-15 19:24     ` bert hubert
2006-10-15 20:02     ` Jan Engelhardt
2006-10-15 23:02     ` Alan Cox [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=1160953329.5732.91.camel@localhost.localdomain \
    --to=alan@lxorguk.ukuu.org.uk \
    --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