summaryrefslogtreecommitdiff
path: root/util/stats
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2017-05-09 19:06:39 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2017-05-16 08:59:04 +0000
commit05c486c5ebf95cffc7435c16c45120a28c42b2fb (patch)
tree512b037d20232ff0a45fb4e9138f16eed2a351f5 /util/stats
parentf44ddb94a6f72fe1ef04739817ee2102cee36c0f (diff)
downloadgem5-05c486c5ebf95cffc7435c16c45120a28c42b2fb.tar.xz
python: Add a helper function to create Python events
Add a helper function, m5.event.create(), to create events from Python. This function takes a callable Python object (e.g., a function) as an argument and optionally a priority as a keyword argument. This function was accidentally dropped from the public API when switching to PyBind. Change-Id: Icbd0e392d9506934ec2c9f541199aa35c1c2df8c Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Curtis Dunham <curtis.dunham@arm.com> Reviewed-on: https://gem5-review.googlesource.com/3220 Reviewed-by: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'util/stats')
0 files changed, 0 insertions, 0 deletions