Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to compile and use ibdump for capturing RDMA messages #39

Open
wwwwxxxxhhhh opened this issue Jul 24, 2024 · 1 comment
Open

How to compile and use ibdump for capturing RDMA messages #39

wwwwxxxxhhhh opened this issue Jul 24, 2024 · 1 comment

Comments

@wwwwxxxxhhhh
Copy link

3248 2024-07-24 13:59:48 git clone https://github.com/Mellanox/ibdump
3278 2024-07-24 15:17:46 history |grep git
[root@localhost ~]# cd ibdump/
[root@localhost ibdump]# ll
total 428
-rw-r--r-- 1 root root 3186 Jul 24 13:59 bit_slice.h
drwxr-xr-x 2 root root 4096 Jul 24 13:59 build
-rwxr-xr-x 1 root root 3898 Jul 24 13:59 bus_ioctl.h
-rwxr-xr-x 1 root root 9810 Jul 24 13:59 compatibility.h
-rw-r--r-- 1 root root 19838 Jul 24 13:59 COPYING
drwxr-xr-x 3 root root 4096 Jul 24 13:59 debian
-rwxr-xr-x 1 root root 5738 Jul 24 13:59 getopt.c
-rwxr-xr-x 1 root root 2144 Jul 24 13:59 getopt.h
-rw-r--r-- 1 root root 1553 Jul 24 13:59 gitversion.h
-rwxr-xr-x 1 root root 159 Jul 24 13:59 gitversion.sh
-rw-r--r-- 1 root root 2027 Jul 24 13:59 ibd_device.h
-rw-r--r-- 1 root root 7713 Jul 24 13:59 ibd_hw_access.c
-rw-r--r-- 1 root root 1993 Jul 24 13:59 ibd_hw_access.h
-rwxr-xr-x 1 root root 6413 Jul 24 13:59 ibd_ibal_access.c
-rw-r--r-- 1 root root 1886 Jul 24 13:59 ibd_ibal_access.h
-rwxr-xr-x 1 root root 80792 Jul 24 14:44 ibdump
-rw-r--r-- 1 root root 47060 Jul 24 13:59 ibdump.c
-rw-r--r-- 1 root root 9315 Jul 24 14:44 ibdump.d
-rw-r--r-- 1 root root 5891 Jul 24 13:59 ibdump.h
-rw-r--r-- 1 root root 109720 Jul 24 14:44 ibdump.o
-rwxr-xr-x 1 root root 3174 Jul 24 13:59 ibdump.sln
-rw-r--r-- 1 root root 1465 Jul 24 13:59 ibdump.spec
-rwxr-xr-x 1 root root 12062 Jul 24 13:59 ibdump.vcxproj
-rwxr-xr-x 1 root root 8150 Jul 24 13:59 inttypes.h
-rw-r--r-- 1 root root 1374 Jul 24 13:59 LICENSE
-rwxr-xr-x 1 root root 3003 Jul 24 13:59 Makefile
-rwxr-xr-x 1 root root 34 Jul 24 13:59 Makefile.win
-rw-r--r-- 1 root root 2774 Jul 24 13:59 README.md
-rwxr-xr-x 1 root root 1058 Jul 24 13:59 SOURCES
-rwxr-xr-x 1 root root 1897 Jul 24 13:59 sources.props
-rwxr-xr-x 1 root root 7813 Jul 24 13:59 stdint.h
-rw-r--r-- 1 root root 2397 Jul 24 13:59 time_compat.h
-rwxr-xr-x 1 root root 2649 Jul 24 13:59 tools_version.h
-rwxr-xr-x 1 root root 2829 Jul 24 13:59 vpi_tcpdump
drwxr-xr-x 3 root root 4096 Jul 24 13:59 wireshark_ib
[root@localhost ibdump]# make
gcc -Wall -W -g -MP -MD -DPACKAGE_VERSION_STR="3.0.0-7" -DWITH_MFT -DIBDUMP_A0_MODE -I/usr/include/mft/ '-DBLD_VER_STR="devel"' -c -o ibd_hw_access.o ibd_hw_access.c
ibd_hw_access.c:36:10: fatal error: mtcr.h: No such file or directory
36 | #include <mtcr.h>
| ^~~~~~~~
compilation terminated.
make: *** [: ibd_hw_access.o] Error 1
[root@localhost ibdump]#

