OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """ Post-process Oprofile logs for x86-64 nexes running under sel_ldr. | 6 """ Post-process Oprofile logs for x86-64 nexes running under sel_ldr. |
7 | 7 |
8 Maps event counts in the "anon" region, to the appropriate addresses | 8 Maps event counts in the "anon" region, to the appropriate addresses |
9 in the nexe assembly. "Anon" represents the untrusted sandbox. | 9 in the nexe assembly. "Anon" represents the untrusted sandbox. |
10 | 10 |
11 This will become unnecessary once we get immutable files for our .nexe | 11 This will become unnecessary once we get immutable files for our .nexe |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 else: | 477 else: |
478 print 'Need assembly file(%s) and oprofile log(%s)!' \ | 478 print 'Need assembly file(%s) and oprofile log(%s)!' \ |
479 % (assembly_file, oprof_log) | 479 % (assembly_file, oprof_log) |
480 sys.exit(1) | 480 sys.exit(1) |
481 except getopt.GetoptError, err: | 481 except getopt.GetoptError, err: |
482 print str(err) | 482 print str(err) |
483 sys.exit(1) | 483 sys.exit(1) |
484 | 484 |
485 if __name__ == '__main__': | 485 if __name__ == '__main__': |
486 main(sys.argv) | 486 main(sys.argv) |
OLD | NEW |