mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
perf session: Use evlist/evsel for managing perf.data attributes
So that we can reuse things like the id to attr lookup routine (perf_evlist__id2evsel) that uses a hash table instead of the linear lookup done in the older perf_header_attr routines, etc. Also to make evsels/evlist more pervasive an API, simplyfing using the emerging perf lib. cc: Arun Sharma <arun@sharma-home.net> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Cc: Tom Zanussi <tzanussi@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
6547250381
commit
a91e5431d5
11 changed files with 179 additions and 328 deletions
|
@ -70,8 +70,8 @@ static int perf_session__add_hist_entry(struct perf_session *session,
|
|||
* FIXME: Propagate this back, but at least we're in a builtin,
|
||||
* where exit() is allowed. ;-)
|
||||
*/
|
||||
ui__warning("Invalid %s file, contains samples with id not in "
|
||||
"its header!\n", input_name);
|
||||
ui__warning("Invalid %s file, contains samples with id %" PRIu64 " not in "
|
||||
"its header!\n", input_name, sample->id);
|
||||
exit_browser(0);
|
||||
exit(1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue