• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/processor-trace/libipt/internal/include/

Lines Matching refs:section

41 /* An image section cache entry. */
43 /* The section object.
45 * We hold a reference to the section - put it when the section is
48 struct pt_section *section;
50 /* The base address at which @section has been loaded. */
54 /* An image section cache least recently used cache entry. */
59 /* The section mapped by the image section cache. */
60 struct pt_section *section;
62 /* The amount of memory used by mapping @section in bytes. */
68 * We combine the section with its load address to reduce the amount of
69 * information we need to store in order to read from a cached section by
72 * Internally, the section object will be shared if it is loaded at different
75 * The cache does not consider the address-space the section is mapped into.
76 * This is not relevant for reading from the section.
95 /* A lock protecting this image section cache. */
102 * section identifier (isid), which is derived from their index into the
105 * We can't expand the section cache capacity beyond INT_MAX.
119 /* Initialize an image section cache. */
123 /* Finalize an image section cache. */
126 /* Add a section to the cache.
128 * Adds @section at @laddr to @iscache and returns its isid. If a similar
129 * section is already cached, returns that section's isid, instead.
131 * We take a full section rather than its filename and range in that file to
133 * cache before creating the section, so we should only see unnecessary section
137 * Returns -pte_internal if @iscache or @section is NULL.
138 * Returns -pte_internal if @section's filename is NULL.
141 struct pt_section *section, uint64_t laddr);
143 /* Find a section in the cache.
145 * Returns a positive isid if a section matching @filename, @offset, @size
147 * Returns zero if no such section is found.
155 /* Lookup the section identified by its isid.
157 * Provides a reference to the section in @section and its load address in
158 * @laddr on success. The caller is expected to put the returned section after
162 * Returns -pte_internal if @iscache, @section, or @laddr is NULL.
166 struct pt_section **section, uint64_t *laddr,
169 /* Clear an image section cache. */
172 /* Notify about the mapping of a cached section.
174 * Notifies @iscache that @section has been mapped.
176 * The caller guarantees that @iscache contains @section (by using @section's
179 * The caller must not lock @section to allow @iscache to map it. This function
180 * must not try to detach from @section.
183 * Returns -pte_internal if @iscache or @section is NULL.
187 struct pt_section *section);
189 /* Notify about a size change of a mapped section.
191 * Notifies @iscache that @section's size has changed while it was mapped.
193 * The caller guarantees that @iscache contains @section (by using @section's
196 * The caller must not lock @section to allow @iscache to map it. This function
197 * must not try to detach from @section.
200 * Returns -pte_internal if @iscache or @section is NULL.
204 struct pt_section *section, uint64_t size);