From 9aea847f5891214f456cc9d6e173d7fbb1a30c0a Mon Sep 17 00:00:00 2001 From: Chris Emmons Date: Thu, 1 Dec 2011 00:15:26 -0800 Subject: VNC: Add support for capturing frame buffer to file each time it is changed. When a change in the frame buffer from the VNC server is detected, the new frame is stored out to the m5out/frames_*/ directory. Specifiy the flag "--frame-capture" when running configs/example/fs.py to enable this behavior. --HG-- extra : rebase_source : d4e08e83f4fa6ff79f3dc9c433fc1f0487e057fc --- configs/example/fs.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'configs/example/fs.py') diff --git a/configs/example/fs.py b/configs/example/fs.py index b8f50fc90..5945e5d9b 100644 --- a/configs/example/fs.py +++ b/configs/example/fs.py @@ -72,6 +72,10 @@ parser.add_option("--timesync", action="store_true", # System options parser.add_option("--kernel", action="store", type="string") parser.add_option("--script", action="store", type="string") +parser.add_option("--frame-capture", action="store_true", + help="Stores changed frame buffers from the VNC server to compressed "\ + "files in the gem5 output directory") + if buildEnv['TARGET_ISA'] == "arm": parser.add_option("--bare-metal", action="store_true", help="Provide the raw system without the linux specific bits") @@ -205,4 +209,7 @@ else: if options.timesync: root.time_sync_enable = True +if options.frame_capture: + VncServer.frame_capture = True + Simulation.run(options, root, test_sys, FutureClass) -- cgit v1.2.3