trousers: report command and response

Report the command and response along with client information to
metrics.

BUG=b:255259831
TEST=build
TEST=tpm_manager_client read_space --index=0x00123456 --file=/tmp/123 \
     2>/dev/null; grep -a TPM1 /var/lib/metrics/uma-events

Cq-Depend: chromium:3966091
Change-Id: I73ae26b942270ae2d2a8454043d8f21494dc8ac7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/trousers/+/4005806
Reviewed-by: Maksim Ivanov <emaxx@chromium.org>
Tested-by: Ching-Kang Yen <chingkang@chromium.org>
Commit-Queue: Ching-Kang Yen <chingkang@chromium.org>
Reviewed-by: Yi Chou <yich@google.com>
3 files changed