mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@infradead.org>
To: Ingo Molnar <mingo@kernel.org>
Cc: linux-kernel@vger.kernel.org,
	Stephane Eranian <eranian@google.com>,
	Ingo Molnar <mingo@elte.hu>, Namhyung Kim <namhyung.kim@lge.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Arnaldo Carvalho de Melo <acme@redhat.com>
Subject: [PATCH 01/37] perf symbols: Fix dso__fprintf() print statement
Date: Tue, 11 Dec 2012 19:47:47 -0300	[thread overview]
Message-ID: <1355266103-17238-2-git-send-email-acme@infradead.org> (raw)
In-Reply-To: <1355266103-17238-1-git-send-email-acme@infradead.org>

From: Stephane Eranian <eranian@google.com>

Was ignoring the dso type (function vs. variable) and was therefore
printing bogus information.

Signed-off-by: Stephane Eranian <eranian@google.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20121120095101.GA5939@quad
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 tools/perf/util/dso.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/perf/util/dso.c b/tools/perf/util/dso.c
index d6d9a46..be43785 100644
--- a/tools/perf/util/dso.c
+++ b/tools/perf/util/dso.c
@@ -583,7 +583,7 @@ size_t dso__fprintf(struct dso *dso, enum map_type type, FILE *fp)
 	if (dso->short_name != dso->long_name)
 		ret += fprintf(fp, "%s, ", dso->long_name);
 	ret += fprintf(fp, "%s, %sloaded, ", map_type__name[type],
-		       dso->loaded ? "" : "NOT ");
+		       dso__loaded(dso, type) ? "" : "NOT ");
 	ret += dso__fprintf_buildid(dso, fp);
 	ret += fprintf(fp, ")\n");
 	for (nd = rb_first(&dso->symbols[type]); nd; nd = rb_next(nd)) {
-- 
1.7.9.2.358.g22243


  reply	other threads:[~2012-12-11 22:50 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-11 22:47 [GIT PULL 00/37] perf/core improvements and fixes Arnaldo Carvalho de Melo
2012-12-11 22:47 ` Arnaldo Carvalho de Melo [this message]
2012-12-11 22:47 ` [PATCH 02/37] perf ui: Always compile error printing code Arnaldo Carvalho de Melo
2012-12-11 22:47 ` [PATCH 03/37] perf ui/helpline: Introduce ui_helpline__vshow() Arnaldo Carvalho de Melo
2012-12-11 22:47 ` [PATCH 04/37] perf tools: Don't check configuration on make clean Arnaldo Carvalho de Melo
2012-12-11 22:47 ` [PATCH 05/37] perf session: Free environment information when deleting session Arnaldo Carvalho de Melo
2012-12-11 22:47 ` [PATCH 06/37] perf top: Add missing newline on pr_err call Arnaldo Carvalho de Melo
2012-12-11 22:47 ` [PATCH 07/37] perf tools: Fix mmap limitations on 32-bit Arnaldo Carvalho de Melo
2012-12-11 22:47 ` [PATCH 08/37] perf hists: Introduce perf_hpp__list for period related columns Arnaldo Carvalho de Melo
2012-12-11 22:47 ` [PATCH 09/37] perf hists: Fix period symbol_conf.field_sep display Arnaldo Carvalho de Melo
2012-12-11 22:47 ` [PATCH 10/37] perf symbols: Ignore ABS symbols when loading data maps Arnaldo Carvalho de Melo
2012-12-11 22:47 ` [PATCH 11/37] perf hists: Fix typo on hist__entry_add_pair Arnaldo Carvalho de Melo
2012-12-11 22:47 ` [PATCH 12/37] perf hists: Link hist entry pairs to leader Arnaldo Carvalho de Melo
2012-12-11 22:47 ` [PATCH 13/37] perf evsel: Set leader evsel's ->leader to itself Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 14/37] perf evsel: Convert to _is_group_leader method Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 15/37] perf diff: Remove displacement from struct hist_entry_diff Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 16/37] perf diff: Change compute methods to work with pair directly Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 17/37] perf diff: Change formula " Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 18/37] perf tools: Don't check configuration on make tags Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 19/37] perf tools: Fix TUI helpline output Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 20/37] perf buildid-list: We need to check if a file is ELF first Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 21/37] perf diff: Remove displacement output option Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 22/37] perf symbols: Generalize filter in __fprintf_buildid methods Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 23/37] perf buildid-cache: Add option to show build ids that are missing in the cache Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 24/37] perf machine: Move more machine methods to machine.c Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 25/37] perf evsel: Update sample_size when setting sample_type bits Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 26/37] perf test: Fixup error reporting in basic mmap test Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 27/37] perf test: Use perf_evsel__newtp constructor in the tracepoint tests Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 28/37] perf evsel: Introduce method to request IDs be used Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 29/37] perf evsel: No need to always ask for PERF_FORMAT_ID in read_format Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 30/37] perf evsel: No need to always ask for PERF_FORMAT_TOTAL_TIME_{ENABLED,RUNNING} Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 31/37] perf evlist: Set the leader in the perf_evlist__config method Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 32/37] perf evsel: Adopt fprintf routine from 'perf evlist' Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 33/37] perf tools: Add install-bin Makefile target Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 34/37] perf evsel: Decode read_format and sample_type in perf_evsel__fprintf Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 35/37] perf record: Pass perf_record_opts to the callchain cmdline parsing callback Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 36/37] perf record: Export the callchain parsing routine and help Arnaldo Carvalho de Melo
2012-12-11 22:48 ` [PATCH 37/37] perf top: Use perf_evlist__config() Arnaldo Carvalho de Melo
2013-01-24 15:32 ` [GIT PULL 00/37] perf/core improvements and fixes Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1355266103-17238-2-git-send-email-acme@infradead.org \
    --to=acme@infradead.org \
    --cc=acme@redhat.com \
    --cc=eranian@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=mingo@kernel.org \
    --cc=namhyung.kim@lge.com \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®