| 124 | } |
| 125 | |
| 126 | static void trace_write(struct trace_key *key, const void *buf, unsigned len) |
| 127 | { |
| 128 | if (write_in_full(get_trace_fd(key, NULL), buf, len) < 0) { |
| 129 | warning("unable to write trace for %s: %s", |
| 130 | key->key, strerror(errno)); |
| 131 | trace_disable(key); |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | void trace_verbatim(struct trace_key *key, const void *buf, unsigned len) |
| 136 | { |
no test coverage detected