mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC][PATCH 0/4] perf: remove __weak function hw_perf_group_sched_in()
@ 2010-04-22  7:50 Lin Ming
  2010-04-22  8:29 ` Peter Zijlstra
  0 siblings, 1 reply; 3+ messages in thread
From: Lin Ming @ 2010-04-22  7:50 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, eranian, Gary.Mohr@Bull.com,
	Corey Ashford, arjan, Zhang, Yanmin, Paul Mackerras,
	David S. Miller
  Cc: lkml

Hi, all

>From the discussion of thread "[RFC] perf_events: support for uncore
a.k.a. nest units", in order to support multiple hw pmu, Peter suggested
the first thing that needs to be done is get rid of all the __weak
functions (with exception of perf_callchain*, since that really is arch
specific), includes 

hw_perf_group_sched_in
hw_perf_event_init
hw_perf_disable
hw_perf_enable

Peter Zijlstra <peterz@infradead.org> wrote:
> One thing not on that list, which should happen first I guess, is to
> remove hw_perf_group_sched_in(). The idea is to add some sort of
> transactional API to the struct pmu, so that we can delay the
> schedulability check until commit time (and roll back when it fails).
>
> Something as simple as:
>
>  struct pmu {
>    void start_txn(struct pmu *);
>    void commit_txn(struct pmu *);
>
>    ,,,
>  };
>
> and then change group_sched_in() to use this instead of
> hw_perf_group_sched_in(), whose implementations mostly replicate
> group_sched_in() in various buggy ways anyway.
>

This patch series is to remove hw_perf_group_sched_in() first.

patch 1: core, add group scheduling transactional APIs
patch 2: x86, implement group scheduling transactional APIs
patch 3: powerpc, implement group scheduling transactional APIs
patch 4: sparc, implement group scheduling transactional APIs

Thanks for any comment.

Lin Ming


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-04-23  2:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-22  7:50 [RFC][PATCH 0/4] perf: remove __weak function hw_perf_group_sched_in() Lin Ming
2010-04-22  8:29 ` Peter Zijlstra
2010-04-23  2:23   ` Lin Ming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome