]> git.baikalelectronics.ru Git - kernel.git/commit
perf annotate: Simplify disasm_line allocation and freeing code
authorRavi Bangoria <ravi.bangoria@linux.ibm.com>
Tue, 4 Feb 2020 04:52:29 +0000 (10:22 +0530)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 27 Feb 2020 14:07:13 +0000 (11:07 -0300)
commit2316f861ae9ca640708f9529ae40a6f0bd7ae048
treec869f9c81e935a93f55dc27a3d28bd803a4f198a
parente0ad4d68548005adb54cc7c35fd9abf760a2a050
perf annotate: Simplify disasm_line allocation and freeing code

We are allocating disasm_line object in annotation_line__new() instead
of disasm_line__new(). Similarly annotation_line__delete() is actually
freeing disasm_line object as well. This complexity is because of
privsize.  But we don't need privsize anymore so get rid of privsize and
simplify disasm_line allocation and freeing code.

Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Song Liu <songliubraving@fb.com>
Link: http://lore.kernel.org/lkml/20200204045233.474937-3-ravi.bangoria@linux.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c
tools/perf/util/annotate.h