@huangchenzhao
Copy link

3248 2024-07-24 13:59:48 git clone https://github.com/Mellanox/ibdump 3278 2024-07-24 15:17:46 history |grep git [root@localhost ~]# cd ibdump/ [root@localhost ibdump]# ll total 428 -rw-r--r-- 1 root root 3186 Jul 24 13:59 bit_slice.h drwxr-xr-x 2 root root 4096 Jul 24 13:59 build -rwxr-xr-x 1 root root 3898 Jul 24 13:59 bus_ioctl.h -rwxr-xr-x 1 root root 9810 Jul 24 13:59 compatibility.h -rw-r--r-- 1 root root 19838 Jul 24 13:59 COPYING drwxr-xr-x 3 root root 4096 Jul 24 13:59 debian -rwxr-xr-x 1 root root 5738 Jul 24 13:59 getopt.c -rwxr-xr-x 1 root root 2144 Jul 24 13:59 getopt.h -rw-r--r-- 1 root root 1553 Jul 24 13:59 gitversion.h -rwxr-xr-x 1 root root 159 Jul 24 13:59 gitversion.sh -rw-r--r-- 1 root root 2027 Jul 24 13:59 ibd_device.h -rw-r--r-- 1 root root 7713 Jul 24 13:59 ibd_hw_access.c -rw-r--r-- 1 root root 1993 Jul 24 13:59 ibd_hw_access.h -rwxr-xr-x 1 root root 6413 Jul 24 13:59 ibd_ibal_access.c -rw-r--r-- 1 root root 1886 Jul 24 13:59 ibd_ibal_access.h -rwxr-xr-x 1 root root 80792 Jul 24 14:44 ibdump -rw-r--r-- 1 root root 47060 Jul 24 13:59 ibdump.c -rw-r--r-- 1 root root 9315 Jul 24 14:44 ibdump.d -rw-r--r-- 1 root root 5891 Jul 24 13:59 ibdump.h -rw-r--r-- 1 root root 109720 Jul 24 14:44 ibdump.o -rwxr-xr-x 1 root root 3174 Jul 24 13:59 ibdump.sln -rw-r--r-- 1 root root 1465 Jul 24 13:59 ibdump.spec -rwxr-xr-x 1 root root 12062 Jul 24 13:59 ibdump.vcxproj -rwxr-xr-x 1 root root 8150 Jul 24 13:59 inttypes.h -rw-r--r-- 1 root root 1374 Jul 24 13:59 LICENSE -rwxr-xr-x 1 root root 3003 Jul 24 13:59 Makefile -rwxr-xr-x 1 root root 34 Jul 24 13:59 Makefile.win -rw-r--r-- 1 root root 2774 Jul 24 13:59 README.md -rwxr-xr-x 1 root root 1058 Jul 24 13:59 SOURCES -rwxr-xr-x 1 root root 1897 Jul 24 13:59 sources.props -rwxr-xr-x 1 root root 7813 Jul 24 13:59 stdint.h -rw-r--r-- 1 root root 2397 Jul 24 13:59 time_compat.h -rwxr-xr-x 1 root root 2649 Jul 24 13:59 tools_version.h -rwxr-xr-x 1 root root 2829 Jul 24 13:59 vpi_tcpdump drwxr-xr-x 3 root root 4096 Jul 24 13:59 wireshark_ib [root@localhost ibdump]# make gcc -Wall -W -g -MP -MD -DPACKAGE_VERSION_STR="3.0.0-7" -DWITH_MFT -DIBDUMP_A0_MODE -I/usr/include/mft/ '-DBLD_VER_STR="devel"' -c -o ibd_hw_access.o ibd_hw_access.c ibd_hw_access.c:36:10: fatal error: mtcr.h: No such file or directory 36 | #include <mtcr.h> | ^~~~~~~~ compilation terminated. make: *** [: ibd_hw_access.o] Error 1 [root@localhost ibdump]#

same question, have you solved this problem? thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants