@@ -89,7 +89,7 @@ static PlotObject *makeShape(std::vector<const Graph *> graph,
* @param val: Process or CPU Id value.
* @param draw_action: Draw action identifier.
*/
-void draw_missed_events(kshark_cpp_argv *argv_c,
+__hidden void draw_missed_events(kshark_cpp_argv *argv_c,
int sd, int val, int draw_action)
{
KsCppArgV *argvCpp = KS_ARGV_TO_CPP(argv_c);
@@ -30,7 +30,7 @@ static KsMainWindow *ks_ptr;
* @brief Provide the plugin with a pointer to the KsMainWindow object (the GUI
* itself) such that the plugin can manipulate the GUI.
*/
-void *plugin_set_gui_ptr(void *gui_ptr)
+__hidden void *plugin_set_gui_ptr(void *gui_ptr)
{
ks_ptr = static_cast<KsMainWindow *>(gui_ptr);
return nullptr;
@@ -152,7 +152,8 @@ static void secondPass(plugin_sched_context *plugin_ctx)
* @param pid: Process Id.
* @param draw_action: Draw action identifier.
*/
-void plugin_draw(kshark_cpp_argv *argv_c, int sd, int pid, int draw_action)
+__hidden void plugin_draw(kshark_cpp_argv *argv_c,
+ int sd, int pid, int draw_action)
{
plugin_sched_context *plugin_ctx;
@@ -47,7 +47,7 @@ static void plugin_sched_set_pid(ks_num_field_t *field,
*
* @param field: Input location for the data field.
*/
-int plugin_sched_get_pid(ks_num_field_t field)
+__hidden int plugin_sched_get_pid(ks_num_field_t field)
{
return field & PID_MASK;
}
@@ -67,7 +67,7 @@ static void plugin_sched_set_prev_state(ks_num_field_t *field,
*
* @param field: Input location for the data field.
*/
-int plugin_sched_get_prev_state(ks_num_field_t field)
+__hidden int plugin_sched_get_prev_state(ks_num_field_t field)
{
tep_num_field_t mask = PREV_STATE_MASK << PREV_STATE_SHIFT;
return (field & mask) >> PREV_STATE_SHIFT;
Nothing except the plugin's interface must be visible outside. Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com> --- src/plugins/MissedEvents.cpp | 2 +- src/plugins/SchedEvents.cpp | 5 +++-- src/plugins/sched_events.c | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-)