diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-08-05 22:28:49 +0300 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-08-05 22:28:49 +0300 | 
| commit | 42a579a0f960081cd16fc945036e4780c3ad3202 (patch) | |
| tree | 288c8920026c965c5d2e268cb5adae82e00602cc /tools/perf/util/python.c | |
| parent | 1d17d17484d40f2d5b35c79518597a2b25296996 (diff) | |
| parent | 8a06bf14008fbf55a86105b8569494f4beeb8762 (diff) | |
Merge branches 'timers-urgent-for-linus' and 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timers and perf fixes from Ingo Molnar:
 "Timers:
 - Fix another timekeeping bug
 Pef:
   - Make clean brace expansion fix for some shells, from Palmer Cox
   - Warn user just once per guest kernel when not finding kernel info,
     from David Ahern
   - perf test fix from Jiri Olsa
   - Fix error handling on event creation in perf top, from David Ahern
   - Fix check on perf_target__strnerror, from Namhyung Kim
   - Save the whole cmdline, from David Ahern
  There's this infrastructure change:
   - Prep work for the DWARF CFI post unwinder, so that it doesn't use
     perf_session in lots of places, just evlist/evsel is enough.
  which is a late infrastructure change that prepare for future feature
  work - we wanted it upstream to simplify the fixes/development patch
  flows."
* 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  time: Fix adjustment cleanup bug in timekeeping_adjust()
* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  perf tools: Remove brace expansion from clean target
  perf kvm top: Limit guest kernel info message to once
  perf tools: Introduce intlist
  perf tools: Change strlist to use the new rblist
  perf tools: Introducing rblist
  perf kvm: Use strtol for walking guestmount directory
  perf tool: Save cmdline from user in file header vs what is passed to record
  perf top: Error handling for counter creation should parallel perf-record
  perf session: Remove no longer used synthesize_sample method
  perf evsel: Adopt parse_sample method from perf_event
  perf evlist: Introduce perf_evlist__parse_sample
  perf session: Use perf_evlist__id_hdr_size more extensively
  perf session: Use perf_evlist__sample_id_all more extensively
  perf session: Use perf_evlist__sample_type more extensively
  perf evsel: Precalculate the sample size
  perf target: Fix check on buffer size
  perf symbols: Fix array sizes for binary types arrays
  perf test: Fix parse events automated tests
Diffstat (limited to 'tools/perf/util/python.c')
| -rw-r--r-- | tools/perf/util/python.c | 6 | 
1 files changed, 1 insertions, 5 deletions
| diff --git a/tools/perf/util/python.c b/tools/perf/util/python.c index e03b58a48424..0688bfb6d280 100644 --- a/tools/perf/util/python.c +++ b/tools/perf/util/python.c @@ -797,17 +797,13 @@ static PyObject *pyrf_evlist__read_on_cpu(struct pyrf_evlist *pevlist,  	event = perf_evlist__mmap_read(evlist, cpu);  	if (event != NULL) { -		struct perf_evsel *first;  		PyObject *pyevent = pyrf_event__new(event);  		struct pyrf_event *pevent = (struct pyrf_event *)pyevent;  		if (pyevent == NULL)  			return PyErr_NoMemory(); -		first = list_entry(evlist->entries.next, struct perf_evsel, node); -		err = perf_event__parse_sample(event, first->attr.sample_type, -					       perf_evsel__sample_size(first), -					       sample_id_all, &pevent->sample, false); +		err = perf_evlist__parse_sample(evlist, event, &pevent->sample, false);  		if (err)  			return PyErr_Format(PyExc_OSError,  					    "perf: can't parse sample, err=%d", err); | 
