summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBrian Norris <briannorris@chromium.org>2025-09-25 12:42:14 -0700
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2025-09-27 13:41:47 +0200
commit7f7acd193ba8aaa8ed07cfadc335bb17a991fd42 (patch)
treec756cc9784465c0342af286c519005c4422aa9bf /tools/perf/scripts/python
parent927f3e85015285ff68789bd00aa66b071016b27f (diff)
PM: runtime: Add basic kunit tests for API contracts
In exploring the various return codes and failure modes of runtime PM APIs, I found it helpful to verify and codify many of them in unit tests, especially given that even the kerneldoc can be rather complex to reason through, and it also has had subtle errors of its own. Notably, I avoid testing the return codes for pm_runtime_put() and pm_runtime_put_autosuspend(), since code that checks them is probably wrong, and we're considering making them return 'void' altogether. I still test the sync() variants, since those have a bit more meaning to them. Signed-off-by: Brian Norris <briannorris@chromium.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions