1// Copyright 2020 The ChromiumOS Authors 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5syntax = "proto3"; 6 7message VirtioBalloonResize {} 8 9message VirtioBalloonOOMDeflation {} 10 11message VirtioWsBucket { 12 // age of bucket in milliseconds. 13 uint64 age = 1; 14 // file-back memory, in bytes. 15 uint64 file_bytes = 2; 16 // anonymous memory, in bytes. 17 uint64 anon_bytes = 3; 18} 19 20message VirtioBalloonWsReport { 21 // 2-16 buckets of memory working set. 22 repeated VirtioWsBucket ws_buckets = 1; 23 // actual size of balloon in bytes. 24 uint64 balloon_actual = 2; 25} 26 27message RegisteredEvent { 28 oneof Event { 29 VirtioBalloonResize resize = 1; 30 VirtioBalloonOOMDeflation oom_deflation = 2; 31 VirtioBalloonWsReport ws_report = 3; 32 } 33} 34