summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2017-03-08 10:36:59 -0500
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2017-03-08 10:41:37 -0500
commitf7c6401ff84ab8ffffc281a29aa0a787f7eb346e (patch)
tree8d90ead71336f264f58014f6b264cfb7f6d485b4 /tools/perf/scripts/python
parent99c014a87979c9244806685f3c3fc7767f79f645 (diff)
downloadkernel-f7c6401ff84ab8ffffc281a29aa0a787f7eb346e.tar.gz
ktest: Make sure wait_for_input does honor the timeout
The function wait_for_input takes in a timeout, and even has a default timeout. But if for some reason the STDIN descriptor keeps sending in data, the function will never time out. The timout is to wait for the data from the passed in file descriptor, not for STDIN. Adding a test in the case where there's no data from the passed in file descriptor that checks to see if the timeout passed, will ensure that it will timeout properly even if there's input in STDIN. Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
ap: Convert remaining READ_ONCE() to rcu_dereference_check()Toke Høiland-Jørgensen 2021-06-29Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski 2021-06-24xdp: Add proper __rcu annotations to redirect map entriesToke Høiland-Jørgensen 2021-06-22bpf: Fix integer overflow in argument calculation for bpf_map_area_allocBui Quang Minh 2021-05-28bpf, devmap: Remove drops variable from bq_xmit_all()Hangbin Liu 2021-05-26xdp: Extend xdp_redirect_map with broadcast supportHangbin Liu 2021-05-26bpf: Run devmap xdp_prog on flush instead of bulk enqueueJesper Dangaard Brouer 2021-05-24bpf: Fix spelling mistakesZhen Lei