commit | da87360d802dab7b9d6af4ad549b96b849aebbaa | [log] [tgz] |
---|---|---|
author | Neill Kapron <nkapron@google.com> | Wed Jul 31 19:15:12 2024 +0000 |
committer | Neill Kapron <nkapron@google.com> | Wed Jul 31 19:15:12 2024 +0000 |
tree | 6f5828583967f74fc70b56a7e1664ba45f08b5a2 | |
parent | 20ccfedce79b1e74a2884529300c9e2198b03852 [diff] |
BPF: timeInState: fix possible bad data accounting The bpf_get_current_uid_gid helper returns a 64bit value or -EINVAL in the error case. This patch handles the error case by skipping time accounting. The error case should only occur if something bad happend in the kernel and there is a problem with the task struct. Bug: 355147109 Test: treehugger Change-Id: I74a0c0b19ac06754815abad1d21c98c950878d6b Signed-off-by: Neill Kapron <nkapron@google.com>