From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1163075AbdKRISv (ORCPT ); Sat, 18 Nov 2017 03:18:51 -0500 Received: from terminus.zytor.com ([65.50.211.136]:35671 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967351AbdKRISg (ORCPT ); Sat, 18 Nov 2017 03:18:36 -0500 Date: Sat, 18 Nov 2017 00:15:02 -0800 From: tip-bot for Jiri Olsa Message-ID: Cc: tglx@linutronix.de, acme@redhat.com, andi@firstfloor.org, hpa@zytor.com, jolsa@kernel.org, namhyung@kernel.org, mingo@kernel.org, linux-kernel@vger.kernel.org, peterz@infradead.org, dsahern@gmail.com Reply-To: andi@firstfloor.org, hpa@zytor.com, tglx@linutronix.de, acme@redhat.com, dsahern@gmail.com, namhyung@kernel.org, jolsa@kernel.org, mingo@kernel.org, peterz@infradead.org, linux-kernel@vger.kernel.org In-Reply-To: <20171011150158.11895-13-jolsa@kernel.org> References: <20171011150158.11895-13-jolsa@kernel.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf annotate: Add annotation_line__add function Git-Commit-ID: 82b9d7ff096b7e7ae3efaeb341ee673bb494bb61 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 82b9d7ff096b7e7ae3efaeb341ee673bb494bb61 Gitweb: https://git.kernel.org/tip/82b9d7ff096b7e7ae3efaeb341ee673bb494bb61 Author: Jiri Olsa AuthorDate: Wed, 11 Oct 2017 17:01:35 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 13 Nov 2017 09:39:59 -0300 perf annotate: Add annotation_line__add function Rename disasm__add() into annotation_line__add() to make it work over a generic struct annotation_line. Signed-off-by: Jiri Olsa Cc: Andi Kleen Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20171011150158.11895-13-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/annotate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index e7da88d..11c7743 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c @@ -937,9 +937,9 @@ int disasm_line__scnprintf(struct disasm_line *dl, char *bf, size_t size, bool r return ins__scnprintf(&dl->ins, bf, size, &dl->ops); } -static void disasm__add(struct list_head *head, struct disasm_line *line) +static void annotation_line__add(struct annotation_line *al, struct list_head *head) { - list_add_tail(&line->al.node, head); + list_add_tail(&al->node, head); } struct annotation_line * @@ -1301,7 +1301,7 @@ static int symbol__parse_objdump_line(struct symbol *sym, FILE *file, dl->ops.target.name = strdup(target.sym->name); } - disasm__add(¬es->src->source, dl); + annotation_line__add(&dl->al, ¬es->src->source); return 0; }