All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] perf, x86: handle overlapping counters
@ 2011-11-18 11:35 Robert Richter
  2011-11-18 11:35 ` [PATCH v4 1/2] perf, x86: Implement event scheduler helper functions Robert Richter
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Robert Richter @ 2011-11-18 11:35 UTC (permalink / raw)
  To: Peter Zijlstra
  Cc: Stephane Eranian, Ingo Molnar, Andi Kleen, LKML, Robert Richter

I know there is an ongoing discussion about the best algorithm to be
used for this problem. Posting this version with the latest updates
anyway...

This patch set implements support for overlapping counters (patch #2).
For this the existing x86 event scheduler is reworked by introducing
helper functions (patch #1).

Version 4 of the patch set fixes a bug in the event assignment. There was a
problem if the first event's weight (index 0) is not the minimum weight. In
this case the event was assigned twice leaving another event uninitialized
which caused a GP while accessing counter msrs. Fixes this by proper
initialzing the first event in perf_sched_init().

V2:
changes in patch #2:
* Renamed redo -> overlap.
* Reimplementation using perf scheduling helper functions.

V3:
changes in patch #1:
* Added macro for_each_set_bit_cont().
* Changed functions interfaces of perf_sched_find_counter() and
  perf_sched_next_event() to use bool as return value.
* Added some comments to make code better understandable.
changes in patch #2:
* Added WARN_ON_ONCE() if out of save states.
* Changed function interface of perf_sched_restore_state() to use bool
  as return value.

V4:
changes in patch #1:
* Fix broken event assignment if weight of the first event is not
  wmin (perf_sched_init()).

Robert Richter (2):
  configs: updating misc-x86_64-erda to v3.0.8
  config: updating misc-x86_64-erda.config for ASUS M4A89GTD PRO

 configs/misc-x86_64-erda.config |  517 ++++++++++++++++++++++++++++-----------
 1 files changed, 379 insertions(+), 138 deletions(-)

-- 
1.7.7



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

end of thread, other threads:[~2011-12-06  9:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-18 11:35 [PATCH v4 0/2] perf, x86: handle overlapping counters Robert Richter
2011-11-18 11:35 ` [PATCH v4 1/2] perf, x86: Implement event scheduler helper functions Robert Richter
2011-12-06  9:44   ` [tip:perf/core] " tip-bot for Robert Richter
2011-11-18 11:35 ` [PATCH v4 2/2] perf, x86: Fix event scheduler for constraints with overlapping counters Robert Richter
2011-12-06  9:45   ` [tip:perf/core] " tip-bot for Robert Richter
2011-11-18 15:10 ` [PATCH v4 0/2] perf, x86: handle " Peter Zijlstra
2011-11-18 16:32   ` Robert Richter
2011-11-22 15:26 ` Peter Zijlstra
2011-11-22 16:27   ` Robert Richter

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.