Project

General

Profile

Bug #648 » simple.c

The simple project (257 case) - Daniel U. Thibault, 02/28/2014 04:54 PM

 
#include <stdio.h> //For printf
#include <unistd.h>

#include "simpletp.h"

int main(int argc, char **argv)
{
int i = 0;
char themessage[22]; //Can hold up to "Hello World 10000 999\0"

fprintf(stderr, "sample starting\n");
// for (i = 0; i < 10000; i++) {
for (i = 0; i < 1; i++) {
//254 char name event
sprintf(themessage, "Hello World %u %u", i, 254);
tracepoint(simpletp,
event____20________30________40________50________60________70________80________90_______100_______110_______120_______130_______140_______150_______160_______170_______180_______190_______200_______210_______220_______230_______240_______250___4,
themessage);
//255 char name event
sprintf(themessage, "Hello World %u %u", i, 255);
tracepoint(simpletp,
event____20________30________40________50________60________70________80________90_______100_______110_______120_______130_______140_______150_______160_______170_______180_______190_______200_______210_______220_______230_______240_______250____5,
themessage);
//256 char name event
sprintf(themessage, "Hello World %u %u", i, 256);
tracepoint(simpletp,
event____20________30________40________50________60________70________80________90_______100_______110_______120_______130_______140_______150_______160_______170_______180_______190_______200_______210_______220_______230_______240_______250_____6,
themessage);
//257 char name event
sprintf(themessage, "Hello World %u %u", i, 257);
tracepoint(simpletp,
event____20________30________40________50________60________70________80________90_______100_______110_______120_______130_______140_______150_______160_______170_______180_______190_______200_______210_______220_______230_______240_______250______7,
themessage);
// i);
usleep(1);
}
fprintf(stderr, "sample done\n");
return 0;
}
(4-4/4)