-
Notifications
You must be signed in to change notification settings - Fork 628
Add msr-tools package from upstream #17149
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
Open
MadhurAggarwal
wants to merge
3
commits into
tomls/base/main
Choose a base branch
from
madagg/tomls/base/main/add-msr-tools-package
base: tomls/base/main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1162,6 +1162,7 @@ components = [ | |
| "mpich", | ||
| "mptcpd", | ||
| "mrtg", | ||
| "msr-tools", | ||
| "mstflint", | ||
| "msv", | ||
| "mt-st", | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Managed by azldev component update. Do not edit manually. | ||
| version = 1 | ||
| import-commit = '5b99b0873b16c2da8dbc3391f9214a9b9e7552af' | ||
| upstream-commit = '5b99b0873b16c2da8dbc3391f9214a9b9e7552af' | ||
| input-fingerprint = 'sha256:5dcfbce27ded3ce78d52b17cb79f81cd5c1bfd92de96fe365014ce65d8af98ab' | ||
| resolution-input-hash = 'sha256:466421704711c4fd3c71f0b2ed715a0e61d49e3e26f3a2637fee755795849c8e' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| diff -uNr msr-tools-master/cpuid.c msr-tools/cpuid.c | ||
| --- msr-tools-master/cpuid.c 2013-09-09 19:49:29.000000000 -0700 | ||
| +++ msr-tools/cpuid.c 2015-10-09 23:00:37.788754838 -0700 | ||
| @@ -184,7 +184,7 @@ | ||
| exit(127); | ||
| } else if (argc == 2) { | ||
| cpu = strtoul(argv[1], &endptr, 0); | ||
| - if (*endptr || cpu > 255) { | ||
| + if (*endptr || cpu > 65535) { | ||
| usage(); | ||
| exit(127); | ||
| } | ||
| diff -uNr msr-tools-master/rdmsr.c msr-tools/rdmsr.c | ||
| --- msr-tools-master/rdmsr.c 2013-09-09 19:49:29.000000000 -0700 | ||
| +++ msr-tools/rdmsr.c 2015-10-09 23:00:44.301570291 -0700 | ||
| @@ -168,7 +168,7 @@ | ||
| break; | ||
| case 'p': | ||
| arg = strtoul(optarg, &endarg, 0); | ||
| - if (*endarg || arg > 255) { | ||
| + if (*endarg || arg > 65535) { | ||
| usage(); | ||
| exit(127); | ||
| } | ||
| diff -uNr msr-tools-master/wrmsr.c msr-tools/wrmsr.c | ||
| --- msr-tools-master/wrmsr.c 2013-09-09 19:49:29.000000000 -0700 | ||
| +++ msr-tools/wrmsr.c 2015-10-09 23:00:52.589335391 -0700 | ||
| @@ -102,7 +102,7 @@ | ||
| break; | ||
| case 'p': | ||
| arg = strtoul(optarg, &endarg, 0); | ||
| - if (*endarg || arg > 255) { | ||
| + if (*endarg || arg > 65535) { | ||
| usage(); | ||
| exit(127); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,163 @@ | ||
| # This spec file has been modified by azldev to include build configuration overlays. | ||
| # Do not edit manually; changes may be overwritten. | ||
|
|
||
| Summary: Collection of tools for reading/writing CPU model specific registers | ||
| Name: msr-tools | ||
| Version: 1.3 | ||
| Release: 31%{dist} | ||
| # Automatically converted from old format: GPLv2+ - review is highly recommended. | ||
| License: GPL-2.0-or-later | ||
| Source0: https://github.com/intel/msr-tools/archive/msr-tools-%{version}/%{name}-%{version}.tar.gz | ||
| BuildRequires: gcc | ||
| BuildRequires: make | ||
| ExclusiveArch: %{ix86} x86_64 | ||
| Url: https://github.com/intel/msr-tools | ||
|
|
||
| # Support for increased number of processors | ||
| # Patch submitted upstream: | ||
| # https://github.com/01org/msr-tools/pull/3 | ||
|
|
||
| Patch: bz1268604-increase-max-procs.patch | ||
|
|
||
| %description | ||
| This is a small collection of tools to allow reading and writing | ||
| of CPU model specific registers | ||
|
|
||
| %prep | ||
| %autosetup -n msr-tools-msr-tools-%{version} | ||
|
|
||
| %build | ||
| %make_build CFLAGS="$RPM_OPT_FLAGS" | ||
|
|
||
| %install | ||
| install -D rdmsr %{buildroot}%{_sbindir}/rdmsr | ||
| install -D wrmsr %{buildroot}%{_sbindir}/wrmsr | ||
| install -D cpuid %{buildroot}%{_sbindir}/msr-cpuid | ||
|
|
||
| %files | ||
| %{_sbindir}/rdmsr | ||
| %{_sbindir}/wrmsr | ||
| %{_sbindir}/msr-cpuid | ||
|
|
||
| %changelog | ||
| * Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-30 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild | ||
|
|
||
| * Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-29 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild | ||
|
|
||
| * Sun Jan 12 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3-28 | ||
| - Rebuilt for the bin-sbin merge (2nd attempt) | ||
|
|
||
| * Fri Jul 26 2024 Miroslav Suchý <msuchy@redhat.com> - 1.3-27 | ||
| - convert license to SPDX | ||
|
|
||
| * Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-26 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild | ||
|
|
||
| * Tue Jul 09 2024 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3-25 | ||
| - Rebuilt for the bin-sbin merge | ||
|
|
||
| * Mon Jan 29 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-24 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild | ||
|
|
||
| * Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-23 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild | ||
|
|
||
| * Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-22 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild | ||
|
|
||
| * Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-21 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild | ||
|
|
||
| * Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-20 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild | ||
|
|
||
| * Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-19 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild | ||
|
|
||
| * Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-18 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild | ||
|
|
||
| * Tue Dec 14 2021 Greg Bailey <gbailey@lxpro.com> - 1.3-17 | ||
| - Update GitHub URL to new location | ||
|
|
||
| * Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-16 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild | ||
|
|
||
| * Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-15 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild | ||
|
|
||
| * Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-14 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild | ||
|
|
||
| * Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-13 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild | ||
|
|
||
| * Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-12 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild | ||
|
|
||
| * Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-11 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild | ||
|
|
||
| * Mon Jul 23 2018 Greg Bailey <gbailey@lxpro.com> - 1.3-10 | ||
| - Add missing BuildRequires: gcc | ||
|
|
||
| * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-9 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild | ||
|
|
||
| * Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-8 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild | ||
|
|
||
| * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-7 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild | ||
|
|
||
| * Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-6 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild | ||
|
|
||
| * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-5 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild | ||
|
|
||
| * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-4 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild | ||
|
|
||
| * Fri Oct 9 2015 Greg Bailey <gbailey@lxpro.com> - 1.3-3 | ||
| - Support for increased number of processors (#1268604) | ||
|
|
||
| * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild | ||
|
|
||
| * Tue Sep 23 2014 Greg Bailey <gbailey@lxpro.com> - 1.3-1 | ||
| - Update to 1.3 | ||
| - Update URL to new location | ||
| - Rename cpuid to msr-cpuid to avoid conflict with existing Fedora package | ||
|
|
||
| * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-10 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild | ||
|
|
||
| * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-9 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild | ||
|
|
||
| * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-8 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild | ||
|
|
||
| * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-7 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild | ||
|
|
||
| * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-6 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild | ||
|
|
||
| * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-5 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild | ||
|
|
||
| * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-4 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild | ||
|
|
||
| * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-3 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild | ||
|
|
||
| * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-2 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild | ||
|
|
||
| * Thu Mar 13 2008 Dave Jones <davej@redhat.com> 1.1.2-1 | ||
| - Initial packaging |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| SHA512 (msr-tools-1.3.tar.gz) = b4dc0866e98dc32ff8d4ba0b74f030702e7cc72790e389c5240fa4895e11af237a648aefddcf2c59fce3ebab00d2b929da260bb96230dd29947288fb662a874d |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.