From: 越峰裴 <peiyuefeng@gmail.com>
To: systemtap@sourceware.org
Subject: how can i call fflush in embedded c code?
Date: Wed, 3 Mar 2021 16:17:18 +0800 [thread overview]
Message-ID: <CA+hDufAb_wPRs8jjA==oaHjC8sMedk37zRqOmL-ULvEmwacmwg@mail.gmail.com> (raw)
source code:
test.stp
#!/usr/bin/stap
%{
#include <stdio.h>
%}
function a() %{
_stp_printf("abcd");
fflush(stdout);
%}
probe begin {
a()
}
>> stap -p -gv test.stp
/tmp/stapdVs7bQ/stap_d2c2c903ade736f3fa649c78b8ab19e9_973_src.c:33:19:
fatal error: stdio.h: No such file or directory
#include <stdio.h>
^
compilation terminated.
question: how can compile it?
reply other threads:[~2021-03-03 8:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+hDufAb_wPRs8jjA==oaHjC8sMedk37zRqOmL-ULvEmwacmwg@mail.gmail.com' \
--to=peiyuefeng@gmail.com \
--cc=systemtap@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).