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
582#define PERF_ATTACH_ITRACE 0x10582#define PERF_ATTACH_ITRACE 0x10
583 583
584struct perf_cgroup;584struct perf_cgroup;
585struct ring_buffer;585struct perf_buffer;
586 586
587struct pmu_event_list {587struct pmu_event_list {
588 raw_spinlock_t lock;588 raw_spinlock_t lock;
@@ -694,7 +694,7 @@ struct perf_event { · 105 unmodified lines
694 struct mutex mmap_mutex;694 struct mutex mmap_mutex;
695 atomic_t mmap_count;695 atomic_t mmap_count;
696 696
697 struct ring_buffer *rb;697 struct perf_buffer *rb;
698 struct list_head rb_entry;698 struct list_head rb_entry;
699 unsigned long rcu_batches;699 unsigned long rcu_batches;
700 int rcu_pending;700 int rcu_pending;
@@ -854,7 +854,7 @@ struct perf_cpu_context { · 153 unmodified lines
854 854
855struct perf_output_handle {855struct perf_output_handle {
856 struct perf_event *event;856 struct perf_event *event;
857 struct ring_buffer *rb;857 struct perf_buffer *rb;
858 unsigned long wakeup;858 unsigned long wakeup;
859 unsigned long size;859 unsigned long size;
860 u64 aux_flags;860 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