Revisão | 2d894e48362ad2a576fca929dcca1787f43a8af6 (tree) |
---|---|
Hora | 2018-12-14 02:50:45 |
Autor | Peter Maydell <peter.maydell@lina...> |
Commiter | Peter Maydell |
Merge remote-tracking branch 'remotes/stefanha/tags/tracing-pull-request' into staging
Pull request
Minor tracing improvements.
# gpg: Signature made Wed 12 Dec 2018 10:15:30 GMT
# gpg: using RSA key 9CA4ABB381AB73C8
# gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>"
# gpg: aka "Stefan Hajnoczi <stefanha@gmail.com>"
# Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35 775A 9CA4 ABB3 81AB 73C8
* remotes/stefanha/tags/tracing-pull-request:
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
@@ -39,7 +39,7 @@ def generate_h(event, group): | ||
39 | 39 | ' struct timeval _now;', |
40 | 40 | ' gettimeofday(&_now, NULL);', |
41 | 41 | ' qemu_log("%%d@%%zu.%%06zu:%(name)s " %(fmt)s "\\n",', |
42 | - ' getpid(),', | |
42 | + ' qemu_get_thread_id(),', | |
43 | 43 | ' (size_t)_now.tv_sec, (size_t)_now.tv_usec', |
44 | 44 | ' %(argnames)s);', |
45 | 45 | ' }', |
@@ -169,9 +169,9 @@ static gpointer writeout_thread(gpointer opaque) | ||
169 | 169 | wait_for_trace_records_available(); |
170 | 170 | |
171 | 171 | if (g_atomic_int_get(&dropped_events)) { |
172 | - dropped.rec.event = DROPPED_EVENT_ID, | |
172 | + dropped.rec.event = DROPPED_EVENT_ID; | |
173 | 173 | dropped.rec.timestamp_ns = get_clock(); |
174 | - dropped.rec.length = sizeof(TraceRecord) + sizeof(uint64_t), | |
174 | + dropped.rec.length = sizeof(TraceRecord) + sizeof(uint64_t); | |
175 | 175 | dropped.rec.pid = trace_pid; |
176 | 176 | do { |
177 | 177 | dropped_count = g_atomic_int_get(&dropped_events); |