OSDN Git Service

trace: simplify trace_mem functions
authorEmilio G. Cota <cota@braap.org>
Tue, 22 May 2018 22:26:49 +0000 (18:26 -0400)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 27 Jun 2018 10:09:24 +0000 (11:09 +0100)
commit3d69b95e5e2ef4c5acfa2b2aaa93e2fad9eeeaa1
treedd21bd0826c8e9fe2d6ced7bc282ec6d128f43e5
parent32c072341f0d17ddc7443bd4c0adb9d2ed55fbd4
trace: simplify trace_mem functions

Add some defines for the mem_info bits, simplify
trace_mem_build_info, and also simplify trace_mem_get_info
by making it a wrapper around trace_mem_build_info.

This paves the way for increasing size_shift by one bit.

Signed-off-by: Emilio G. Cota <cota@braap.org>
Message-id: 1527028012-21888-3-git-send-email-cota@braap.org
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
trace/mem-internal.h
trace/mem.h