History log of /external/perfetto/src/tracing/test/fake_packet.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3cbb10a30c000fcd2cd4658dd215778422c7bbb1 10-Apr-2018 Primiano Tucci <primiano@google.com> Remove warning suppressions and fix many casting bugs

This change removes most warning suppressions, in particular
from production code. In the past we inherit a bunch of -Wno-xxx
suppressions required to build gtest and libprotobuf headers.
Doing so, however, caused the suppressions to propagate back to
the translation units that were including any protobuf header
or any auto-generated .pb.h stub.
This change moves the gtest and probobuf header to be a
system include (-isystem vs -I). Doing so implicitly blacklists
any compiler warning on the headers.
This CL then re-enables warnings and deals with the fall out of
fixes that came out of this.

Bug: 77316877
Test: pefetto_unittests / perfetto_integrationtests
Change-Id: I3a01852ebf7d0b9bf19658ddf117209d129c70be
/external/perfetto/src/tracing/test/fake_packet.h
7b14f6565cb61ee17b4b8937073f5245e757af56 06-Apr-2018 Primiano Tucci <primiano@google.com> Make the traced service robust against corrupted packets

This is an important stability fix for a bug discovered as
part of b/77636740. b/77636740 contained two separate bugs:
1) probes_producer occasionally emitting malformed packets.
This has been fixed as part of aosp/656659
2) traced crashes in presesence of such corrupted packets.
This is being fixed here.
Traced should never crash in presence of corrupted packets,
as malicious producers might forge them.
In this case the crash was due to hitting a CHECK.

Bug: 77636740
Test: perfetto_unittests --gtest_filter=TraceBufferTest.*
Change-Id: I031e60b0d69e257616e5d0440819255ff36556a7
/external/perfetto/src/tracing/test/fake_packet.h
6214c8fcc26c19f1b6c9f677d353988ee3d4fac1 27-Mar-2018 Hector Dearman <hjd@google.com> Rename TraceBuffez -> TraceBuffer

find src include test tools -name '*.cc' -o -name '*.h' | xargs sed -i 's/TraceBuffez/TraceBuffer/g'

Change-Id: I94c4ec489637b374b57b5b5f548bf3d8a209bdf2
/external/perfetto/src/tracing/test/fake_packet.h
09db827c202e5f23895ab278b7e360ba34152d77 08-Mar-2018 Primiano Tucci <primiano@google.com> TraceBuffer: minor cleanups

Minor cleanups in preparation for next CL.
The major changes introduced by this CL are:
- Intoduce a dedicated PatchList class
- Add uid support to TraceBuffer

Test: perfetto_unittests
Bug: 73612642
Change-Id: Id1c13e569b61e9265b79653598e81aed84064ecd
/external/perfetto/src/tracing/test/fake_packet.h
5c59901a5b3934c5eec083dd78645e093425d44b 01-Mar-2018 Primiano Tucci <primiano@google.com> TraceBuffer management

This CL introduces the initial logic for a proper
trace buffer than can handle reordering and gluing
trace packets. Most of the logic is commented in the
.h/.cc file.

Test: perfetto_unittest --gtest_filter=TraceBufferTest.*
Bug: 73612642
Change-Id: I8cf8515ad4c61c5ff85f24f23cd4ad7d5d04444b
/external/perfetto/src/tracing/test/fake_packet.h