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? |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments 2 replies
-
Hello @Vishalwagh05 I afraid this issue from yours is actually out of our scope.
Regards |
Beta Was this translation helpful? Give feedback.
-
Okay thank you @minminlittleshrimp |
Beta Was this translation helpful? Give feedback.
-
@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.... |
Beta Was this translation helpful? Give feedback.
-
Hello @Vishalwagh05 Line 1095 in f74e548 |
Beta Was this translation helpful? Give feedback.
-
Hello @minminlittleshrimp, Yes it is not related to FIFO QNX. |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
Hello @minminlittleshrimp , Yes I build this with libdlt. |
Beta Was this translation helpful? Give feedback.
-
I do not think this is an issue, since the setting up and testing on our side. |
Beta Was this translation helpful? Give feedback.
-
Transfer to discussion, please notice. |
Beta Was this translation helpful? Give feedback.
-
Hello @minminlittleshrimp ,Because of FIFO issue, I am configuring dlt-daemon with UNIX_SOCKET only.
|
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Hello @Vishalwagh05 |
Beta Was this translation helpful? Give feedback.
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