Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1532931

Re: linker-tables v5 testing

From Nicholas Piggin <npiggin@gmail.com>
Newsgroups linux.kernel
Subject Re: linker-tables v5 testing
Date 2016-11-30 04:20 +0100
Message-ID <sJ3B8-wi-15@gated-at.bofh.it> (permalink)
References <sGTFT-5T2-11@gated-at.bofh.it> <sH4UG-57A-25@gated-at.bofh.it> <sJ22m-7Nz-15@gated-at.bofh.it>
Organization IBM

Show all headers | View raw


On Wed, 30 Nov 2016 02:33:49 +0100
"Luis R. Rodriguez" <mcgrof@kernel.org> wrote:

> On Thu, Nov 24, 2016 at 08:18:40AM -0800, Guenter Roeck wrote:
> > Hi Luis,
> > 
> > On 11/23/2016 08:11 PM, Luis R. Rodriguez wrote:  
> > > Guenter,
> > > 
> > > I think I'm ready to start pushing a new patch set out for review.
> > > Before I do that -- can I trouble you for letting your test
> > > infrastructure hammer it? I'll only push out the patches for review
> > > based on this new set of changes once all tests come back OK for all
> > > architectures.
> > > 
> > > https://git.kernel.org/cgit/linux/kernel/git/mcgrof/linux-next.git/log/?h=20161117-linker-tables-v5
> > > 
> > > Fenguang & Guenter,
> > > 
> > > Any chance I can trouble you to enable the new driver:
> > > CONFIG_TEST_LINKTABLES=y on each kernel configuration as it will run a
> > > test driver which will WARN_ON() if it finds any errors.
> > >   
> > 
> > I see a number of compile failures as well as some crashes in your test driver.
> > Please have a look. http://kerneltests.org/builders, column 'testing'.
> >   
> 
> Thanks! I believe I have addressed most issues.. Any chance I can have you re-try with
> this new branch:
> 
> https://git.kernel.org/cgit/linux/kernel/git/mcgrof/linux-next.git/log/?h=20161117-linker-tables-v5-try2

Few minor things:

- Can module-common.lds be generated with standard cpp_lds_S?

- Breaking up the input section descriptions like that in the linker
  script is not what we want AFAIKS. It forces the linker to put them
  in different locations.

Broader issues:

- I still think calling these "sections" and "de facto Linux sections"
  etc. is a bit confusing, especially because assembler sections are
  also involved. Region, array, blob, anything. Then you get "section
  ranges" and "linker tables". Fundamentally all it is is a linear memory
  allocator for static data which is decentralized in the source code
  (as opposed to centralized which would just be `u8 mydata[size]`).

- It would be nice to just clearly separate the memory allocator function
  from the syntatic sugar on top. Actually I think if the memory allocation
  and access functions are clean enough, you don't need anything more. If
  we have an array of pointers and size, it's trivial C code to iterate over
  it. If it needs to have a set of LINKTABLE accessors over the top of it
  for this use case, then that would seem to be a failure of the underlying
  API, no?

- Is it really important to be able to add new allocators without modifying
  a central file for the linker script? Yes it's a benefit, but is it enough
  to justify the complexity?

Thanks,
Nick

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: linker-tables v5 testing "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-11-30 02:40 +0100
  Re: linker-tables v5 testing Nicholas Piggin <npiggin@gmail.com> - 2016-11-30 04:20 +0100
    Re: linker-tables v5 testing "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-11-30 18:40 +0100
      Re: linker-tables v5 testing Nicholas Piggin <npiggin@gmail.com> - 2016-12-01 04:00 +0100
        Re: linker-tables v5 testing "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-12-01 04:20 +0100
          Re: linker-tables v5 testing Nicholas Piggin <npiggin@gmail.com> - 2016-12-01 06:10 +0100
            Re: linker-tables v5 testing Nicholas Piggin <npiggin@gmail.com> - 2016-12-01 06:30 +0100
              Re: linker-tables v5 testing "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-12-01 17:40 +0100
                Re: linker-tables v5 testing "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-12-02 17:00 +0100
                Re: linker-tables v5 testing Nicholas Piggin <nicholas.piggin@gmail.com> - 2016-12-09 03:20 +0100
          Re: linker-tables v5 testing "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-12-02 21:30 +0100
  Re: linker-tables v5 testing Guenter Roeck <linux@roeck-us.net> - 2016-11-30 05:20 +0100

csiph-web