public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* how can i call fflush in embedded c code?
@ 2021-03-03  8:17 越峰裴
  0 siblings, 0 replies; only message in thread
From: 越峰裴 @ 2021-03-03  8:17 UTC (permalink / raw)
  To: systemtap

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?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-03  8:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-03  8:17 how can i call fflush in embedded c code? 越峰裴

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).