Searched refs:gUfds (Results 1 – 2 of 2) sorted by relevance
/base/hiviewdfx/hiview/plugins/faultlogger/service/sanitizer_collector/ |
D | sanitizerd_monitor.cpp | 94 gUfds = reinterpret_cast<pollfd*>(calloc(1, sizeof(gUfds[0]))); in Init() 95 gUfds[0].fd = inotify_init(); in Init() 96 if (gUfds[0].fd < 0) { in Init() 97 HIVIEW_LOGI("inotify_init failed: %{public}d-%{public}s.", gUfds[0].fd, strerror(errno)); in Init() 102 gUfds[0].events = POLLIN; in Init() 103 gAsanWd = inotify_add_watch(gUfds[0].fd, asanLogPath.c_str(), NOTIFY_MASK); in Init() 105 …IVIEW_LOGI("add watch %{public}s failed: %{public}d-%{public}s.", asanLogPath.c_str(), gUfds[0].fd, in Init() 110 … HIVIEW_LOGI("add watch %{public}s successfully: %{public}d.", asanLogPath.c_str(), gUfds[0].fd); in Init() 120 if (gUfds[i].fd >= 0) { in Uninit() 121 close(gUfds[i].fd); in Uninit() [all …]
|
D | sanitizerd_monitor.h | 36 struct pollfd* gUfds = nullptr; variable
|