[Gems-users] about PROFILE_ALL_INSTRUCTIONS


Date: Mon, 8 Mar 2010 14:01:48 +0800
From: lori zhuang <lorizhuang@xxxxxxxxx>
Subject: [Gems-users] about PROFILE_ALL_INSTRUCTIONS
Hi all,
      I'm running protocol MOESI_CMP_directory_m, and PROFILE_ALL_INSTRUCTIONS is configured as true. Because I think instructions that cause L1 miss in the fast path will be dumped with PROFILE_ALL_INSTRUCTIONS set true. Is that right?
      Instructions profiled is here:

Hot Instructions
    702 Total_entries_pc_address: 43596
    703 Total_Instructions_pc_address: 5394104
    704 total | load store atomic | user supervisor | sharing | touched-by
    705 pc_address | 0.866539 % [0x13d56e80, line 0x13d56e80] 46742 | 0 0 0 | 46742 0 | 0 | 1
    706 pc_address | 0.866205 % [0x13d56e78, line 0x13d56e40] 46724 | 0 0 0 | 46724 0 | 0 | 1
    707 pc_address | 0.866168 % [0x13d56e74, line 0x13d56e40] 46722 | 0 0 0 | 46722 0 | 0 | 1
    708 pc_address | 0.866168 % [0x13d56e7c, line 0x13d56e40] 46722 | 0 0 0 | 46722 0 | 0 | 1
    709 pc_address | 0.866168 % [0x13d56e84, line 0x13d56e80] 46722 | 0 0 0 | 46722 0 | 0 | 1
    710 pc_address | 0.866168 % [0x13d56e8c, line 0x13d56e80] 46722 | 0 0 0 | 46722 0 | 0 | 1

    I try to find the soucecode line corresponding to the address 0x13d56e80 with gdb like below, but some error happened. Does someone know what's going wrong?
# gdb clamscan                                                                  
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.10"...

(gdb) start ./ -r
Breakpoint 1 at 0x15850: file clamscan.c, line 84.
Starting program: /usr/local/bin/clamscan ./ -r
warning: Lowest section in /lib/libpthread.so.1 is .dynamic at 00000074
main (argc=7168, argv=0xfefb5800) at clamscan.c:84
84          sigemptyset(&sigset);

(gdb) break *0x13d56e80
Breakpoint 2 at 0x13d56e80
(gdb) info breakpoints 
Num     Type           Disp Enb Address    What
2       breakpoint     keep y   0x13d56e80

(gdb) c
Continuing.
Warning:
Cannot insert breakpoint 2.
Error accessing memory address 0x13d56e80: I/O error.


Thanks,
lori zhuang

[← Prev in Thread] Current Thread [Next in Thread→]
  • [Gems-users] about PROFILE_ALL_INSTRUCTIONS, lori zhuang <=