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

Fix NEC sampling if threads are involved #339

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Conversation

cvonelm
Copy link
Member

@cvonelm cvonelm commented Jul 18, 2024

ve_check_pid() only works for processes, not threads, so lo2s complained that it could not find the real NEC device id for those threads.

Rewrite the code to use ve_sysfs_path_info(). This gives us the correct sysfs path for a NEC device id, so we dont have to find it using ve_check_pid().

src/monitor/nec_monitor_main.cpp Outdated Show resolved Hide resolved
src/monitor/nec_monitor_main.cpp Show resolved Hide resolved
@cvonelm cvonelm force-pushed the fix-nec-sampling branch from bf86f32 to 0e338dc Compare July 26, 2024 12:46
src/monitor/nec_monitor_main.cpp Outdated Show resolved Hide resolved
ve_check_pid() only works for processes, not threads, so lo2s complained
that it could not find the real NEC device id for those threads.

Rewrite the code to use ve_sysfs_path_info(). This gives us the correct
sysfs path for a NEC device id, so we dont have to find it using
ve_check_pid().
@cvonelm cvonelm merged commit c129f5e into master Oct 22, 2024
20 of 41 checks passed
@cvonelm cvonelm deleted the fix-nec-sampling branch October 22, 2024 12:12
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

Successfully merging this pull request may close these issues.

2 participants