History

rv: Export task monitor slot and react symbols

Export rv_get_task_monitor_slot, rv_put_task_monitor_slot, and rv_react to GPL modules so they can be accessed by KUnit and future monitors built as kernel modules.

Gabriele Monaco committed 3 months ago

Commit be22e551 parent 7b624622 files · +3 −0Browse files

Showing the changes to kernel (2 of 2 files). Show all

Unified · Split

2 files
  1. kernel/trace/rv/rv.c +2 −0
  2. kernel/trace/rv/rv_reactors.c +1 −0
kernel/trace/rv/rv.c+2−0
@@ -181,6 +181,7 @@ int rv_get_task_monitor_slot(void) · 180 unmodified lines
181 181
182 return -EBUSY;182 return -EBUSY;
183}183}
184EXPORT_SYMBOL_GPL(rv_get_task_monitor_slot);
184 185
185void rv_put_task_monitor_slot(int slot)186void rv_put_task_monitor_slot(int slot)
186{187{
@@ -197,6 +198,7 @@ void rv_put_task_monitor_slot(int slot) · 10 unmodified lines
197 198
198 task_monitor_slots[slot] = false;199 task_monitor_slots[slot] = false;
199}200}
201EXPORT_SYMBOL_GPL(rv_put_task_monitor_slot);
200 202
201/*203/*
202 * Monitors with a parent are nested,204 * Monitors with a parent are nested,
kernel/trace/rv/rv_reactors.c+1−0
@@ -479,3 +479,4 @@ void rv_react(struct rv_monitor *monitor, const char *msg, ...) · 478 unmodified lines
479 479
480 va_end(args);480 va_end(args);
481}481}
482EXPORT_SYMBOL_GPL(rv_react);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t