diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-29 01:17:21 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-29 01:17:21 +0000 |
commit | b69a743bdec4fdfd9bd13a96b011c319ab131dc9 (patch) | |
tree | 40567c69747456578f60d9768867772590d2dd86 /power-libperfmgr/libperfmgr/include/perfmgr/FileNode.h | |
parent | 55ef46acd24c9bd702b7dac5601b7b97da2e165c (diff) | |
parent | c7395ef269b9d570aefe2559b3d4ad1e4d74ce76 (diff) | |
download | pixel-android14-d1-s2-release.tar.gz |
Snap for 10580647 from c7395ef269b9d570aefe2559b3d4ad1e4d74ce76 to udc-d1-releaseandroid-14.0.0_r9android-14.0.0_r8android-14.0.0_r7android-14.0.0_r6android-14.0.0_r5android-14.0.0_r4android-14.0.0_r3android-14.0.0_r12android-14.0.0_r11android-14.0.0_r10android14-d1-s7-releaseandroid14-d1-s6-releaseandroid14-d1-s5-releaseandroid14-d1-s4-releaseandroid14-d1-s3-releaseandroid14-d1-s2-releaseandroid14-d1-s1-releaseandroid14-d1-release
Change-Id: If9c204f8f435ec960525d16eb903f72a8d140fd5
Diffstat (limited to 'power-libperfmgr/libperfmgr/include/perfmgr/FileNode.h')
-rw-r--r-- | power-libperfmgr/libperfmgr/include/perfmgr/FileNode.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/power-libperfmgr/libperfmgr/include/perfmgr/FileNode.h b/power-libperfmgr/libperfmgr/include/perfmgr/FileNode.h index 5e97d276..bb8a2a79 100644 --- a/power-libperfmgr/libperfmgr/include/perfmgr/FileNode.h +++ b/power-libperfmgr/libperfmgr/include/perfmgr/FileNode.h @@ -33,7 +33,7 @@ class FileNode : public Node { public: FileNode(std::string name, std::string node_path, std::vector<RequestGroup> req_sorted, std::size_t default_val_index, bool reset_on_init, bool truncate, - bool hold_fd = false); + bool hold_fd = false, bool write_only = false); std::chrono::milliseconds Update(bool log_error) override; @@ -48,6 +48,8 @@ class FileNode : public Node { const bool hold_fd_; const bool truncate_; + // node will be read in DumpToFd + const bool write_only_; const std::chrono::milliseconds warn_timeout_; android::base::unique_fd fd_; }; |