+2020-01-13 Simon Marchi <simon.marchi@efficios.com>
+
+ * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
+ Define to static.
+ * tracepoint.c (stop_tracing, flush_trace_buffer,
+ about_to_request_buffer_space, get_trace_state_variable_value,
+ set_trace_state_variable_value, gdb_collect): Add declaration.
+
2020-01-13 Simon Marchi <simon.marchi@efficios.com>
* linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
# define UNKNOWN_SIDE_EFFECTS() do {} while (0)
#endif
+/* This is needed for -Wmissing-declarations. */
+IP_AGENT_EXPORT_FUNC void stop_tracing (void);
+
IP_AGENT_EXPORT_FUNC void
stop_tracing (void)
{
UNKNOWN_SIDE_EFFECTS();
}
+/* This is needed for -Wmissing-declarations. */
+IP_AGENT_EXPORT_FUNC void flush_trace_buffer (void);
+
IP_AGENT_EXPORT_FUNC void
flush_trace_buffer (void)
{
#ifdef IN_PROCESS_AGENT
+/* This is needed for -Wmissing-declarations. */
+IP_AGENT_EXPORT_FUNC void about_to_request_buffer_space (void);
+
IP_AGENT_EXPORT_FUNC void
about_to_request_buffer_space (void)
{
return tsv;
}
+/* This is needed for -Wmissing-declarations. */
+IP_AGENT_EXPORT_FUNC LONGEST get_trace_state_variable_value (int num);
+
IP_AGENT_EXPORT_FUNC LONGEST
get_trace_state_variable_value (int num)
{
return tsv->value;
}
+/* This is needed for -Wmissing-declarations. */
+IP_AGENT_EXPORT_FUNC void set_trace_state_variable_value (int num,
+ LONGEST val);
+
IP_AGENT_EXPORT_FUNC void
set_trace_state_variable_value (int num, LONGEST val)
{
IP_AGENT_EXPORT_VAR collecting_t *collecting;
EXTERN_C_POP
+/* This is needed for -Wmissing-declarations. */
+IP_AGENT_EXPORT_FUNC void gdb_collect (struct tracepoint *tpoint,
+ unsigned char *regs);
+
/* This routine, called from the jump pad (in asm) is designed to be
called from the jump pads of fast tracepoints, thus it is on the
critical path. */
# define IP_AGENT_EXPORT_VAR EXPORTED_SYMBOL ATTR_USED
# define IP_AGENT_EXPORT_VAR_DECL EXTERN_C EXPORTED_SYMBOL
#else
-# define IP_AGENT_EXPORT_FUNC
+# define IP_AGENT_EXPORT_FUNC static
# define IP_AGENT_EXPORT_VAR
# define IP_AGENT_EXPORT_VAR_DECL extern
#endif