Repository navigation
Commit afbab76
ring-buffer: have read page swap increment counter with page entries
In the swap page ring buffer code that is used by the ftrace splice code,
we scan the page to increment the counter of entries read.
With the number of entries already in the page we simply need to add it.
[ Impact: speed up reading page from ring buffer ]
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>1 parent 778c55d commit afbab76
1 file changed
Lines changed: 3 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2785 | 2785 | | |
2786 | 2786 | | |
2787 | 2787 | | |
2788 | | - | |
2789 | | - | |
2790 | | - | |
2791 | | - | |
2792 | | - | |
2793 | | - | |
2794 | | - | |
2795 | | - | |
2796 | | - | |
2797 | | - | |
2798 | | - | |
2799 | | - | |
2800 | | - | |
2801 | | - | |
2802 | | - | |
2803 | | - | |
2804 | | - | |
2805 | | - | |
2806 | | - | |
2807 | | - | |
2808 | | - | |
2809 | | - | |
2810 | 2788 | | |
2811 | 2789 | | |
2812 | 2790 | | |
| |||
2977 | 2955 | | |
2978 | 2956 | | |
2979 | 2957 | | |
| 2958 | + | |
| 2959 | + | |
| 2960 | + | |
2980 | 2961 | | |
2981 | 2962 | | |
2982 | 2963 | | |
| |||
2985 | 2966 | | |
2986 | 2967 | | |
2987 | 2968 | | |
2988 | | - | |
2989 | | - | |
2990 | | - | |
2991 | 2969 | | |
2992 | 2970 | | |
2993 | 2971 | | |
| |||
0 commit comments