C++ 如何解决此未解决的断点警告?
我在另一个.c程序中获得startinterruptime,并在上面的程序中使用该时间戳来计算两者之间的差异(即中断延迟)。我在调试程序时收到以下警告,并且EndInterruptTime将为零,但start interrupt具有双倍值C++ 如何解决此未解决的断点警告?,c++,c,arrays,string,qnx,C++,C,Arrays,String,Qnx,我在另一个.c程序中获得startinterruptime,并在上面的程序中使用该时间戳来计算两者之间的差异(即中断延迟)。我在调试程序时收到以下警告,并且EndInterruptTime将为零,但start interrupt具有双倍值 int id1; //variables used in the isr should be volatile int chid; void *ConfigureISR(void) //void *ISR (void *arg) { /*
int id1; //variables used in the isr should be volatile
int chid;
void *ConfigureISR(void) //void *ISR (void *arg)
{
/* the software must tell the OS that it wishes to associate the ISR with a particular source of interrupts
* / * On x86 platforms, there are generally 16 hardware Interrupt Request lines (IRQs) */
StartInterruptTime = GetTimeStamp(); //startTime of the interrupt
// volatile int irq = 11; //0 : A clock that runs at the resolution set by ClockPeriod()
// InterruptEnable();
ThreadCtl (_NTO_TCTL_IO, NULL); // enables the hardware interrupt
// Initialize event structure
//
// Setup COID and event
//
/* Tell the kernel to attach an interrupt signal event to this thread */
// chid = ChannelCreate( 0 );
SIGEV_INTR_INIT( &event);
//id1 = InterruptAttach(0, ISR, NULL, 0, 0); // ISR is the interrupt service routine
id1 = InterruptAttach(_NTO_INTR_CLASS_SYNTHETIC, ISR, NULL, 0, 0);
if (id1 == -1)
{
fprintf(stderr, "can't attach to IRQ\n");
perror (NULL);
exit (EXIT_FAILURE);
}
while(1)
{
InterruptWait(NULL, NULL);
}
EndInterruptTime = GetTimeStamp();
InterruptLatency = (EndInterruptTime - StartInterruptTime);
printf("Inerrupt latency is %llu",InterruptLatency); //I am getting warning
measurements[17] = InterruptLatency;
}
警告:此行有多个标记
-未解析断点
谁能帮我一下吗?好的。如果
InterruptLatency
类型不是int64\u t
使用此printf(“中断延迟为%lu”,InterruptLatency)代码>
事实上,在pintf中使用正确类型的InterruptLatency
(“inrupt latency是%type\u of\u InterruptLatency”,InterruptLatency)代码>数据类型:uint64\t中断延迟;uint64_t测量[32];那么我应该像你说的那样使用吗?你测试输出cout Replaceid1=InterruptAttach(\u NTO\u INTR\u CLASS\u SYNTHETIC,ISR,NULL,0,0)代码>带有id1=InterruptAttach(\u NTO\u INTR\u CLASS\u SYNTHETIC,&ISR,NULL,0,0)代码>和InterruptLatency=(EndInterruptTime-startinterruptime)
和InterruptLatency=(double)(endinterruptime-startinterruptime)
。
WARNING : Multiple markers at this line
- Unresolved breakpoint