|
| 1 | +/* |
| 2 | + * |
| 3 | + * Copyright(C) 2015 Linaro Limited. All rights reserved. |
| 4 | + * Author: Tor Jeremiassen <tor.jeremiassen@linaro.org> |
| 5 | + * |
| 6 | + * This program is free software; you can redistribute it and/or modify it |
| 7 | + * under the terms of the GNU General Public License version 2 as published |
| 8 | + * by the Free Software Foundation. |
| 9 | + * |
| 10 | + * This program is distributed in the hope that it will be useful, but |
| 11 | + * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
| 13 | + * Public License for more details. |
| 14 | + * |
| 15 | + * You should have received a copy of the GNU GEneral Public License along |
| 16 | + * with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | + */ |
| 18 | + |
| 19 | +#include <stdlib.h> |
| 20 | + |
| 21 | +#include "cs-etm-decoder.h" |
| 22 | +#include "../util.h" |
| 23 | + |
| 24 | + |
| 25 | +struct cs_etm_decoder |
| 26 | +{ |
| 27 | + void *state; |
| 28 | + int dummy; |
| 29 | +}; |
| 30 | + |
| 31 | +int cs_etm_decoder__flush(struct cs_etm_decoder *decoder) |
| 32 | +{ |
| 33 | + (void) decoder; |
| 34 | + return -1; |
| 35 | +} |
| 36 | + |
| 37 | +int cs_etm_decoder__add_bin_file(struct cs_etm_decoder *decoder, uint64_t offset, uint64_t address, uint64_t len, const char *fname) |
| 38 | +{ |
| 39 | + (void) decoder; |
| 40 | + (void) offset; |
| 41 | + (void) address; |
| 42 | + (void) len; |
| 43 | + (void) fname; |
| 44 | + return -1; |
| 45 | +} |
| 46 | + |
| 47 | +const struct cs_etm_state *cs_etm_decoder__process_data_block(struct cs_etm_decoder *decoder, |
| 48 | + uint64_t indx, |
| 49 | + const uint8_t *buf, |
| 50 | + size_t len, |
| 51 | + size_t *consumed) |
| 52 | +{ |
| 53 | + (void) decoder; |
| 54 | + (void) indx; |
| 55 | + (void) buf; |
| 56 | + (void) len; |
| 57 | + (void) consumed; |
| 58 | + return NULL; |
| 59 | +} |
| 60 | + |
| 61 | +int cs_etm_decoder__add_mem_access_cb(struct cs_etm_decoder *decoder, uint64_t address, uint64_t len, cs_etm_mem_cb_type cb_func) |
| 62 | +{ |
| 63 | + (void) decoder; |
| 64 | + (void) address; |
| 65 | + (void) len; |
| 66 | + (void) cb_func; |
| 67 | + return -1; |
| 68 | +} |
| 69 | + |
| 70 | +int cs_etm_decoder__get_packet(struct cs_etm_decoder *decoder, |
| 71 | + struct cs_etm_packet *packet) |
| 72 | +{ |
| 73 | + (void) decoder; |
| 74 | + (void) packet; |
| 75 | + return -1; |
| 76 | +} |
| 77 | + |
| 78 | +struct cs_etm_decoder *cs_etm_decoder__new(uint32_t num_cpu, struct cs_etm_decoder_params *d_params, struct cs_etm_trace_params t_params[]) |
| 79 | +{ |
| 80 | + (void) num_cpu; |
| 81 | + (void) d_params; |
| 82 | + (void) t_params; |
| 83 | + return NULL; |
| 84 | +} |
| 85 | + |
| 86 | + |
| 87 | +void cs_etm_decoder__free(struct cs_etm_decoder *decoder) |
| 88 | +{ |
| 89 | + (void) decoder; |
| 90 | + return; |
| 91 | +} |
0 commit comments