16 Commits

Author SHA1 Message Date
rezky_nightky
cb7babefb3 Fix typos across documentation and source
- Correct dependency spelling in README for multiple distro instructions @README.markdown#193-276
- Clean up misspellings in CMake helpers and GPU info sources (temperature, PCIe, queries, etc.) @cmake/modules/FindCurses.cmake#50-58 @cmake/modules/sanitize-helpers.cmake#103-118 @src/extract_gpuinfo_amdgpu.c#444-637 @src/extract_gpuinfo_intel.c#225-234 @src/extract_gpuinfo_metax.c#100-512 @src/nvtop.c#70-77
- Fix header comments and struct field names for allocations, callbacks, and utilize fields @src/extract_processinfo_fdinfo.c#97-104 @include/nvtop/common.h#44-52 @include/nvtop/extract_processinfo_fdinfo.h#59-63 @include/ascend/dcmi_interface_api.h#75-455 @include/nvtop/interface_options.h#43-54 @src/interface.c#792-800

Author: rezky_nightky <with.rezky@gmail.com>
Timestamp: 2025-12-01T18:21:25Z
Repository: nvtop
Branch: master
Signing: GPG (989AF9F0)
Performance: 13 files, +31/-31 lines
2026-01-16 10:59:16 +01:00
Maxime Schmitt
cfb078edf4 Fix FindUDev and FindSystemd for older cmake 2022-10-15 15:26:27 +02:00
Maxime Schmitt
8cd2ee0892 Udev/sd-device wrapper 2022-10-09 18:40:25 +02:00
Maxime Schmitt
1ad82b6ab1 Preliminary Intel support 2022-10-08 13:57:32 +02:00
Maxime Schmitt
0b9ad27dc2 Dev tooling improvement 2022-04-04 19:59:30 +02:00
Maxime Schmitt
131cb81845 Use libdrm for AMDGPU support 2022-04-04 19:59:30 +02:00
Maxime Schmitt
8b6519eebc Build system update following the gpuinfo redesign 2021-05-11 22:09:27 +02:00
Zeming Lin
84902667d4 More paths for NVML library 2021-05-03 19:28:46 +02:00
Zeming Lin
4e981a749d Add additional path hints for nvml 2021-01-12 14:21:14 +01:00
Maxime Schmitt
5fb0ab5c3c CMake: add nvml path hints 2020-08-22 14:12:47 +01:00
Huang Rui
e9767ccc89 Fix crash bug when build with -DCURSES_NEED_WIDE=TRUE
Fix crash bug when build with libncursesw.so.6 and libtinfow.so.6

The FindCurses.cmake is too old to build with
```-DCURSES_NEED_WIDE=TRUE``` option.
In some latest ENV, always using libncursesw.so.6 and libtinfow.so.6.
The nvtop will crashed with these messages below:

```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==50432==ERROR: AddressSanitizer: SEGV on unknown address 0x0000000000c8 (pc 0x7f9c4d507d39 bp 0x7f9c4d4e6de8 sp 0x7ffc057963a8 T0)
==50432==The signal is caused by a READ memory access.
==50432==Hint: address points to the zero page.
    #0 0x7f9c4d507d38 in termattrs_sp (/lib64/libncursesw.so.6+0x1fd38)
    #1 0x7f9c4d504f73 in _nc_setupscreen_sp (/lib64/libncursesw.so.6+0x1cf73)
    #2 0x7f9c4d50078b in newterm_sp (/lib64/libncursesw.so.6+0x1878b)
    #3 0x7f9c4d500c08 in newterm (/lib64/libncursesw.so.6+0x18c08)
    #4 0x7f9c4d4fca53 in initscr (/lib64/libncursesw.so.6+0x14a53)
    #5 0x55bd7f6d693d in initialize_curses (/usr/local/bin/nvtop+0x5893d)
    #6 0x55bd7f6c9f7a in main (/usr/local/bin/nvtop+0x4bf7a)
    #7 0x7f9c4c998f1a in __libc_start_main (/lib64/libc.so.6+0x23f1a)
    #8 0x55bd7f6ca789 in _start (/usr/local/bin/nvtop+0x4c789)
```

The load library have some problem, NOTE libtinfow.so.6 and
libtinfo.so.6 load at the same time, it is the root cause.

```
ldd /usr/local/bin/nvtop
	linux-vdso.so.1 (0x00007ffca6d82000)
	libasan.so.5 => /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/libasan.so.5 (0x00007f8823464000)
	libm.so.6 => /lib64/libm.so.6 (0x00007f8823326000)
	libnvidia-ml.so.1 => /usr/lib64/libnvidia-ml.so.1 (0x00007f8822d00000)
	libncursesw.so.6 => /lib64/libncursesw.so.6 (0x00007f8822cc5000)
	libtinfo.so.6 => /lib64/libtinfo.so.6 (0x00007f8822c89000)
	libubsan.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/libubsan.so.1 (0x00007f8822321000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f8822152000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00007f882214c000)
	librt.so.1 => /lib64/librt.so.1 (0x00007f8822142000)
	libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f8822120000)
	libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/libstdc++.so.6 (0x00007f8821ea8000)
	libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/libgcc_s.so.1 (0x00007f8821e8e000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f8823fc5000)
	libtinfow.so.6 => /lib64/libtinfow.so.6 (0x00007f8821e4f000)
```

To fix it, the FindCurses.cmake should using libtinfow.so.6 instead of
libtinfo.so.6 when DCURSES_NEED_WIDE=TRUE. So I updated the
FindCurses.cmake to latest version to fix this problem.

Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-10-25 04:23:33 +08:00
Maxime Schmitt
89f023c952 Add recent FindCurses cmake module for ncursesw support 2018-11-21 13:46:39 +01:00
Maxime Schmitt
b7d626a8bc nvml header search location 2018-08-19 15:25:09 +02:00
Maxime Schmitt
cea46dea95 Architecture aware regex search for nvml library 2018-04-07 23:49:15 +02:00
Maxime Schmitt
0c6cf94e2b Update CMake search path for NVML lib and include 2018-04-06 14:23:48 +02:00
Maxime Schmitt
d9f62ba17d Initial commit 2017-06-16 11:50:53 +02:00