add a very basic tracee to ease debugging of the tracer
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
CC=gcc
|
||||
CFLAGS=-Wall -g -pthread -DT_TRACER -DT_USE_SHARED_MEMORY -I.
|
||||
|
||||
PROG=tracee
|
||||
OBJS=tracee.o ../T.o
|
||||
|
||||
$(PROG): $(OBJS)
|
||||
$(CC) $(CFLAGS) -o $(PROG) $(OBJS) -lrt
|
||||
|
||||
tracee.o: tracee.c
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
clean:
|
||||
rm -f *.o $(PROG) core
|
||||
@@ -0,0 +1 @@
|
||||
this is a very basic tracee, used to debug the tracer
|
||||
@@ -0,0 +1,16 @@
|
||||
#include "../T.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
int frame = 0;
|
||||
T_connect_to_tracer("127.0.0.1", 2020);
|
||||
while (1) {
|
||||
getchar();
|
||||
T(T_PUCCH_1AB_IQ, T_INT(0), T_INT(0), T_INT(frame), T_INT(0), T_INT(0), T_INT(0));
|
||||
frame++;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user