提交 bbaa46fa 编写于 作者: M Masami Hiramatsu 提交者: Ingo Molnar

perf probe: Remove newline from die()

Remove newline from die(), because it is automatically added.
Signed-off-by: NMasami Hiramatsu <mhiramat@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: systemtap <systemtap@sources.redhat.com>
Cc: DLE <dle-develop@lists.sourceforge.net>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Mike Galbraith <efault@gmx.de>
LKML-Reference: <20100105224703.19431.42475.stgit@dhcp-100-2-132.bos.redhat.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 aa5add93
...@@ -402,11 +402,11 @@ static void show_location(Dwarf_Loc *loc, struct probe_finder *pf) ...@@ -402,11 +402,11 @@ static void show_location(Dwarf_Loc *loc, struct probe_finder *pf)
} else if (op == DW_OP_regx) { } else if (op == DW_OP_regx) {
regn = loc->lr_number; regn = loc->lr_number;
} else } else
die("Dwarf_OP %d is not supported.\n", op); die("Dwarf_OP %d is not supported.", op);
regs = get_arch_regstr(regn); regs = get_arch_regstr(regn);
if (!regs) if (!regs)
die("%lld exceeds max register number.\n", regn); die("%lld exceeds max register number.", regn);
if (deref) if (deref)
ret = snprintf(pf->buf, pf->len, ret = snprintf(pf->buf, pf->len,
...@@ -438,7 +438,7 @@ static void show_variable(Dwarf_Die vr_die, struct probe_finder *pf) ...@@ -438,7 +438,7 @@ static void show_variable(Dwarf_Die vr_die, struct probe_finder *pf)
return ; return ;
error: error:
die("Failed to find the location of %s at this address.\n" die("Failed to find the location of %s at this address.\n"
" Perhaps, it has been optimized out.\n", pf->var); " Perhaps, it has been optimized out.", pf->var);
} }
static int variable_callback(struct die_link *dlink, void *data) static int variable_callback(struct die_link *dlink, void *data)
...@@ -476,7 +476,7 @@ static void find_variable(Dwarf_Die sp_die, struct probe_finder *pf) ...@@ -476,7 +476,7 @@ static void find_variable(Dwarf_Die sp_die, struct probe_finder *pf)
/* Search child die for local variables and parameters. */ /* Search child die for local variables and parameters. */
ret = search_die_from_children(sp_die, variable_callback, pf); ret = search_die_from_children(sp_die, variable_callback, pf);
if (!ret) if (!ret)
die("Failed to find '%s' in this function.\n", pf->var); die("Failed to find '%s' in this function.", pf->var);
} }
/* Get a frame base on the address */ /* Get a frame base on the address */
...@@ -602,7 +602,7 @@ static void find_by_line(struct probe_finder *pf) ...@@ -602,7 +602,7 @@ static void find_by_line(struct probe_finder *pf)
ret = search_die_from_children(pf->cu_die, ret = search_die_from_children(pf->cu_die,
probeaddr_callback, pf); probeaddr_callback, pf);
if (ret == 0) if (ret == 0)
die("Probe point is not found in subprograms.\n"); die("Probe point is not found in subprograms.");
/* Continuing, because target line might be inlined. */ /* Continuing, because target line might be inlined. */
} }
dwarf_srclines_dealloc(__dw_debug, lines, cnt); dwarf_srclines_dealloc(__dw_debug, lines, cnt);
...@@ -661,7 +661,7 @@ static int probefunc_callback(struct die_link *dlink, void *data) ...@@ -661,7 +661,7 @@ static int probefunc_callback(struct die_link *dlink, void *data)
!die_inlined_subprogram(lk->die)) !die_inlined_subprogram(lk->die))
goto found; goto found;
} }
die("Failed to find real subprogram.\n"); die("Failed to find real subprogram.");
found: found:
/* Get offset from subprogram */ /* Get offset from subprogram */
ret = die_within_subprogram(lk->die, pf->addr, &offs); ret = die_within_subprogram(lk->die, pf->addr, &offs);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册