Use BufferExhaustedPolicy::kStall in perfetto_hprof.

Test: setenforce 0; profile system_server; no data loss.

Change-Id: Ibb593dc64a62ef165c04f9d7b71a3e8d2fe8087d
diff --git a/perfetto_hprof/perfetto_hprof.cc b/perfetto_hprof/perfetto_hprof.cc
index edff9da..32d45fa 100644
--- a/perfetto_hprof/perfetto_hprof.cc
+++ b/perfetto_hprof/perfetto_hprof.cc
@@ -110,6 +110,8 @@
 
 class JavaHprofDataSource : public perfetto::DataSource<JavaHprofDataSource> {
  public:
+  constexpr static perfetto::BufferExhaustedPolicy kBufferExhaustedPolicy =
+    perfetto::BufferExhaustedPolicy::kStall;
   void OnSetup(const SetupArgs& args) override {
     // This is on the heap as it triggers -Wframe-larger-than.
     std::unique_ptr<perfetto::protos::pbzero::JavaHprofConfig::Decoder> cfg(