lkml.org 
[lkml]   [2017]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/8] livepatch: klp-convert tool
On Fri, Oct 20, 2017 at 10:51:40AM +0200, Miroslav Benes wrote:
> > But with klp-convert, there's no such documentation, because there's no
> > safe way to use it without other supplementary tooling which doesn't
> > exist.
>
> True.
>
> I don't know if I mentioned it before. There is -fdump-ipa-clones now in
> GCC for dumping every clone operation GCC does.
>
> https://github.com/marxin/kgraft-analysis-tool processes the dump and
> extracts useful information for a symbol.

Thanks, that looks really nice. I see that my GCC 7 has
-fdump-ipa-clones.

It would be great if we could integrate that script's functionality with
klp-convert somehow, such that it would warn if you're patching a
function or a relocation which is affected.

Or at least document how a human could do so.

--
Josh

\
 
 \ /
  Last update: 2017-10-22 17:38    [W:0.069 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site