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 traceflags as flags 31import util 32 33from internal.trace import clear, output, set, ignore 34 |
35def disable(): 36 internal.trace.cvar.enabled = False 37 |
38def enable(): 39 internal.trace.cvar.enabled = True 40 41def help(): 42 print "Base Flags:" 43 for flag in flags.basic: 44 print " %s: %s" % (flag, flags.descriptions[flag]) 45 print 46 print "Compound Flags:" 47 for flag in flags.compound: 48 if flag == 'All': 49 continue 50 print " %s: %s" % (flag, flags.descriptions[flag]) 51 util.print_list(flags.compoundMap[flag], indent=8) 52 print |