All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gregory Haskins <ghaskins@novell.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Luis Henriques <henrix@sapo.pt>,
	Peter Zijlstra <peterz@infradead.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 -tip] sched: Clean unused fields from struct rq
Date: Thu, 19 Mar 2009 07:56:04 -0400	[thread overview]
Message-ID: <49C232D4.7050004@novell.com> (raw)
In-Reply-To: <20090319074949.GB17144@elte.hu>

[-- Attachment #1: Type: text/plain, Size: 1961 bytes --]

Ingo Molnar wrote:
> * Luis Henriques <henrix@sapo.pt> wrote:
>
>   
>>
>> Btw: I tried Greg schedtop with this patch and the app behaviour is as expected:
>>
>>   $ ./schedtop 
>>   Exception: unsupported version
>>     
>
> Mind updating the app too and post it here please? It's the only app 
> that relies on this file AFAIK.
>   

I can take care of the update if Luis can just confirm that this patch
works as expected against his new ABI?

--
commit 336a22f597769bb5759d561773d05ce666019677
Author: Gregory Haskins <ghaskins@novell.com>
Date:   Thu Mar 19 07:54:10 2009 -0400

    Update to proposed v15 ABI
   
    Signed-off-by: Gregory Haskins <ghaskins@novell.com>

diff --git a/schedtop.cc b/schedtop.cc
index 4d4c510..f3c9468 100644
--- a/schedtop.cc
+++ b/schedtop.cc
@@ -114,7 +114,7 @@ public:
                            throw std::runtime_error("error parsing
version");
                       
                        lis >> m_version;
-                       if (m_version != 14)
+                       if ((m_version < 14) || (m_version > 15))
                            throw std::runtime_error("unsupported version");
                       
                        state = state_timestamp;
@@ -219,9 +219,11 @@ private:
            std::string basename("/" + FormIndex("cpu", m_cpu) + "/rq/");
            Importer importer(m_smap, is, basename);
 
-           importer += "yld_both_empty";
-           importer += "yld_act_empty";
-           importer += "yld_exp_empty";
+           if (m_version < 15){
+             importer += "yld_both_empty";
+             importer += "yld_act_empty";
+             importer += "yld_exp_empty";
+           }
            importer += "yld_count";
            importer += "sched_switch";
            importer += "sched_count";



----------------

If this patch works, you have my "Acked-by" for Luis' kernel-side patch.

-Greg



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]

  reply	other threads:[~2009-03-19 11:53 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-18 22:51 [PATCH v3 -tip] sched: Clean unused fields from struct rq Luis Henriques
2009-03-18 22:54 ` Luis Henriques
2009-03-19  7:49   ` Ingo Molnar
2009-03-19 11:56     ` Gregory Haskins [this message]
2009-03-19 18:23       ` Luis Henriques
2009-03-19 18:51         ` Gregory Haskins
2009-03-19 18:43   ` Gregory Haskins
2009-03-23 17:52 ` Luis Henriques
2009-03-24 14:04   ` Ingo Molnar
2009-03-24 15:22     ` Gregory Haskins
2009-03-24 15:41       ` Ingo Molnar
2009-03-24 15:59         ` Gregory Haskins
2009-03-24 18:22           ` Luis Henriques
2009-03-24 21:04           ` Ingo Molnar

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=49C232D4.7050004@novell.com \
    --to=ghaskins@novell.com \
    --cc=henrix@sapo.pt \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=peterz@infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.