trace.py (8232:b28d06a175be) | trace.py (11153:20bbfe5b2b86) |
---|---|
1# Copyright (c) 2008 The Hewlett-Packard Development Company 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 18 unchanged lines hidden (view full) --- 27# Authors: Nathan Binkert 28 29import internal 30import util 31 32from internal.trace import output, ignore 33 34def disable(): | 1# Copyright (c) 2008 The Hewlett-Packard Development Company 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 18 unchanged lines hidden (view full) --- 27# Authors: Nathan Binkert 28 29import internal 30import util 31 32from internal.trace import output, ignore 33 34def disable(): |
35 internal.trace.cvar.enabled = False | 35 internal.trace.disable() |
36 37def enable(): | 36 37def enable(): |
38 internal.trace.cvar.enabled = True | 38 internal.trace.enable() |