How to Use FIFO(IPC meachanism) on QNX #560
|
Hello Team, I want to install dlt-daemon with FIFO on QNX, so how to do it? which flags has to set in cmakelists while cross compiling dlt on linux? what permissions are needed for FIFO file because currently after running dlt-daemon binary on QNX then I faced this issue: DLT How to resolve this? |
Replies: 12 comments 2 replies
|
Hello @Vishalwagh05 I afraid this issue from yours is actually out of our scope.
Regards |
|
@minminlittleshrimp Actually issue is with security policies of QNX so after changing those policies now I am able to run dlt-daemon on QNX... but now when I just running simple DLT_Daemon code on QNX then I faced this issue: [ 1196.742587] so @minminlittleshrimp you have any idea about it then please suggest me.... |
|
Hello @Vishalwagh05 Line 1095 in f74e548 |
|
Hello @minminlittleshrimp, Yes it is not related to FIFO QNX. |
|
Hello, |
|
Hello @minminlittleshrimp , Yes I build this with libdlt. |
|
I do not think this is an issue, since the setting up and testing on our side. |
|
Transfer to discussion, please notice. |
|
Hello @minminlittleshrimp ,Because of FIFO issue, I am configuring dlt-daemon with UNIX_SOCKET only.
|
|
Hello @minminlittleshrimp , But I didn't want to run with FIFO because with UNIX_SOCKET its working. But as i mentioned I face issue when running example after running "./dlt-daemon -d" binary. |
|
Hello @Vishalwagh05 |
Hello @Vishalwagh05
After a deep studying of libdlt and dlt-daemon IPC, I could point our my insight here. For QNX, due to the situation of a complex pid tree with many parents and their childs forked from, pids are not unique anymore. dlt FIFO named pipes will be created for each user based on their pid, this would not be allowed since dlt needs then do a lot of reregistration for the same Appid/Ctxid causing locking and decrease performance. Hence, dlt currently still does not support FIFO on the QNX neutrino microkernel. So, Unix socket is better here and is a recommendation for logging with dlt on this RTOS.
Regards