aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@redhat.com>2010-01-05 17:47:03 -0500
committerIngo Molnar <mingo@elte.hu>2010-01-13 04:09:13 -0500
commitbbaa46fac6d1c652bfa6282420d36a44bdc53b64 (patch)
treeb6c178a7e838a1935693011d902603cbfe703fce
parentaa5add93e92019018e905146f8c3d3f8e3c08300 (diff)
perf probe: Remove newline from die()
Remove newline from die(), because it is automatically added. Signed-off-by: Masami 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: Ingo Molnar <mingo@elte.hu>
-rw-r--r--tools/perf/util/probe-finder.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c
index 4b852c0d16a5..6402798337c8 100644
--- a/tools/perf/util/probe-finder.c
+++ b/tools/perf/util/probe-finder.c
@@ -402,11 +402,11 @@ static void show_location(Dwarf_Loc *loc, struct probe_finder *pf)
402 } else if (op == DW_OP_regx) { 402 } else if (op == DW_OP_regx) {
403 regn = loc->lr_number; 403 regn = loc->lr_number;
404 } else 404 } else
405 die("Dwarf_OP %d is not supported.\n", op); 405 die("Dwarf_OP %d is not supported.", op);
406 406
407 regs = get_arch_regstr(regn); 407 regs = get_arch_regstr(regn);
408 if (!regs) 408 if (!regs)
409 die("%lld exceeds max register number.\n", regn); 409 die("%lld exceeds max register number.", regn);
410 410
411 if (deref) 411 if (deref)
412 ret = snprintf(pf->buf, pf->len, 412 ret = snprintf(pf->buf, pf->len,
@@ -438,7 +438,7 @@ static void show_variable(Dwarf_Die vr_die, struct probe_finder *pf)
438 return ; 438 return ;
439error: 439error:
440 die("Failed to find the location of %s at this address.\n" 440 die("Failed to find the location of %s at this address.\n"
441 " Perhaps, it has been optimized out.\n", pf->var); 441 " Perhaps, it has been optimized out.", pf->var);
442} 442}
443 443
444static int variable_callback(struct die_link *dlink, void *data) 444static 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 /* Search child die for local variables and parameters. */ 476 /* Search child die for local variables and parameters. */
477 ret = search_die_from_children(sp_die, variable_callback, pf); 477 ret = search_die_from_children(sp_die, variable_callback, pf);
478 if (!ret) 478 if (!ret)
479 die("Failed to find '%s' in this function.\n", pf->var); 479 die("Failed to find '%s' in this function.", pf->var);
480} 480}
481 481
482/* Get a frame base on the address */ 482/* Get a frame base on the address */
@@ -602,7 +602,7 @@ static void find_by_line(struct probe_finder *pf)
602 ret = search_die_from_children(pf->cu_die, 602 ret = search_die_from_children(pf->cu_die,
603 probeaddr_callback, pf); 603 probeaddr_callback, pf);
604 if (ret == 0) 604 if (ret == 0)
605 die("Probe point is not found in subprograms.\n"); 605 die("Probe point is not found in subprograms.");
606 /* Continuing, because target line might be inlined. */ 606 /* Continuing, because target line might be inlined. */
607 } 607 }
608 dwarf_srclines_dealloc(__dw_debug, lines, cnt); 608 dwarf_srclines_dealloc(__dw_debug, lines, cnt);
@@ -661,7 +661,7 @@ static int probefunc_callback(struct die_link *dlink, void *data)
661 !die_inlined_subprogram(lk->die)) 661 !die_inlined_subprogram(lk->die))
662 goto found; 662 goto found;
663 } 663 }
664 die("Failed to find real subprogram.\n"); 664 die("Failed to find real subprogram.");
665found: 665found:
666 /* Get offset from subprogram */ 666 /* Get offset from subprogram */
667 ret = die_within_subprogram(lk->die, pf->addr, &offs); 667 ret = die_within_subprogram(lk->die, pf->addr, &offs);