public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/31707] New: Need a way to postpone emitting the file-level embedded C blocks
@ 2024-05-07 20:03 agentzh at gmail dot com
  2024-05-07 20:29 ` [Bug translator/31707] " agentzh at gmail dot com
  0 siblings, 1 reply; 2+ messages in thread
From: agentzh at gmail dot com @ 2024-05-07 20:03 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=31707

            Bug ID: 31707
           Summary: Need a way to postpone emitting the file-level
                    embedded C blocks
           Product: systemtap
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: translator
          Assignee: systemtap at sourceware dot org
          Reporter: agentzh at gmail dot com
  Target Milestone: ---

Sometimes, it is desired to postpone emitting the embedded C code blocks near
the end of the kernel module C source file when the custom C functions need to
reference the stap map API (like `_stp_map_get_ii`) or the global variables
(like `global(s___global_a)`). Otherwise, we would see compilation errors.

fche suggested the `/* pragma:suffix */` tag for such embedded C blocks. I'll
commit a patch to implement this.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug translator/31707] Need a way to postpone emitting the file-level embedded C blocks
  2024-05-07 20:03 [Bug translator/31707] New: Need a way to postpone emitting the file-level embedded C blocks agentzh at gmail dot com
@ 2024-05-07 20:29 ` agentzh at gmail dot com
  0 siblings, 0 replies; 2+ messages in thread
From: agentzh at gmail dot com @ 2024-05-07 20:29 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=31707

agentzh <agentzh at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from agentzh <agentzh at gmail dot com> ---
Committed as 65297804f8.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-07 20:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-07 20:03 [Bug translator/31707] New: Need a way to postpone emitting the file-level embedded C blocks agentzh at gmail dot com
2024-05-07 20:29 ` [Bug translator/31707] " agentzh at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).