| { |
| select: { |
| contiguous_allocations_failed: "INSPECT:bootstrap/driver_manager:root/sysmem/heaps/SysmemContiguousPool:allocations_failed", |
| protected_allocations_failed: "INSPECT:bootstrap/driver_manager:root/sysmem/heaps/SysmemAmlogicProtectedPool:allocations_failed", |
| tee_secure_allocations_failed: "INSPECT:bootstrap/driver_manager:root/sysmem/heaps/tee_secure:allocations_failed", |
| contiguous_size: "INSPECT:bootstrap/driver_manager:root/sysmem/heaps/SysmemContiguousPool:size", |
| protected_size: "INSPECT:bootstrap/driver_manager:root/sysmem/heaps/SysmemAmlogicProtectedPool:size", |
| contiguous_high_water: "INSPECT:bootstrap/driver_manager:root/sysmem/heaps/SysmemContiguousPool:high_water_mark", |
| protected_high_water: "INSPECT:bootstrap/driver_manager:root/sysmem/heaps/SysmemAmlogicProtectedPool:high_water_mark", |
| }, |
| eval: { |
| contiguous_high_water_ratio: "contiguous_high_water / contiguous_size", |
| protected_high_water_ratio: "protected_high_water / protected_size", |
| }, |
| act: { |
| contiguous_failed: { |
| type: "Warning", |
| trigger: "contiguous_allocations_failed > 0", |
| print: "The sysmem contiguous pool has run out of memory at some point", |
| file_bug: "Graphics", |
| }, |
| protected_failed: { |
| type: "Warning", |
| trigger: "protected_allocations_failed > 0", |
| print: "The sysmem amlogic protected pool has run out of memory at some point", |
| file_bug: "Graphics", |
| }, |
| tee_secure_failed: { |
| type: "Warning", |
| trigger: "tee_secure_allocations_failed > 0", |
| print: "The sysmem amlogic tee secure pool has run out of memory at some point", |
| file_bug: "Graphics", |
| }, |
| contiguous_high_water_ratio: { |
| type: "Gauge", |
| value: "contiguous_high_water_ratio", |
| format: "percentage", |
| }, |
| protected_high_water_ratio: { |
| type: "Gauge", |
| value: "protected_high_water_ratio", |
| format: "percentage", |
| }, |
| }, |
| test: { |
| all_ok: { |
| no: [ |
| "contiguous_failed", |
| "protected_failed", |
| "tee_secure_failed", |
| ], |
| yes: [], |
| values: { |
| contiguous_allocations_failed: 0, |
| protected_allocations_failed: 0, |
| tee_secure_allocations_failed: 0, |
| }, |
| }, |
| all_failed: { |
| no: [], |
| yes: [ |
| "contiguous_failed", |
| "protected_failed", |
| "tee_secure_failed", |
| ], |
| values: { |
| contiguous_allocations_failed: 1, |
| protected_allocations_failed: 1, |
| tee_secure_allocations_failed: 1, |
| }, |
| }, |
| }, |
| } |