- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Copyright (C) 2000-2003 Intel Corporation. All rights reserved.
IA64_INST_RETIRED-THIS
14538 = Samples collected due to this event
900000 = Sample after value used during collection
13084200000 = Total events (samples*SAV)
CPU_CYCLES
8034 = Samples collected due to this event
900000 = Sample after value used during collection
7230600000 = Total events (samples*SAV)
#include
{
int i=0;
void func1();
void func2();
i++;
func1();
func2();
}
void func1() {
int a=0;
a++;
}
void func2() {
int a=0;
a++;
}
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You should be able to just use the '-g' option to include debug information. Have you tried that?
Message Edited by dlanders on 04-27-2004 04:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My gcc version:
[root@SDV900 root]# gcc -v
Reading specs from /usr/lib/gcc-lib/ia64-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-118.7.2)
I tried to recompile the program with -g like following:
gcc -g test.c -o test
However, I still get the same result.
Do youhave any idea for that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Basically, your application isn't doing enough to be noticed. :-} That is, it executes so fast, that the only samples collected in the whole process are in the kernel and runtime library. You can verify this by examining the output of 'vtl view' and noticing that the only modules reported for the application are vmlinux and ld-2.5.5.so, of something similar. So, actually, the analyzer is telling you that there are no samples to be displayed for the module you are specifying.
If you enhance your code to something like:
#include "string.h"
#define MAX_LOOP 2000
int main(void)
{
int i=0;
void func1();
void func2();
while (i < MAX_LOOP) {
i++;
func1();
func2();
}
}
void func1() {
int i;
char a[10000], b[10000];
for (i=0;i<10000;i++)
{
a = b*2;
}
}
void func2() {
int a=0;
a++;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am also having similar kind of problem, even though
I compile the code with -g option I am not getting the
function profile with hotspot option(-hf).
So I tried the modified code which you posted above,
but still I get the "No symbols were found" message.
Further insights to the problem will be appreciated
Thanks,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page