Skip to contentSkip to conversation

pgo: add clang's Profile Guided Optimization infrastructure

PATCH Kees Cook 1 participant 1 message Jun 1, 2021

Subsystems (2)
lore
Share & tools
lore

Kees Cook

author
#0 lore raw
Quoted 9 lines · Nathan Chancellor
Quoted 4 lines · Kees Cook

I've added this to patch to my -next tree now:

https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/commit/?h=for-next/clang/pgo&id=e1af496cbe9b4517428601a4e44fee3602dd3c15

Would this be appropriate to send? Someone sent some patches based on this work so it would be nice to solidify how they will get to Linus if/when the time comes :)

Yeah, good idea.

Quoted 6 lines

https://lore.kernel.org/r/[email protected]/
https://lore.kernel.org/r/[email protected]/
https://lore.kernel.org/r/[email protected]/
https://lore.kernel.org/r/[email protected]/
https://lore.kernel.org/r/[email protected]/
https://lore.kernel.org/r/[email protected]/

BTW, Jarmo, if you haven't had this suggested yet, I'd recommend using this kind of a script for your email sending workflow to get a set of threaded patches:

#!/bin/sh
set -x

MYSELF="Your Name <[email protected]>"
prefix="PATCH"
# or
#prefix="PATCH v2"
# etc...
SHA="SHA your series is based on"

format_args="--cover-letter -n -o outgoing/"
maint_args="--norolestats"

mkdir -p outgoing
git format-patch $format_args --subject-prefix "$prefix" "$SHA"

./scripts/checkpatch.pl "$@" --codespell outgoing/0*patch

${EDITOR:-vi} outgoing/*

# Send patches

git send-email --transfer-encoding=8bit --8bit-encoding=UTF-8 \
	--no-chain-reply-to --thread \
	--from="$MYSELF" --cc="$MYSELF" \
	--to-cmd="./scripts/get_maintainer.pl $maint_args -m" \
	--cc-cmd="./scripts/get_maintainer.pl $maint_args --nom" \
	outgoing/*
Quoted 11 lines

Cheers,
Nathan

======================================

MAINTAINERS +0 -0
index c45613c30803..0d03f6ccdb70 100644

MAINTAINERS F: include/uapi/linux/personality.h · line 14387

Quoted 10 lines
MAINTAINERS +4 -0
@@ -14378,9 +14378,13 @@ F:	include/uapi/linux/personality.h
 PGO BASED KERNEL PROFILING
 M:	Sami Tolvanen <[email protected]>
 M:	Bill Wendling <[email protected]>
+M:	Kees Cook <[email protected]>
 R:	Nathan Chancellor <[email protected]>
 R:	Nick Desaulniers <[email protected]>
+L:	[email protected]
 S:	Supported
+B:	https://github.com/ClangBuiltLinux/linux/issues
+T:	git git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/clang/pgo

I think I'm going to keep things combined in a single tree for now since the patch rate is low:

+T: git git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/clang/features

MAINTAINERS F: include/uapi/linux/personality.h · line 14390

Quoted 3 lines
MAINTAINERS +0 -0
 F:	Documentation/dev-tools/pgo.rst
 F:	kernel/pgo/
 

I should likely do the same entry for CFI.

Signature · 1 line
Kees Cook