binutils-gdb/sim/common
Mike Frysinger 0d3d2c7158 sim: profile: implement --profile-file backend
The profile code already has options and handling for accepting a file to
write the profile output like the trace code, but it doesn't actually use
it.  At the moment, it simply opens the file at the start and closes it at
the end.  So add two new local functions the way the trace code is doing
it and have them figure out whether to write the output to stdout or the
specified file.  Then convert all existing output in the profile code to
use these helpers.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-04-22 00:26:08 +00:00
..
aclocal.m4 * common/aclocal.m4: Add include of ../../config/zlib.m4. 2009-11-24 22:58:08 +00:00
callback.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
cgen-accfp.c common/ 2010-01-25 04:08:52 +00:00
cgen-cpu.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
cgen-defs.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
cgen-engine.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
cgen-fpu.c
cgen-fpu.h common/ 2010-01-25 04:08:52 +00:00
cgen-mem.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
cgen-ops.h * cgen-ops.h (SUBWORDXFSI): Fix word ordering. 2010-01-22 08:23:26 +00:00
cgen-par.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
cgen-par.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
cgen-run.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
cgen-scache.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
cgen-scache.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
cgen-sim.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
cgen-trace.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
cgen-trace.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
cgen-types.h * cgen-types.h (SETDI): Delete, unused. 2010-01-06 05:03:46 +00:00
cgen-utils.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
cgen.sh
ChangeLog sim: profile: implement --profile-file backend 2010-04-22 00:26:08 +00:00
common.m4 * common/aclocal.m4: Add include of ../../config/zlib.m4. 2009-11-24 22:58:08 +00:00
config.in sim: use socklen_t with accept() 2010-03-30 23:09:48 +00:00
configure sim: use socklen_t with accept() 2010-03-30 23:09:48 +00:00
configure.ac sim: use socklen_t with accept() 2010-03-30 23:09:48 +00:00
dv-core.c sim: add missing values to array initializers 2010-04-12 16:53:33 +00:00
dv-glue.c sim: add missing values to array initializers 2010-04-12 16:53:33 +00:00
dv-pal.c sim: add missing values to array initializers 2010-04-12 16:53:33 +00:00
dv-sockser.c sim: dv-sockser: pass up connected state 2010-04-13 20:58:54 +00:00
dv-sockser.h sim: dv-sockser: pass up connected state 2010-04-13 20:58:54 +00:00
gdbinit.in
genmloop.sh Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
gennltvals.sh
gentmap.c
gentvals.sh
hw-alloc.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
hw-alloc.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
hw-base.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
hw-base.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
hw-device.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
hw-device.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
hw-events.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
hw-events.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
hw-handles.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
hw-handles.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
hw-instances.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
hw-instances.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
hw-main.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
hw-ports.c sim: add missing values to array initializers 2010-04-12 16:53:33 +00:00
hw-ports.h sim: fix typos in hw-ports.h 2010-04-02 18:25:27 +00:00
hw-properties.c sim: avoid TRACE redefine warnings 2010-03-16 20:58:53 +00:00
hw-properties.h sim: rename bool argument to avoid stdbool clash 2010-03-15 07:14:25 +00:00
hw-tree.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
hw-tree.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
Make-common.in * Make-common.in (CGEN_SIM_DEPS): Define. 2010-01-25 00:48:17 +00:00
Makefile.in Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
nltvals.def
nrun.c sim: convert old style function definitions 2010-03-30 19:43:42 +00:00
run-sim.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
run.1 Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
run.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-abort.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-alu.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-arange.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-arange.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-assert.h
sim-base.h sime-base.h: fix typos in STATE_CPU() examples 2010-02-04 22:52:03 +00:00
sim-basics.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-bits.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-bits.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-config.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-config.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-core.c sim: change raddr to address_word 2010-03-30 20:40:27 +00:00
sim-core.h sim: update device_error() prototype 2010-03-30 20:38:26 +00:00
sim-cpu.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-cpu.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-endian.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-endian.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-engine.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-engine.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-events.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-events.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-fpu.c sim: constify sim_fpu_print_status 2010-04-10 20:29:54 +00:00
sim-fpu.h sim: also constify sim_fpu_print_func 2010-04-10 21:25:06 +00:00
sim-hload.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-hrw.c sim: constify sim_write source buffer 2010-04-13 20:28:20 +00:00
sim-hw.c sim: add missing values to array initializers 2010-04-12 16:53:33 +00:00
sim-hw.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-info.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-inline.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-inline.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-io.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-io.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-load.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-memopt.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-memopt.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-model.c sim: add --model-info helper option 2010-04-19 18:42:00 +00:00
sim-model.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-module.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-module.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-n-bits.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-n-core.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-n-endian.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-options.c sim: add missing values to array initializers 2010-04-12 16:53:33 +00:00
sim-options.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-profile.c sim: profile: implement --profile-file backend 2010-04-22 00:26:08 +00:00
sim-profile.h sim: profile: implement --profile-file backend 2010-04-22 00:26:08 +00:00
sim-reason.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-reg.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-resume.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-run.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-signal.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-signal.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-stop.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-trace.c sim: add missing values to array initializers 2010-04-12 16:53:33 +00:00
sim-trace.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-types.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
sim-utils.c sim: fix printf format warning about non-string literal 2010-03-30 20:43:36 +00:00
sim-utils.h sim: constify sim_write source buffer 2010-04-13 20:28:20 +00:00
sim-watch.c sim: add missing values to array initializers 2010-04-12 16:53:33 +00:00
sim-watch.h sim: constify watchpoint interrupt names 2010-03-30 20:42:02 +00:00
syscall.c Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
tconfig.in
version.h Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00