blob: 265993ca23c567acbbfe3b3eb801ad59642820ab [file] [log] [blame]
Juan Cespedesac3db291998-04-25 14:31:58 +02001#include "config.h"
Juan Cespedesac3db291998-04-25 14:31:58 +02002
Juan Cespedes3268a161997-08-25 16:45:22 +02003#include <stdio.h>
Juan Cespedesd65efa32003-02-03 00:22:30 +01004#include <stdlib.h>
Juan Cespedes5e4455b1997-08-24 01:48:26 +02005#include <stdarg.h>
Juan Cespedes1cd999a2001-07-03 00:46:04 +02006#include <string.h>
Juan Cespedes5e0acdb1998-04-04 08:34:07 +02007#include <time.h>
8#include <sys/time.h>
9#include <unistd.h>
Juan Cespedes5e4455b1997-08-24 01:48:26 +020010
Juan Cespedesf7281232009-06-25 16:11:21 +020011#include "common.h"
Petr Machata366c2f42012-02-09 19:34:36 +010012#include "proc.h"
Petr Machata29add4f2012-02-18 16:38:05 +010013#include "library.h"
Petr Machata000e3112012-01-03 17:03:39 +010014#include "type.h"
Juan Cespedesac3db291998-04-25 14:31:58 +020015
Juan Cespedesf7281232009-06-25 16:11:21 +020016/* TODO FIXME XXX: include in common.h: */
Juan Cespedesd65efa32003-02-03 00:22:30 +010017extern struct timeval current_time_spent;
18
Juan Cespedes8d1b92b2009-07-03 10:39:34 +020019Dict *dict_opt_c = NULL;
Juan Cespedesd65efa32003-02-03 00:22:30 +010020
Juan Cespedesa8909f72009-04-28 20:02:41 +020021static Process *current_proc = 0;
Juan Cespedes5916fda2002-02-25 00:19:21 +010022static int current_depth = 0;
Juan Cespedes5e01f651998-03-08 22:31:44 +010023static int current_column = 0;
Juan Cespedes5b3ffdf2001-07-02 00:52:45 +020024
Juan Cespedesf1350522008-12-16 18:19:58 +010025static void
Petr Machata54004752012-05-03 18:36:48 +020026output_indent(struct Process *proc)
27{
28 int d = options.indent * (proc->callstack_depth - 1);
29 current_column += fprintf(options.output, "%*s", d, "");
Juan Cespedes5b3ffdf2001-07-02 00:52:45 +020030}
Juan Cespedes5e4455b1997-08-24 01:48:26 +020031
Juan Cespedesf1350522008-12-16 18:19:58 +010032static void
Juan Cespedesa8909f72009-04-28 20:02:41 +020033begin_of_line(enum tof type, Process *proc) {
Juan Cespedes5e01f651998-03-08 22:31:44 +010034 current_column = 0;
35 if (!proc) {
36 return;
Juan Cespedes5e4455b1997-08-24 01:48:26 +020037 }
Juan Cespedesc693f022009-05-21 18:59:41 +020038 if ((options.output != stderr) && (opt_p || options.follow)) {
39 current_column += fprintf(options.output, "%u ", proc->pid);
Juan Cespedese12df4c2009-05-28 19:06:35 +020040 } else if (options.follow) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +010041 current_column += fprintf(options.output, "[pid %u] ", proc->pid);
Juan Cespedes5e01f651998-03-08 22:31:44 +010042 }
Juan Cespedesf666d191998-09-20 23:04:34 +020043 if (opt_r) {
44 struct timeval tv;
45 struct timezone tz;
Ian Wienand2d45b1a2006-02-20 22:48:07 +010046 static struct timeval old_tv = { 0, 0 };
Juan Cespedesf666d191998-09-20 23:04:34 +020047 struct timeval diff;
48
49 gettimeofday(&tv, &tz);
50
Ian Wienand2d45b1a2006-02-20 22:48:07 +010051 if (old_tv.tv_sec == 0 && old_tv.tv_usec == 0) {
52 old_tv.tv_sec = tv.tv_sec;
53 old_tv.tv_usec = tv.tv_usec;
Juan Cespedesf666d191998-09-20 23:04:34 +020054 }
55 diff.tv_sec = tv.tv_sec - old_tv.tv_sec;
56 if (tv.tv_usec >= old_tv.tv_usec) {
57 diff.tv_usec = tv.tv_usec - old_tv.tv_usec;
58 } else {
Juan Cespedes5c3fe062004-06-14 18:08:37 +020059 diff.tv_sec--;
Juan Cespedesf666d191998-09-20 23:04:34 +020060 diff.tv_usec = 1000000 + tv.tv_usec - old_tv.tv_usec;
61 }
62 old_tv.tv_sec = tv.tv_sec;
63 old_tv.tv_usec = tv.tv_usec;
Juan Cespedesb65bdc52008-12-16 19:50:16 +010064 current_column += fprintf(options.output, "%3lu.%06d ",
Ian Wienand2d45b1a2006-02-20 22:48:07 +010065 diff.tv_sec, (int)diff.tv_usec);
Juan Cespedesf666d191998-09-20 23:04:34 +020066 }
Juan Cespedes5e0acdb1998-04-04 08:34:07 +020067 if (opt_t) {
68 struct timeval tv;
69 struct timezone tz;
Juan Cespedes5e0acdb1998-04-04 08:34:07 +020070
71 gettimeofday(&tv, &tz);
Ian Wienand2d45b1a2006-02-20 22:48:07 +010072 if (opt_t > 2) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +010073 current_column += fprintf(options.output, "%lu.%06d ",
Ian Wienand2d45b1a2006-02-20 22:48:07 +010074 tv.tv_sec, (int)tv.tv_usec);
75 } else if (opt_t > 1) {
76 struct tm *tmp = localtime(&tv.tv_sec);
77 current_column +=
Juan Cespedesb65bdc52008-12-16 19:50:16 +010078 fprintf(options.output, "%02d:%02d:%02d.%06d ",
Ian Wienand2d45b1a2006-02-20 22:48:07 +010079 tmp->tm_hour, tmp->tm_min, tmp->tm_sec,
80 (int)tv.tv_usec);
Juan Cespedes5e0acdb1998-04-04 08:34:07 +020081 } else {
Ian Wienand2d45b1a2006-02-20 22:48:07 +010082 struct tm *tmp = localtime(&tv.tv_sec);
Juan Cespedesb65bdc52008-12-16 19:50:16 +010083 current_column += fprintf(options.output, "%02d:%02d:%02d ",
Ian Wienand2d45b1a2006-02-20 22:48:07 +010084 tmp->tm_hour, tmp->tm_min,
85 tmp->tm_sec);
Juan Cespedes5e0acdb1998-04-04 08:34:07 +020086 }
87 }
Juan Cespedes5e01f651998-03-08 22:31:44 +010088 if (opt_i) {
Ian Wienand2d45b1a2006-02-20 22:48:07 +010089 if (type == LT_TOF_FUNCTION || type == LT_TOF_FUNCTIONR) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +010090 current_column += fprintf(options.output, "[%p] ",
Ian Wienand2d45b1a2006-02-20 22:48:07 +010091 proc->return_addr);
Juan Cespedes5e01f651998-03-08 22:31:44 +010092 } else {
Juan Cespedesb65bdc52008-12-16 19:50:16 +010093 current_column += fprintf(options.output, "[%p] ",
Ian Wienand2d45b1a2006-02-20 22:48:07 +010094 proc->instruction_pointer);
Juan Cespedes5e01f651998-03-08 22:31:44 +010095 }
96 }
Juan Cespedesb65bdc52008-12-16 19:50:16 +010097 if (options.indent > 0 && type != LT_TOF_NONE) {
Juan Cespedes3f0b62e2001-07-09 01:02:52 +020098 output_indent(proc);
Juan Cespedes5b3ffdf2001-07-02 00:52:45 +020099 }
Juan Cespedes5e4455b1997-08-24 01:48:26 +0200100}
101
Juan Cespedescde58262009-05-07 11:09:00 +0200102static Function *
Petr Machata9a7f2322011-07-08 19:00:37 +0200103name2func(char const *name) {
Juan Cespedescde58262009-05-07 11:09:00 +0200104 Function *tmp;
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100105 const char *str1, *str2;
Juan Cespedes5e01f651998-03-08 22:31:44 +0100106
107 tmp = list_of_functions;
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100108 while (tmp) {
Juan Cespedesd914a202004-11-10 00:15:33 +0100109#ifdef USE_DEMANGLE
Juan Cespedesce377d52008-12-16 19:38:10 +0100110 str1 = options.demangle ? my_demangle(tmp->name) : tmp->name;
111 str2 = options.demangle ? my_demangle(name) : name;
Juan Cespedes1b9cfd61999-08-30 19:34:50 +0200112#else
113 str1 = tmp->name;
114 str2 = name;
115#endif
116 if (!strcmp(str1, str2)) {
117
Juan Cespedes5e01f651998-03-08 22:31:44 +0100118 return tmp;
119 }
120 tmp = tmp->next;
121 }
122 return NULL;
123}
124
Juan Cespedesf1350522008-12-16 18:19:58 +0100125void
Juan Cespedesa8909f72009-04-28 20:02:41 +0200126output_line(Process *proc, char *fmt, ...) {
Juan Cespedes5e4455b1997-08-24 01:48:26 +0200127 va_list args;
128
Juan Cespedesda9b9532009-04-07 15:33:50 +0200129 if (options.summary) {
Juan Cespedesd65efa32003-02-03 00:22:30 +0100130 return;
131 }
Paul Gilliam76c61f12006-06-14 06:55:21 +0200132 if (current_proc) {
133 if (current_proc->callstack[current_depth].return_addr) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100134 fprintf(options.output, " <unfinished ...>\n");
Paul Gilliam76c61f12006-06-14 06:55:21 +0200135 } else {
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100136 fprintf(options.output, " <no return ...>\n");
Paul Gilliam76c61f12006-06-14 06:55:21 +0200137 }
Juan Cespedes5e01f651998-03-08 22:31:44 +0100138 }
Paul Gilliam76c61f12006-06-14 06:55:21 +0200139 current_proc = 0;
Juan Cespedes28f60191998-04-12 00:04:39 +0200140 if (!fmt) {
141 return;
142 }
Juan Cespedes5e01f651998-03-08 22:31:44 +0100143 begin_of_line(LT_TOF_NONE, proc);
144
Juan Cespedes21c63a12001-07-07 20:56:56 +0200145 va_start(args, fmt);
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100146 vfprintf(options.output, fmt, args);
147 fprintf(options.output, "\n");
Juan Cespedes21c63a12001-07-07 20:56:56 +0200148 va_end(args);
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100149 current_column = 0;
Juan Cespedes5e01f651998-03-08 22:31:44 +0100150}
151
Juan Cespedesf1350522008-12-16 18:19:58 +0100152static void
153tabto(int col) {
Juan Cespedes5e01f651998-03-08 22:31:44 +0100154 if (current_column < col) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100155 fprintf(options.output, "%*s", col - current_column, "");
Juan Cespedes5e01f651998-03-08 22:31:44 +0100156 }
157}
158
Juan Cespedesf1350522008-12-16 18:19:58 +0100159void
Petr Machata29add4f2012-02-18 16:38:05 +0100160output_left(enum tof type, struct Process *proc,
161 struct library_symbol *libsym)
162{
163 const char *function_name = libsym->name;
Juan Cespedescde58262009-05-07 11:09:00 +0200164 Function *func;
Petr Machata000e3112012-01-03 17:03:39 +0100165 static struct arg_type_info *arg_unknown = NULL;
Steve Finkb0315a02006-08-07 04:22:06 +0200166 if (arg_unknown == NULL)
Steve Fink65b53df2006-09-25 02:27:08 +0200167 arg_unknown = lookup_prototype(ARGTYPE_UNKNOWN);
Juan Cespedes5e01f651998-03-08 22:31:44 +0100168
Juan Cespedesda9b9532009-04-07 15:33:50 +0200169 if (options.summary) {
Juan Cespedesd65efa32003-02-03 00:22:30 +0100170 return;
171 }
Paul Gilliam76c61f12006-06-14 06:55:21 +0200172 if (current_proc) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100173 fprintf(options.output, " <unfinished ...>\n");
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100174 current_column = 0;
Juan Cespedes5e01f651998-03-08 22:31:44 +0100175 }
Paul Gilliam76c61f12006-06-14 06:55:21 +0200176 current_proc = proc;
Juan Cespedes5916fda2002-02-25 00:19:21 +0100177 current_depth = proc->callstack_depth;
Juan Cespedes5e01f651998-03-08 22:31:44 +0100178 begin_of_line(type, proc);
Petr Machata53bc49b2012-04-25 17:23:02 +0200179 if (!options.hide_caller && libsym->lib != NULL
180 && libsym->plt_type != LS_TOPLT_NONE)
Petr Machatab89c2562012-04-03 17:00:28 +0200181 current_column += fprintf(options.output, "%s->",
182 libsym->lib->soname);
Juan Cespedesd914a202004-11-10 00:15:33 +0100183#ifdef USE_DEMANGLE
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100184 current_column +=
Petr Machata03673892012-04-03 13:51:09 +0200185 fprintf(options.output, "%s(",
Petr Machata29add4f2012-02-18 16:38:05 +0100186 (options.demangle
Petr Machataf3db07a2012-03-21 05:16:46 +0100187 ? my_demangle(function_name) : function_name));
Juan Cespedesac3db291998-04-25 14:31:58 +0200188#else
Petr Machataa43876e2012-04-17 00:40:04 +0200189 current_column += fprintf(options.output, "%s(", function_name);
Juan Cespedesac3db291998-04-25 14:31:58 +0200190#endif
Juan Cespedes5e01f651998-03-08 22:31:44 +0100191
192 func = name2func(function_name);
193 if (!func) {
194 int i;
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100195 for (i = 0; i < 4; i++) {
196 current_column +=
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200197 display_arg(type, proc, i, arg_unknown);
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100198 current_column += fprintf(options.output, ", ");
Juan Cespedes5e01f651998-03-08 22:31:44 +0100199 }
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200200 current_column += display_arg(type, proc, 4, arg_unknown);
Juan Cespedes5e01f651998-03-08 22:31:44 +0100201 return;
202 } else {
203 int i;
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100204 for (i = 0; i < func->num_params - func->params_right - 1; i++) {
205 current_column +=
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200206 display_arg(type, proc, i, func->arg_info[i]);
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100207 current_column += fprintf(options.output, ", ");
Juan Cespedes5e01f651998-03-08 22:31:44 +0100208 }
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100209 if (func->num_params > func->params_right) {
210 current_column +=
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200211 display_arg(type, proc, i, func->arg_info[i]);
Juan Cespedes5e01f651998-03-08 22:31:44 +0100212 if (func->params_right) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100213 current_column += fprintf(options.output, ", ");
Juan Cespedes5e01f651998-03-08 22:31:44 +0100214 }
215 }
Petr Machata1d310382011-08-08 17:38:18 +0200216 if (func->params_right
217 || func->return_info->type == ARGTYPE_STRING_N
218 || func->return_info->type == ARGTYPE_ARRAY) {
Juan Cespedes5c3fe062004-06-14 18:08:37 +0200219 save_register_args(type, proc);
220 }
Juan Cespedes5e01f651998-03-08 22:31:44 +0100221 }
222}
223
Juan Cespedesf1350522008-12-16 18:19:58 +0100224void
Petr Machata29add4f2012-02-18 16:38:05 +0100225output_right(enum tof type, struct Process *proc, struct library_symbol *libsym)
Petr Machata14184b32012-02-10 13:10:26 +0100226{
Petr Machata29add4f2012-02-18 16:38:05 +0100227 const char *function_name = libsym->name;
Juan Cespedescde58262009-05-07 11:09:00 +0200228 Function *func = name2func(function_name);
Petr Machata000e3112012-01-03 17:03:39 +0100229 static struct arg_type_info *arg_unknown = NULL;
Steve Finkb0315a02006-08-07 04:22:06 +0200230 if (arg_unknown == NULL)
Steve Fink65b53df2006-09-25 02:27:08 +0200231 arg_unknown = lookup_prototype(ARGTYPE_UNKNOWN);
Juan Cespedes5e01f651998-03-08 22:31:44 +0100232
Juan Cespedesda9b9532009-04-07 15:33:50 +0200233 if (options.summary) {
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100234 struct opt_c_struct *st;
Juan Cespedesd65efa32003-02-03 00:22:30 +0100235 if (!dict_opt_c) {
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100236 dict_opt_c =
237 dict_init(dict_key2hash_string,
238 dict_key_cmp_string);
Juan Cespedesd65efa32003-02-03 00:22:30 +0100239 }
240 st = dict_find_entry(dict_opt_c, function_name);
241 if (!st) {
242 char *na;
243 st = malloc(sizeof(struct opt_c_struct));
244 na = strdup(function_name);
245 if (!st || !na) {
246 perror("malloc()");
247 exit(1);
248 }
249 st->count = 0;
250 st->tv.tv_sec = st->tv.tv_usec = 0;
251 dict_enter(dict_opt_c, na, st);
252 }
253 if (st->tv.tv_usec + current_time_spent.tv_usec > 1000000) {
254 st->tv.tv_usec += current_time_spent.tv_usec - 1000000;
255 st->tv.tv_sec++;
256 } else {
257 st->tv.tv_usec += current_time_spent.tv_usec;
258 }
259 st->count++;
260 st->tv.tv_sec += current_time_spent.tv_sec;
261
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100262// fprintf(options.output, "%s <%lu.%06d>\n", function_name,
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100263// current_time_spent.tv_sec, (int)current_time_spent.tv_usec);
Juan Cespedesd65efa32003-02-03 00:22:30 +0100264 return;
265 }
Paul Gilliam76c61f12006-06-14 06:55:21 +0200266 if (current_proc && (current_proc != proc ||
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100267 current_depth != proc->callstack_depth)) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100268 fprintf(options.output, " <unfinished ...>\n");
Paul Gilliam76c61f12006-06-14 06:55:21 +0200269 current_proc = 0;
Juan Cespedes1b9cfd61999-08-30 19:34:50 +0200270 }
Paul Gilliam76c61f12006-06-14 06:55:21 +0200271 if (current_proc != proc) {
Juan Cespedes5e01f651998-03-08 22:31:44 +0100272 begin_of_line(type, proc);
Juan Cespedesd914a202004-11-10 00:15:33 +0100273#ifdef USE_DEMANGLE
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100274 current_column +=
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100275 fprintf(options.output, "<... %s resumed> ",
Juan Cespedesce377d52008-12-16 19:38:10 +0100276 options.demangle ? my_demangle(function_name) : function_name);
Juan Cespedes1b9cfd61999-08-30 19:34:50 +0200277#else
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100278 current_column +=
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100279 fprintf(options.output, "<... %s resumed> ", function_name);
Juan Cespedes1b9cfd61999-08-30 19:34:50 +0200280#endif
Juan Cespedes5e01f651998-03-08 22:31:44 +0100281 }
282
283 if (!func) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100284 current_column += fprintf(options.output, ") ");
Juan Cespedesce377d52008-12-16 19:38:10 +0100285 tabto(options.align - 1);
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100286 fprintf(options.output, "= ");
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200287 display_arg(type, proc, -1, arg_unknown);
Juan Cespedes5e01f651998-03-08 22:31:44 +0100288 } else {
289 int i;
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100290 for (i = func->num_params - func->params_right;
291 i < func->num_params - 1; i++) {
292 current_column +=
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200293 display_arg(type, proc, i, func->arg_info[i]);
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100294 current_column += fprintf(options.output, ", ");
Juan Cespedes5e01f651998-03-08 22:31:44 +0100295 }
296 if (func->params_right) {
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100297 current_column +=
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200298 display_arg(type, proc, i, func->arg_info[i]);
Juan Cespedes5e01f651998-03-08 22:31:44 +0100299 }
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100300 current_column += fprintf(options.output, ") ");
Juan Cespedesce377d52008-12-16 19:38:10 +0100301 tabto(options.align - 1);
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100302 fprintf(options.output, "= ");
Steve Finkb0315a02006-08-07 04:22:06 +0200303 if (func->return_info->type == ARGTYPE_VOID) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100304 fprintf(options.output, "<void>");
Juan Cespedes5e01f651998-03-08 22:31:44 +0100305 } else {
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200306 display_arg(type, proc, -1, func->return_info);
Juan Cespedes5e01f651998-03-08 22:31:44 +0100307 }
Juan Cespedes5e4455b1997-08-24 01:48:26 +0200308 }
Juan Cespedesd65efa32003-02-03 00:22:30 +0100309 if (opt_T) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100310 fprintf(options.output, " <%lu.%06d>",
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100311 current_time_spent.tv_sec,
312 (int)current_time_spent.tv_usec);
Juan Cespedesd65efa32003-02-03 00:22:30 +0100313 }
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100314 fprintf(options.output, "\n");
Joe Damatoab3b72c2010-10-31 00:21:53 -0700315
316#if defined(HAVE_LIBUNWIND)
317 if (options.bt_depth > 0) {
318 unw_cursor_t cursor;
319 unw_word_t ip, sp;
320 int unwind_depth = options.bt_depth;
321 char fn_name[100];
322
323 unw_init_remote(&cursor, proc->unwind_as, proc->unwind_priv);
324 while (unwind_depth) {
325 unw_get_reg(&cursor, UNW_REG_IP, &ip);
326 unw_get_reg(&cursor, UNW_REG_SP, &sp);
327 unw_get_proc_name(&cursor, fn_name, 100, NULL);
328 fprintf(options.output, "\t\t\t%s (ip = 0x%lx)\n", fn_name, (long) ip);
329 if (unw_step(&cursor) <= 0)
330 break;
331 unwind_depth--;
332 }
333 fprintf(options.output, "\n");
334 }
335#endif /* defined(HAVE_LIBUNWIND) */
336
Paul Gilliam76c61f12006-06-14 06:55:21 +0200337 current_proc = 0;
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100338 current_column = 0;
Juan Cespedesc40e64a1997-10-26 20:34:00 +0100339}