lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CADZ9YHjbW5Wi0r68+DmXC2_M6BAwV1yzeBqPsEtEH8VQh1wLUQ@mail.gmail.com>
Date:	Sat, 22 Oct 2011 13:30:12 +0600
From:	Rakib Mullick <rakib.mullick@...il.com>
To:	Artur Baruchi <mail.baruchi@...il.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: Page Faults

On Sat, Oct 22, 2011 at 8:12 AM, Artur Baruchi <mail.baruchi@...il.com> wrote:
> Hi Guys.
>
> I would like to create a module (probably unsig kprobe or jproble) to
> separate some kinds of page faults. For example, suppose that during
> 10min my system experienced a total of 100 page faults. This module
> should show me that, 10 page faults happened in cache, 30 page faults
> happened in kernel pages, and so on...
> My question is... which function should I probe to accomplish this?
>
Maybe you're looking for arch/x86/mm/fault.c:do_page_fault(). But,
do_page_fault is tagged with __kprobes, so maybe you can't use this
function with kprobe. You need to find some other solutions. perf
tools has an option for page fault counting, see whether it satisfies
your need. Use 'perf list' to see all the events.

Thanks,
Rakib
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