Skip to content

Add support for /sys/class/mei/mei0#792

Open
micgor32 wants to merge 12 commits intoprometheus:masterfrom
micgor32:master
Open

Add support for /sys/class/mei/mei0#792
micgor32 wants to merge 12 commits intoprometheus:masterfrom
micgor32:master

Conversation

@micgor32
Copy link
Copy Markdown

@micgor32 micgor32 commented Mar 2, 2026

The structure is based on sysfs/class_dmi.go.

Assumes mei0 instead of checking for meiN since in practice (afaik), there are never more than one ME interfaces. But I am happy to get rid of that assumption if needed.

@micgor32
Copy link
Copy Markdown
Author

@SuperQ could you take a look?

Comment thread sysfs/class_mei.go
Comment thread sysfs/class_mei.go Outdated
Comment thread testdata/fixtures.ttar Outdated
Comment thread sysfs/class_mei_test.go Outdated
Comment thread sysfs/class_mei.go Outdated
Comment thread sysfs/class_mei.go Outdated
@micgor32 micgor32 force-pushed the master branch 2 times, most recently from ec15f47 to 3c27180 Compare April 20, 2026 19:39
@micgor32
Copy link
Copy Markdown
Author

Resolved the mentioned issues and rebased.

Comment thread sysfs/class_mei.go Outdated
Copy link
Copy Markdown
Member

@roidelapluie roidelapluie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have a test with multiple mei (e.g. mei1) ?

Comment thread sysfs/class_mei.go Outdated
@micgor32
Copy link
Copy Markdown
Author

Can we have a test with multiple mei (e.g. mei1) ?

Yep, added sample data for it, plus extended the test.

@micgor32 micgor32 requested a review from roidelapluie April 27, 2026 17:33
micgor32 added 12 commits May 6, 2026 13:04
Signed-off-by: Michal Gorlas <michal.gorlas@9elements.com>
Signed-off-by: Michal Gorlas <michal.gorlas@9elements.com>
Signed-off-by: Michal Gorlas <michal.gorlas@9elements.com>
Signed-off-by: Michal Gorlas <michal.gorlas@9elements.com>
Signed-off-by: Michal Gorlas <michal.gorlas@9elements.com>
Signed-off-by: Michal Gorlas <michal.gorlas@9elements.com>
Signed-off-by: Michal Gorlas <michal.gorlas@9elements.com>
Signed-off-by: Michal Gorlas <michal.gorlas@9elements.com>
Signed-off-by: Michal Gorlas <michal.gorlas@9elements.com>
Signed-off-by: Michal Gorlas <michal.gorlas@9elements.com>
Signed-off-by: Michal Gorlas <michal.gorlas@9elements.com>
Signed-off-by: Michal Gorlas <michal.gorlas@9elements.com>
@micgor32
Copy link
Copy Markdown
Author

micgor32 commented May 6, 2026

rebased.

@roidelapluie roidelapluie requested a review from SuperQ May 6, 2026 11:23
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