History

perf: Make struct ring_buffer less ambiguous

eBPF requires needing to know the size of the perf ring buffer structure. But it unfortunately has the same name as the generic ring buffer used by tracing and oprofile. To make it less ambiguous, rename the perf ring buffer structure to "perf_buffer". As other parts of the ring buffer code has "perf_" as the prefix, it only makes sense to give the ring buffer the "perf_" prefix as well.

Steven Rostedt (VMware) committed 6 years ago

Commit 56de4e81 parent b3a987b4 files · +68 −68Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/perf_event.h+3−3
@@ -582,7 +582,7 @@ struct swevent_hlist { · 581 unmodified lines
582582 #define PERF_ATTACH_ITRACE 0x10
583583
584584 struct perf_cgroup;
585−struct ring_buffer;
585+struct perf_buffer;
586586
587587 struct pmu_event_list {
588588 raw_spinlock_t lock;
@@ -694,7 +694,7 @@ struct perf_event { · 105 unmodified lines
694694 struct mutex mmap_mutex;
695695 atomic_t mmap_count;
696696
697− struct ring_buffer *rb;
697+ struct perf_buffer *rb;
698698 struct list_head rb_entry;
699699 unsigned long rcu_batches;
700700 int rcu_pending;
@@ -854,7 +854,7 @@ struct perf_cpu_context { · 153 unmodified lines
854854
855855 struct perf_output_handle {
856856 struct perf_event *event;
857− struct ring_buffer *rb;
857+ struct perf_buffer *rb;
858858 unsigned long wakeup;
859859 unsigned long size;
860860 u64 aux_flags;

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