• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂2d894e48362ad2a576fca929dcca1787f43a8af6 (tree)
時間2018-12-14 02:50:45
作者Peter Maydell <peter.maydell@lina...>
CommiterPeter Maydell

Log Message

Pull request

Minor tracing improvements.
-----BEGIN PGP SIGNATURE-----

iQEcBAABAgAGBQJcEN/CAAoJEJykq7OBq3PIgcYH/3Ied2sy1Gnhj4m6sTD2CB0y
frYFxQWcLhze49son68NvTlSGQK0U2nSBnHYBJb8O3Dkc1RvBZ0nKWdvodOTrX4k
G5h2UaFsvKaMcH8KMk+9/euBXR+EYJB/vwXMRsoaoZAXmyHd5hDjr/ChzTLBl555
UYcTxKHEIyhnXWqlnTC0x7IvLJtpiW1RJ2erLzU6CFaeBFITDqlaIqCsKlU+wP77
WFqF5hgG7Pm6RnnI8JFBuy3pJOyOY4Z3wwcpvoMzdEny1V4qRmf82gbEo5DSQE/K
QTWJ+BcgUHxj2JYcgC68lcxrZ+PQjIgfQ0JJr7IXJDdhdWsE9QuIG/CBgPS1ERg=
=vh4V
-----END PGP SIGNATURE-----

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:

trace: simple style changes
tracetool: Include thread id information in log backend

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

Change Summary

差異

--- a/scripts/tracetool/backend/log.py
+++ b/scripts/tracetool/backend/log.py
@@ -39,7 +39,7 @@ def generate_h(event, group):
3939 ' struct timeval _now;',
4040 ' gettimeofday(&_now, NULL);',
4141 ' qemu_log("%%d@%%zu.%%06zu:%(name)s " %(fmt)s "\\n",',
42- ' getpid(),',
42+ ' qemu_get_thread_id(),',
4343 ' (size_t)_now.tv_sec, (size_t)_now.tv_usec',
4444 ' %(argnames)s);',
4545 ' }',
--- a/trace/simple.c
+++ b/trace/simple.c
@@ -169,9 +169,9 @@ static gpointer writeout_thread(gpointer opaque)
169169 wait_for_trace_records_available();
170170
171171 if (g_atomic_int_get(&dropped_events)) {
172- dropped.rec.event = DROPPED_EVENT_ID,
172+ dropped.rec.event = DROPPED_EVENT_ID;
173173 dropped.rec.timestamp_ns = get_clock();
174- dropped.rec.length = sizeof(TraceRecord) + sizeof(uint64_t),
174+ dropped.rec.length = sizeof(TraceRecord) + sizeof(uint64_t);
175175 dropped.rec.pid = trace_pid;
176176 do {
177177 dropped_count = g_atomic_int_get(&dropped_events);