diff options
author | Gabe Black <gabeblack@google.com> | 2017-07-31 15:31:38 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2017-08-02 20:42:13 +0000 |
commit | 7a11f5417b612241a69f9afa20b219c4a9d1dc6d (patch) | |
tree | 80a5a43ba355bccd12f368e90bd3458f24f01f58 /LICENSE | |
parent | 21fab2cff5cd5bd40e8b7bd21215bea83c543991 (diff) | |
download | gem5-7a11f5417b612241a69f9afa20b219c4a9d1dc6d.tar.xz |
base: Give more information when setting up asynchronous IO fails.
When asynchronous IO fails, gem5 currently just says it failed and quits, and
doesn't give any more information about which step failed, or what
specifically about it failed.
This change adds two helpers which will attempt the fcntl, check for error
conditions, and in the event of a failure, include a message describing the
error code and what the arguments to fcntl were.
Change-Id: I316478172ab2aefd3788279dbc12744791385cd5
Reviewed-on: https://gem5-review.googlesource.com/4320
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions