Skip to content

Commit

Permalink
add threshold parameter to pmbench
Browse files Browse the repository at this point in the history
Signed-off-by: Bai Yu <[email protected]>
Reviewed-by: "Huang, Ying" <[email protected]>
Signed-off-by: Philip Li <[email protected]>
  • Loading branch information
Bai Yu authored and rli9 committed Jul 17, 2017
1 parent 1c8428e commit d49c079
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/pmbench
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# - offset
# - quiet
# - ratio
# - threshold

. "$LKP_SRC/lib/common.sh"

Expand All @@ -33,6 +34,7 @@ set_opt()
[ -n "$offset" ] && opt="${opt} -o${offset}"
parse_bool -q "$quiet" && opt="${opt} -q"
[ -n "$ratio" ] && opt="${opt} -r${ratio}"
[ -n "$threshold" ] && opt="${opt} -h${threshold}"
}

run_pmbench()
Expand Down
1 change: 1 addition & 0 deletions tests/pmbench.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ parameters:
offset: Specify static page access offset (default random)
quiet: [y, n] Don't produce any output until finish
ratio: Percentage read/write ratio (0 = write only, 100 = read only; default 50)
threshold: The threshold time to trigger the ftrace log, unit is ns.

results:
pmbench.latency.ns.average:
Expand Down

0 comments on commit d49c079

Please sign in to comment.