Re: Listing special marked symbols - attribute section

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/3/07, Thomas Schmid <Thomas.Schmid@xxxxxxxxxxxxxxxxx> wrote:
In 0.3 are several extensions to parse attributes, but it seems that
<sectionname> isn't stored anywhere.
Is it possible to get <sectionname>?

If there is no way to get <sectionname> in the actual implementation, i
think of an extension in struct ctype.
Any comments?
Would this be useful for someone else?

Yes, it would be useful. The easiest way is just increase the ctype to include
a pointer to section name. The biggest objection is from the fact that
symbol/ctype
is the most common data structure in the sparse. If we increase the size
of ctype, there is a huge impact of the sparse memory usage.

I did try to use some kind of extend the attributes. The idea is have
the most common
attribute embed in ctype. The not common ones will store in a extend
attribute structure.
The extend attribute structure itself is flat. The initial
implementation will only contain
address space and context. I found myself keep breaking the existing
address space
attributes.

The attribute propagation not very clear in sparse. Some times we use assignment
and some times the attribute is inherited from implicit memcpy and
some time we strip
the attribute out. I wish to have a more unify way to define how
attribute are created
and propagate through the ctype, maybe a table or some thing.

Chris
-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux