Hi,

we are testing the VPP TCP stack by using the following combination: A C++ 
application based on C++ gRPC with libvcl_ldpreload.

We use greeter_server and greeter_client from grpc/examples/cpp/helloworld 
taken from https://github.com/grpc/grpc.

The server and client use the eventfd()/eventfd2() system call which is not 
implemented in libvcl_ldpreload;
this seems to be a reason why the communication between the server and client 
does not work.

Could you please let me know whether I am right and if so, whether/when an 
implementation of eventfd is planned to be added to libvcl_ldpreload?

The attached file contains the client output.

Regards,
Peter

sudo -E bash -c 'export 
LD_PRELOAD=/home/palmar/dev/vpp/build-root/build-vpp_debug-native/vpp/.libs/libvcl_ldpreload.so.0.0.0;
 ./greeter_client'
[sudo] password for palmar: 
vppcom_app_create:1964: [3889] getenv 'VCL_CONFIG' failed!
open configuration file '/etc/vpp/vcl.conf' failed
vppcom_cfg_heapsize:1604: [3889] allocated VCL heap = 0x7fa1e8475000, size 
268435456 (0x10000000)
vppcom_cfg_read:1624: [3889] open configuration file '/etc/vpp/vcl.conf' failed!

Connecting to VPP api... connected!
vppcom_app_create:2063: [3889] sending session enable
vppcom_app_create:2074: [3889] sending app attach
vppcom_app_create:2086: [3889] app_name 'vcom-app-3889', my_client_index 0 (0x0)
vcom_socket_main_init

[3889] vcom_init...done!

[3889] vcom_constructor...done!
vppcom_epoll_create:3352: [3889] Created vep_idx 0 / sid 0!
[3889] epoll_create: '0006'='00080000'
[3889] vcom_socket_epoll_ctl_i: libc_epoll_ctl() returned 0
        epfd 6, vep_idx 0, fd 7 sid -1 op 1
        count 1, vcl_cnt 0, libc_cnt 1
[3889] epoll_ctl: '0000'='0006', '0001', '0007'
epfd='0006', vep_idx='00000000', type='EPOLL_TYPE_VPPCOM_BOUND       ', 
flags='524288', count='1', close='0'
vppcom_session_create:2136: [3889] sid 1
[3889][140333355050752 (0x7fa1e7c72700)] socket: '0008'= D='0010', T='0001', 
P='0000'
fd='0008', sid='00000001',type='SOCKET_TYPE_VPPCOM_BOUND      '
epfd='0006', vep_idx='00000000', type='EPOLL_TYPE_VPPCOM_BOUND       ', 
flags='524288', count='1', close='0'
vppcom_session_bind:2286: [3889] sid 1: binding to local IPv6 address 0.0.0.1 
port 0, proto TCP
[3889] bind: '0000'='0008', '0x7fa1e7c71800', '0028'
[3889] close: fd 8
vppcom_session_close:2172: [3889] vpp handle 0xffffffffffffffff, sid 1: closing 
session...
vppcom_session_close:2248: [3889] vpp handle 0xffffffffffffffff, sid 1: session 
removed.
[3889] close: vcom_close() returned 0
epfd='0006', vep_idx='00000000', type='EPOLL_TYPE_VPPCOM_BOUND       ', 
flags='524288', count='1', close='0'
vppcom_session_create:2136: [3889] sid 1
[3889][140333355050752 (0x7fa1e7c72700)] socket: '0008'= D='0010', T='0001', 
P='0000'
fd='0008', sid='00000001',type='SOCKET_TYPE_VPPCOM_BOUND      '
epfd='0006', vep_idx='00000000', type='EPOLL_TYPE_VPPCOM_BOUND       ', 
flags='524288', count='1', close='0'
[3889] setsockopt: '0000'='0008', '0041', '0026', '0x7fa1e7c718b4', '0004'
[3889] fcntl: '0002'='0008', '0003'
[3889] fcntl: '0000'='0008', '0004'
[3889] fcntl: '0000'='0008', '0001'
[3889] fcntl: '0000'='0008', '0002'
[3889] setsockopt: '0000'='0008', '0006', '0001', '0x7fa1e7c718b4', '0004'
[3889] connect: '-022'='0008', '0x7fa1e7c71930', '0028'
[3889] vcom_socket_epoll_ctl_i: vppcom_epoll_ctl() returned 0
        epfd 6, vep_idx 0, fd 8 sid 1 op 1
        count 2, vcl_cnt 1, libc_cnt 1
[3889] epoll_ctl: '0000'='0006', '0001', '0008'
[3889] shutdown: '0000'='0008', '0002'
[3889] close: fd 8
vppcom_session_close:2172: [3889] vpp handle 0xffffffffffffffff, sid 1: closing 
session...
vppcom_session_close:2248: [3889] vpp handle 0xffffffffffffffff, sid 1: session 
removed.
[3889] close: vcom_close() returned 0
14: Connect Failed
Greeter received: RPC failed
[3889] close: fd 6
[3889] close: vcom_close() returned 0
vcom_socket_main_destroy
vppcom_session_close:2169: [3889] vep_idx 0 / sid 0: closing epoll session...
vppcom_session_close:2245: [3889] vep_idx 0 / sid 0: epoll session removed.
vppcom_app_destroy:2102: [3889] detaching from VPP, my_client_index 0 (0x0)

[3889] vcom_destroy...done!

[3889] vcom_destructor...done!
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to