generated from oracle/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Partha Sarathi Satapathy <[email protected]> Signed-off-by: Siddhi Katage <[email protected]>
- Loading branch information
1 parent
398a1e9
commit 65ddb41
Showing
2 changed files
with
176 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
# Copyright (c) 2023, Oracle and/or its affiliates. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ | ||
from drgn.helpers.linux.pid import find_task | ||
from drgn.helpers.linux.pid import for_each_task | ||
|
||
from drgn_tools import task | ||
|
||
|
||
def test_task_last_runtime(prog): | ||
task.show_tasks_last_runtime(for_each_task(prog)) | ||
tasks = for_each_task(prog) | ||
|
||
task.show_tasks_last_runtime(tasks) | ||
task.show_taskinfo(prog, tasks) | ||
task.get_rss(prog, find_task(prog, 1)) |