From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9840 invoked by alias); 9 Sep 2013 20:36:49 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 9828 invoked by uid 89); 9 Sep 2013 20:36:48 -0000 Received: from mail-oa0-f46.google.com (HELO mail-oa0-f46.google.com) (209.85.219.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 09 Sep 2013 20:36:48 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,NO_RELAYS autolearn=ham version=3.3.2 X-HELO: mail-oa0-f46.google.com Received: by mail-oa0-f46.google.com with SMTP id o20so6946925oag.5 for ; Mon, 09 Sep 2013 13:36:46 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.182.233.137 with SMTP id tw9mr12298588obc.87.1378759006624; Mon, 09 Sep 2013 13:36:46 -0700 (PDT) Received: by 10.182.120.70 with HTTP; Mon, 9 Sep 2013 13:36:46 -0700 (PDT) Date: Mon, 09 Sep 2013 20:36:00 -0000 Message-ID: Subject: Page faults From: "Paddie O'Brien" To: systemtap@sourceware.org Content-Type: multipart/mixed; boundary=001a11c1c556d222cb04e5f9586c X-IsSubscribed: yes X-SW-Source: 2013-q3/txt/msg00285.txt.bz2 --001a11c1c556d222cb04e5f9586c Content-Type: text/plain; charset=ISO-8859-1 Content-length: 610 Hi, I run the attached to print out the offsets of faulting pages. Both probes should (I think) print the same number but instead I get this: hello: filemap_fault Page: 1678263179 hello: find_get_page Page: 15 hello: filemap_fault Page: 1678263179 hello: find_get_page Page: 1 hello: filemap_fault Page: 1678263179 hello: find_get_page Page: 10 etc. etc. Both functions are from mm/filemap.c. filemap_fault does this: pgoff_t offset = vmf->offset; find_get_page(mapping, offset); Basically, printing the offset in find_get_page works but printing vmf->offset in filemap_fault doesn't. Why? Thanks, P --001a11c1c556d222cb04e5f9586c Content-Type: application/octet-stream; name="pages.stp" Content-Disposition: attachment; filename="pages.stp" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hle5i45a0 Content-length: 448 IyEvdXNyL2Jpbi9zdGFwCgpwcm9iZSBrZXJuZWwuZnVuY3Rpb24oImZpbGVt YXBfZmF1bHQiKQp7CglpZiAoZXhlY25hbWUoKSAhPSAiaGVsbG8iKSBuZXh0 OwoJcHJpbnRmKCIlczogZmlsZW1hcF9mYXVsdFxuIiwgZXhlY25hbWUoKSk7 CglwcmludGYoIlBhZ2U6ICVsdVxuIiwgJHZtZi0+cGdvZmYpOwp9Cgpwcm9i ZSBrZXJuZWwuZnVuY3Rpb24oImZpbmRfZ2V0X3BhZ2UiKQp7CglpZiAoZXhl Y25hbWUoKSAhPSAiaGVsbG8iKSBuZXh0OwoJcHJpbnRmKCIlczogZmluZF9n ZXRfcGFnZVxuIiwgZXhlY25hbWUoKSk7CglwcmludGYoIlBhZ2U6ICVsdVxu IiwgJG9mZnNldCk7Cn0K --001a11c1c556d222cb04e5f9586c--