perf sort: Make column width code per hists instance
They were globals, and since we support multiple hists and sessions at the same time, it doesn't make sense to calculate those values considereing all symbols in all sessions. Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include "build-id.h"
|
||||
#include "debug.h"
|
||||
#include "symbol.h"
|
||||
#include "strlist.h"
|
||||
|
||||
@@ -40,6 +41,14 @@ struct symbol_conf symbol_conf = {
|
||||
.try_vmlinux_path = true,
|
||||
};
|
||||
|
||||
int dso__name_len(const struct dso *self)
|
||||
{
|
||||
if (verbose)
|
||||
return self->long_name_len;
|
||||
|
||||
return self->short_name_len;
|
||||
}
|
||||
|
||||
bool dso__loaded(const struct dso *self, enum map_type type)
|
||||
{
|
||||
return self->loaded & (1 << type);
|
||||
|
Reference in New Issue
Block a user