lkml.org 
[lkml]   [2017]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 12/35] perf annotate: Add annotation_line__add function
Date
Moving disasm__add into annotation_line__add to
make it work over generic struct annotation_line.

Link: http://lkml.kernel.org/n/tip-rpfeolzvlr6b888htmh9yxt5@git.kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
---
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 b8c369df8ec9..22053f754560 100644
--- a/tools/perf/util/annotate.c
+++ b/tools/perf/util/annotate.c
@@ -927,9 +927,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*
@@ -1291,7 +1291,7 @@ static int symbol__parse_objdump_line(struct symbol *sym, FILE *file,
dl->ops.target.name = strdup(target.sym->name);
}

- disasm__add(&notes->src->source, dl);
+ annotation_line__add(&dl->al, &notes->src->source);

return 0;
}
--
2.13.6
\
 
 \ /
  Last update: 2017-10-11 17:08    [W:0.351 / U:0.776 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site