-
Notifications
You must be signed in to change notification settings - Fork 2
General project updates; rebase onto upstream v6.11; add notes about CONFIG_WERROR #17
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
whentojump
wants to merge
9
commits into
xlab-uiuc:llvm-trunk-next
Choose a base branch
from
whentojump:llvm-trunk-next
base: llvm-trunk-next
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 2 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
41f6f64
patches: s|RFC PATCH|PATCH v2| (this is what was sent)
Crabmeat8565 e0a90f7
README: general project updates
Crabmeat8565 d7580b7
patches: check v3.0 (rebased onto v6.11-rc7, NFC so far)
Crabmeat8565 155c1eb
ci: watch for patches/v3.0
Crabmeat8565 3ffae81
patches: rebased onto v6.11
Crabmeat8565 1054cec
patches: add notes about CONFIG_WERROR
whentojump 137c343
README: general updates
whentojump 109ab05
patches: resolve Nathan's comments; rebase; revert the "CONFIG_WERROR…
whentojump 38f8033
patches: rebase; add MAINTAINERS
whentojump 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
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 |
---|---|---|
|
@@ -5,17 +5,18 @@ | |
[](https://github.com/xlab-uiuc/linux-mcdc/actions/workflows/llvm-trunk-linux-v5.15.153.yml) | ||
|
||
This repository demonstrates [KUnit](https://docs.kernel.org/dev-tools/kunit/index.html)'s | ||
modified condition/decision coverage (MC/DC) of 5.15.y Linux kernel using | ||
[Clang source-based code coverage](https://clang.llvm.org/docs/SourceBasedCodeCoverage.html) | ||
and [`llvm-cov`](https://llvm.org/docs/CommandGuide/llvm-cov.html). A patch set | ||
for mainline kernel is also being prepared. | ||
modified condition/decision coverage (MC/DC) of 5.15.y and mainline Linux kernel | ||
using [Clang source-based code coverage](https://clang.llvm.org/docs/SourceBasedCodeCoverage.html) | ||
and [`llvm-cov`](https://llvm.org/docs/CommandGuide/llvm-cov.html). | ||
|
||
<!-- | ||
Primary | ||
development of the kernel patch set is being performed in the [xlab-uiuc/llvm-cov](https://github.com/xlab-uiuc/linux-cov) | ||
project. | ||
--> | ||
|
||
**LKML discussions: [link](https://lore.kernel.org/lkml/[email protected]/)** | ||
|
||
Follow the instructions [here](docs/measure-kernel-mcdc.md) to get started. | ||
|
||
Example text coverage report: [link](https://github.com/xlab-uiuc/linux-mcdc/actions/runs/10013137034/job/27681036852#step:8:7) (login with any GitHub account required) | ||
|
@@ -29,7 +30,7 @@ Tentative repository structure: | |
```text | ||
linux-mcdc | ||
| | ||
├── ci/{linux-v5.15.153} | ||
├── ci/linux-{v5.15.153,mainline} | ||
│ ├── 1_install_deps.sh | ||
│ ├── 2_pull_source.sh | ||
│ ├── 3_get_llvm.sh | ||
|
@@ -42,7 +43,7 @@ linux-mcdc | |
| | ||
├── patches | ||
│ ├── README.md | ||
│ └── {v0.4,v0.5,v0.6} | ||
│ └── {v0.4,v0.5,v0.6,v1.0,v2.0,latest} | ||
| | ||
├── README.md | ||
| | ||
|
@@ -53,6 +54,12 @@ linux-mcdc | |
└── q | ||
``` | ||
|
||
We are going to give three talks in [LPC 2024](https://lpc.events/event/18/page/224-lpc-2024-overview): | ||
|
||
- [Making Linux Fly: Towards a Certified Linux Kernel](https://lpc.events/event/18/contributions/1718/) (Refereed Track) | ||
- [Measuring and Understanding Linux Kernel Tests](https://lpc.events/event/18/contributions/1793/) (Kernel Testing & Dependability MC) | ||
- [Source-based code coverage of Linux kernel](https://lpc.events/event/18/contributions/1895/) (Safe Systems with Linux MC) | ||
|
||
We gave an [ELISA](https://elisa.tech/) seminar titled "Making Linux Fly: Towards Certified Linux | ||
Kernel". | ||
[[recording](https://elisa.tech/blog/2024/05/28/making-linux-fly-towards-certified-linux-kernel/)] | ||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 7c60851daae39815fa696fc2265e838b1913f7ac Mon Sep 17 00:00:00 2001 | ||
From: Wentao Zhang <[email protected]> | ||
Date: Wed, 4 Sep 2024 18:13:07 -0500 | ||
Subject: [RFC PATCH 0/4] Enable measuring the kernel's Source-based Code Coverage and MC/DC with Clang | ||
Subject: [PATCH v2 0/4] Enable measuring the kernel's Source-based Code Coverage and MC/DC with Clang | ||
|
||
This series adds support for building x86-64 kernels with Clang's Source- | ||
based Code Coverage[1] in order to facilitate Modified Condition/Decision | ||
|
2 changes: 1 addition & 1 deletion
2
patches/v2.0/0001-llvm-cov-add-Clang-s-Source-based-Code-Coverage-supp.patch
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 13c86fc7877aec4892832554845968d7415f2960 Mon Sep 17 00:00:00 2001 | ||
From: Wentao Zhang <[email protected]> | ||
Date: Fri, 30 Aug 2024 14:48:03 -0500 | ||
Subject: [RFC PATCH 1/4] llvm-cov: add Clang's Source-based Code Coverage | ||
Subject: [PATCH v2 1/4] llvm-cov: add Clang's Source-based Code Coverage | ||
support | ||
|
||
Add infrastructure to support Clang's source-based code coverage [1]. This | ||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From e7d38a2115b9c1041dcda404f102888c9894da10 Mon Sep 17 00:00:00 2001 | ||
From: Wentao Zhang <[email protected]> | ||
Date: Fri, 30 Aug 2024 14:49:24 -0500 | ||
Subject: [RFC PATCH 2/4] llvm-cov: add Clang's MC/DC support | ||
Subject: [PATCH v2 2/4] llvm-cov: add Clang's MC/DC support | ||
|
||
Add infrastructure to enable Clang's Modified Condition/Decision Coverage | ||
(MC/DC) [1]. | ||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From f4cc26b9d49b7c34671c04a8b62485a311530298 Mon Sep 17 00:00:00 2001 | ||
From: Wentao Zhang <[email protected]> | ||
Date: Fri, 30 Aug 2024 14:48:53 -0500 | ||
Subject: [RFC PATCH 3/4] x86: disable llvm-cov instrumentation | ||
Subject: [PATCH v2 3/4] x86: disable llvm-cov instrumentation | ||
|
||
Disable instrumentation for arch/x86/crypto/curve25519-x86_64.c. Otherwise | ||
compilation would fail with "error: inline assembly requires more registers | ||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 7c60851daae39815fa696fc2265e838b1913f7ac Mon Sep 17 00:00:00 2001 | ||
From: Wentao Zhang <[email protected]> | ||
Date: Fri, 30 Aug 2024 14:49:06 -0500 | ||
Subject: [RFC PATCH 4/4] x86: enable llvm-cov support | ||
Subject: [PATCH v2 4/4] x86: enable llvm-cov support | ||
|
||
Set ARCH_HAS_* options to "y" in kconfig and include section description in | ||
linker script. | ||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the sent version 2 I accidentally included my personal email here in the cover letter. I dry-run with myself a few times, checked a few places but somehow ignored this one..
I suppose it should not create a "Signed-off-by chain" issue as it's not a patch? I will pay attention in future updates.