All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Renninger <trenn@suse.de>
To: Arjan van de Ven <arjan@linux.intel.com>
Cc: Len Brown <len.brown@intel.com>,
	linux-trace-users@vger.kernel.org,
	Peter Zijlstra <peterz@infradead.org>,
	Jean Pihet <jean.pihet@newoldbits.com>,
	linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org,
	Ingo Molnar <mingo@elte.hu>,
	linux-omap@vger.kernel.org, linux-pm@lists.linux-foundation.org,
	arjan@infradead.org
Subject: Re: [PATCH] tracing, perf: add more power related events
Date: Wed, 22 Sep 2010 19:36:01 +0200	[thread overview]
Message-ID: <201009221936.02245.trenn__21688.414962455$1285177147$gmane$org@suse.de> (raw)
In-Reply-To: <4C9A37AE.2010509@linux.intel.com>

On Wednesday 22 September 2010 19:06:54 Arjan van de Ven wrote:
>   On 9/22/2010 9:43 AM, Peter Zijlstra wrote:
> > On Wed, 2010-09-22 at 09:32 -0700, Arjan van de Ven wrote:
> >>> What are the apps that are using it? I know about builtin-timechart,
> >>> pytimechart. Is powertop using this as well?
> >> powertop 2.x codebase is as well.
> >>
> >> and a bunch of tools we have internal here at Intel.
> >>
> >> the thing with ABIs is that you don't know how many users you have.. at
> >> least here you know the lower bound is 3 different tools that are open
> >> source.
> >> .... and likely many local tools that aren't.
> > These tools should be smart enough to look up the tracepoint name, fail
> > it its not available, read the tracepoint format, again fail if not
> > compatible.
> it's not very useful if none of the critical information is available.
> 
> you can't at the one hand push people to use perf for critical pieces 
> (like machine checks etc etc) and on
> the other hand say that it's not ABI stable and should not be used really.
I provided an ABI stable solution, by marking the broken parts deprecated, etc.
I'll rework the CONFIG_DEPRECATED_POWER_EVENTS (or similar config).

> In this case we're talking about basically a suprious rename of 
> something that isn't really an improvement
...

> (because it makes it harder to subscribe to only one type of event)... 
> that's not a good thing.
Finally there is some talking about the details.
You say they should be differed by the name and not the type?
Why does the type= attribute exist at all then?

/sys/kernel/debug/tracing/:[0]# cat available_events  |grep power
power:power_start
power:power_frequency
power:power_end

So which one do I set to get C-, processor sleep, state traces?

What you mean is that instead of passing the type= as attribute, an
additional macro layer could be put in or each type is statically defined.
The type itself needs not to get passed anymore then, because this
info is already in the name and you get:
power:power_cstates
power:power_pstates
power:power_sstates
or
power:power_processor_sleep
power:power_processor_frequency
power:power_machine_suspend
...
right?
This more looks like an interface that can get exposed
to userspace...

       Thomas

  parent reply	other threads:[~2010-09-22 17:36 UTC|newest]

