trace.py (5860:68c52fee5a53) | trace.py (5873:67a6ea624776) |
---|---|
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 --- 14 unchanged lines hidden (view full) --- 23# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26# 27# Authors: Nathan Binkert 28 29import internal 30import traceflags as flags | 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 --- 14 unchanged lines hidden (view full) --- 23# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26# 27# Authors: Nathan Binkert 28 29import internal 30import traceflags as flags |
31import util |
|
31 32from internal.trace import clear, output, set, ignore 33 34def enable(): 35 internal.trace.cvar.enabled = True 36 37def help(): 38 print "Base Flags:" | 32 33from internal.trace import clear, output, set, ignore 34 35def enable(): 36 internal.trace.cvar.enabled = True 37 38def help(): 39 print "Base Flags:" |
39 for flag in trace.flags.basic: 40 print " %s: %s" % (flag, trace.flags.descriptions[flag]) | 40 for flag in flags.basic: 41 print " %s: %s" % (flag, flags.descriptions[flag]) |
41 print 42 print "Compound Flags:" | 42 print 43 print "Compound Flags:" |
43 for flag in trace.flags.compound: | 44 for flag in flags.compound: |
44 if flag == 'All': 45 continue | 45 if flag == 'All': 46 continue |
46 print " %s: %s" % (flag, trace.flags.descriptions[flag]) 47 print_list(trace.flags.compoundMap[flag], indent=8) | 47 print " %s: %s" % (flag, flags.descriptions[flag]) 48 util.print_list(flags.compoundMap[flag], indent=8) |
48 print | 49 print |