This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
This should show the behavior: 12215.sh stap 12215.sh gdb
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
main ()
{
char *abc = "abcdefghijklmnopqrstuvwxyz";
char *xyz = "zyxwvutsrqpomnlkjihgfedcba";
int x;
struct timeval tp;
struct timezone tzp;
gettimeofday (&tp, &tzp);
printf ("length %d %s %d%d\n", strlen(abc), abc, tp.tv_sec, tp.tv_usec);
printf ("length %d %s\n", strlen(xyz), xyz);
puts ("a string");
return 0;
}
Attachment:
12215.sh
Description: application/shellscript
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |