diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-30 01:43:21 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-30 01:43:21 +0000 |
commit | 91d55c0e5025dbf13bdf2549e2b3a824252d4c72 (patch) | |
tree | 6d79636392018a8766c2467ed7e8d541c0461f19 /src/target | |
parent | d00a5cfe97452f9d72aeff31d00fac5979add0ea (diff) | |
download | openocd_libswd-91d55c0e5025dbf13bdf2549e2b3a824252d4c72.tar.gz openocd_libswd-91d55c0e5025dbf13bdf2549e2b3a824252d4c72.tar.bz2 openocd_libswd-91d55c0e5025dbf13bdf2549e2b3a824252d4c72.tar.xz openocd_libswd-91d55c0e5025dbf13bdf2549e2b3a824252d4c72.zip |
David Brownell <david-b@pacbell.net>:
Provide basic documentation on the ARM ETM and ETB trace commands.
Fix minor goofs in registration of the ETM commands; and whitespace
issues in the proof-of-concept oocd_trace code. (Plus include a
ref to Dominic's email saying that it's just proof-of-concept code.)
Note that I'm still not sure whether the ETM support works. But
documenting how it's expected to work should help sort out which
behaviors are bugs, which will help get bugs patched.
ZW: whitespace changes were split out of this patch but will follow.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1945 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/etm.c | 8 | ||||
-rw-r--r-- | src/target/oocd_trace.c | 5 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/target/etm.c b/src/target/etm.c index 7cb07d6b..801fb8e0 100644 --- a/src/target/etm.c +++ b/src/target/etm.c @@ -1815,7 +1815,8 @@ int etm_register_commands(struct command_context_s *cmd_ctx) { etm_cmd = register_command(cmd_ctx, NULL, "etm", NULL, COMMAND_ANY, "Embedded Trace Macrocell"); - register_command(cmd_ctx, etm_cmd, "config", handle_etm_config_command, COMMAND_CONFIG, "etm config <target> <port_width> <port_mode> <clocking> <capture_driver>"); + register_command(cmd_ctx, etm_cmd, "config", handle_etm_config_command, + COMMAND_CONFIG, "etm config <target> <port_width> <port_mode> <clocking> <capture_driver>"); return ERROR_OK; } @@ -1823,12 +1824,13 @@ int etm_register_commands(struct command_context_s *cmd_ctx) int etm_register_user_commands(struct command_context_s *cmd_ctx) { register_command(cmd_ctx, etm_cmd, "tracemode", handle_etm_tracemode_command, - COMMAND_EXEC, "configure trace mode <none|data|address|all> <context id bits> <cycle accurate> <branch output"); + COMMAND_EXEC, "configure trace mode <none|data|address|all> " + "<context_id_bits> <cycle_accurate> <branch_output>"); register_command(cmd_ctx, etm_cmd, "info", handle_etm_info_command, COMMAND_EXEC, "display info about the current target's ETM"); - register_command(cmd_ctx, etm_cmd, "trigger_percent <percent>", handle_etm_trigger_percent_command, + register_command(cmd_ctx, etm_cmd, "trigger_percent", handle_etm_trigger_percent_command, COMMAND_EXEC, "amount (<percent>) of trace buffer to be filled after the trigger occured"); register_command(cmd_ctx, etm_cmd, "status", handle_etm_status_command, COMMAND_EXEC, "display current target's ETM status"); diff --git a/src/target/oocd_trace.c b/src/target/oocd_trace.c index d54766ae..4d157076 100644 --- a/src/target/oocd_trace.c +++ b/src/target/oocd_trace.c @@ -24,6 +24,11 @@ #include "oocd_trace.h" #include "arm7_9_common.h" +/* + * This is "proof of concept" code, for prototype hardware: + * https://lists.berlios.de/pipermail/openocd-development/2007-September/000336.html + */ + static int oocd_trace_register_commands(struct command_context_s *cmd_ctx); |