trace.py (5873:67a6ea624776) trace.py (5879:e9f9c0f7e5f0)
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
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
35def enable():
36 internal.trace.cvar.enabled = True
37
38def help():
39 print "Base Flags:"
40 for flag in flags.basic:
41 print " %s: %s" % (flag, flags.descriptions[flag])
42 print
43 print "Compound Flags:"
44 for flag in flags.compound:
45 if flag == 'All':
46 continue
47 print " %s: %s" % (flag, flags.descriptions[flag])
48 util.print_list(flags.compoundMap[flag], indent=8)
49 print
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