Thread overview: 123+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-07  7:21 [PATCH] tracing, perf: add more power related events Jean Pihet
2010-09-07  7:21 ` Jean Pihet
2010-09-07  8:01 ` Jean Pihet
2010-09-07  8:01 ` Jean Pihet
2010-09-07  8:01   ` Jean Pihet
2010-09-08  6:53 ` Ingo Molnar
2010-09-08  6:53 ` Ingo Molnar
2010-09-09  7:15   ` Jean Pihet
2010-09-09  7:54     ` Ingo Molnar
2010-09-09  7:54     ` Ingo Molnar
2010-09-15 15:45       ` Jean Pihet
2010-09-15 15:45       ` Jean Pihet
2010-09-15 15:45       ` Jean Pihet
2010-09-17 13:08         ` Thomas Renninger
2010-09-17 14:05           ` Jean Pihet
2010-09-17 14:24             ` Ingo Molnar
2010-09-17 15:36               ` Thomas Renninger
2010-09-17 16:24                 ` Ingo Molnar
2010-09-17 16:24                 ` Ingo Molnar
2010-09-17 22:26                   ` Thomas Renninger
2010-09-22 15:31                     ` Jean Pihet
2010-09-22 15:31                     ` Jean Pihet
2010-09-22 15:31                       ` Jean Pihet
2010-09-22 15:33                       ` Arjan van de Ven
2010-09-22 15:36                         ` Jean Pihet
2010-09-22 15:36                           ` Jean Pihet
2010-09-22 16:32                           ` Arjan van de Ven
2010-09-22 16:43                             ` Peter Zijlstra
2010-09-22 16:43                             ` Peter Zijlstra
2010-09-22 17:06                               ` Arjan van de Ven
2010-09-22 17:06                               ` Arjan van de Ven
2010-09-22 17:30                                 ` Peter Zijlstra
2010-09-22 18:15                                   ` Steven Rostedt
2010-09-22 18:23                                     ` Ingo Molnar
2010-09-22 18:30                                       ` Peter Zijlstra
2010-09-22 18:30                                       ` Peter Zijlstra
2010-09-22 18:23                                     ` Ingo Molnar
2010-09-22 18:26                                     ` Peter Zijlstra
2010-09-22 18:26                                     ` Peter Zijlstra
2010-09-22 18:36                                       ` Steven Rostedt
2010-09-22 18:36                                       ` Steven Rostedt
2010-09-22 18:43                                         ` Peter Zijlstra
2010-09-22 18:43                                         ` Peter Zijlstra
2010-09-22 19:14                                       ` Frank Ch. Eigler
2010-09-22 19:14                                       ` Frank Ch. Eigler
2010-09-22 18:15                                   ` Steven Rostedt
2010-09-22 17:30                                 ` Peter Zijlstra
2010-09-22 17:36                                 ` Thomas Renninger
2010-09-22 17:36                                 ` Thomas Renninger [this message]
2010-09-22 16:47                             ` Peter Zijlstra
2010-09-22 16:47                             ` Peter Zijlstra
2010-09-22 16:32                           ` Arjan van de Ven
2010-09-22 15:36                         ` Jean Pihet
2010-09-22 17:57                         ` Thomas Renninger
2010-09-22 17:57                         ` Thomas Renninger
2010-09-22 18:13                           ` Arjan van de Ven
2010-09-22 18:34                             ` Thomas Renninger
2010-09-22 18:34                             ` Thomas Renninger
2010-09-22 18:13                           ` Arjan van de Ven
2010-09-22 18:09                         ` Rafael J. Wysocki
2010-09-22 18:09                         ` Rafael J. Wysocki
2010-09-22 15:33                       ` Arjan van de Ven
2010-09-22 18:49                       ` Rafael J. Wysocki
2010-09-22 18:49                       ` Rafael J. Wysocki
2010-09-28  8:35                         ` Jean Pihet
2010-09-28  8:35                           ` Jean Pihet
2010-09-28 21:22                           ` Rafael J. Wysocki
2010-09-28 21:22                           ` Rafael J. Wysocki
2010-09-28 21:43                             ` Jean Pihet
2010-09-28 21:43                               ` Jean Pihet
2010-09-28 22:05                               ` Rafael J. Wysocki
2010-09-28 22:05                               ` Rafael J. Wysocki
2010-09-28 21:43                             ` Jean Pihet
2010-09-28 21:45                             ` Arjan van de Ven
2010-09-28 22:05                               ` Rafael J. Wysocki
2010-09-28 22:05                               ` Rafael J. Wysocki
2010-09-29  7:49                               ` Thomas Renninger
2010-09-29  7:49                               ` Thomas Renninger
2010-09-29  9:25                                 ` Jean Pihet
2010-09-29  9:25                                 ` Jean Pihet
2010-09-29  9:25                                   ` Jean Pihet
2010-10-04 17:55                               ` Pavel Machek
2010-10-04 17:55                               ` [linux-pm] " Pavel Machek
2010-09-28 21:45                             ` Arjan van de Ven
2010-09-28  8:35                         ` Jean Pihet
2010-09-17 22:26                   ` Thomas Renninger
2010-09-17 15:36               ` Thomas Renninger
2010-09-17 14:24             ` Ingo Molnar
2010-09-17 15:29             ` Thomas Renninger
2010-09-17 15:29             ` Thomas Renninger
2010-09-17 21:58             ` Thomas Renninger
2010-09-17 21:58             ` Thomas Renninger
2010-09-17 22:04             ` Thomas Renninger
2010-09-17 22:04             ` Thomas Renninger
2010-09-17 22:10             ` Thomas Renninger
2010-09-17 22:10             ` Thomas Renninger
2010-09-17 22:17             ` Thomas Renninger
2010-09-17 22:17             ` Thomas Renninger
2010-09-17 14:05           ` Jean Pihet
2010-09-17 13:08         ` Thomas Renninger
2010-09-09  7:15   ` Jean Pihet
2010-09-17  8:28 ` [tip:perf/core] tracing, perf: Add " tip-bot for Jean Pihet
  -- strict thread matches above, loose matches on Subject: below --
2010-09-07  7:21 [PATCH] tracing, perf: add " Jean Pihet
2010-08-16 11:09 Jean Pihet
2010-08-16 11:15 ` Peter Zijlstra
2010-08-16 11:25   ` Jean Pihet
2010-08-23 10:25     ` Jean Pihet
2010-09-03 17:00       ` Jean Pihet
2010-09-03 18:05         ` Thomas Renninger
2010-09-03 19:55           ` Ingo Molnar
2010-09-03 20:10             ` Thomas Renninger
2010-09-03 20:28               ` Ingo Molnar
2010-09-03 22:56               ` Arjan van de Ven
2010-09-04  8:18                 ` Ingo Molnar
2010-09-06  8:56                   ` Jean Pihet
2010-09-06 10:42                     ` Thomas Renninger
2010-09-06 10:42                     ` Thomas Renninger
2010-09-06 11:27                       ` Jean Pihet
2010-09-06 12:00                         ` Thomas Renninger
2010-09-06 12:00                         ` Thomas Renninger
2010-09-07  7:28                           ` Jean Pihet
2010-09-07  7:28                           ` Jean Pihet
2010-09-06 11:27                       ` Jean Pihet

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='201009221936.02245.trenn__21688.414962455$1285177147$gmane$org@suse.de' \
    --to=trenn@suse.de \
    --cc=arjan@infradead.org \
    --cc=arjan@linux.intel.com \
    --cc=jean.pihet@newoldbits.com \
    --cc=len.brown@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=linux-trace-users@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.