aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/faddr2line
diff options
context:
space:
mode:
authorZelin Tong <ztong@ludwig.cs.unc.edu>2020-07-28 14:43:39 -0400
committerZelin Tong <ztong@ludwig.cs.unc.edu>2020-07-28 14:43:39 -0400
commit721f4add1fedf8ac62d0473b886e9d379867b45f (patch)
treebcec00bb97eb1bc90acad54ca7bff3bd4b868056 /scripts/faddr2line
parent098a298ef73dd8dbacf0d697eef2a6f2daa2081c (diff)
Latest ChangesHEADwip-joshua
Diffstat (limited to 'scripts/faddr2line')
0 files changed, 0 insertions, 0 deletions
an class='sha1'>831058dec373
55782138e47d

831058dec373




f10062578939
831058dec373

f10062578939
3bcfeaf93f44
831058dec373
3bcfeaf93f44
831058dec373


f10062578939
831058dec373




f10062578939
831058dec373
f10062578939
831058dec373








9b04c5fec43c
831058dec373
9b04c5fec43c
831058dec373





























































831058dec373
ac8456d6f9a3
831058dec373























6712ecf8f648
831058dec373


6712ecf8f648
831058dec373
831058dec373
831058dec373

6712ecf8f648
831058dec373
831058dec373

831058dec373











6712ecf8f648
831058dec373
831058dec373
831058dec373

6712ecf8f648
831058dec373
831058dec373
831058dec373

165125e1e480
831058dec373












ae03bf639a50
831058dec373




f735b5eeb9fc






831058dec373
























5f3ea37c7716
c43a5082a61f
831058dec373



































165125e1e480
831058dec373



bf2de6f5a4fa

36144077bce9
bf2de6f5a4fa


831058dec373




ae03bf639a50
831058dec373






831058dec373






1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301





                                           
                         
                       
                      






                          
                          

                         

                               




                                            
                                                               

                                           
                                                              
                                   
                         
      


                                                           
                                                          




                                
      
 
                     








                                                                     
                                       
                                                       
                           





























































                                                                                  
                                              
                                                  























                                                                    
                                 


                     
                                                         
 
                                           

 
                                                             
 

                                               











                                                                           
                                                        
 
                                                  

 
                                                            
 
                                                      

 
                                                                              












                                                        
                                                             




                                 






                                                                                
























                                                                        
                                             
 



































                                                                      
                                                                     



                        

                                           
                                     


                       




                                                                           
                                                       






                                       






                                              
/* bounce buffer handling for block devices
 *
 * - Split from highmem.c
 */

#include <linux/mm.h>
#include <linux/export.h>
#include <linux/swap.h>
#include <linux/gfp.h>
#include <linux/bio.h>
#include <linux/pagemap.h>
#include <linux/mempool.h>
#include <linux/blkdev.h>
#include <linux/init.h>
#include <linux/hash.h>
#include <linux/highmem.h>
#include <linux/bootmem.h>
#include <asm/tlbflush.h>

#include <trace/events/block.h>

#define POOL_SIZE	64
#define ISA_POOL_SIZE	16

static mempool_t *page_pool, *isa_page_pool;

#if defined(CONFIG_HIGHMEM) || defined(CONFIG_NEED_BOUNCE_POOL)
static __init int init_emergency_pool(void)
{
#if defined(CONFIG_HIGHMEM) && !defined(CONFIG_MEMORY_HOTPLUG)
	if (max_pfn <= max_low_pfn)
		return 0;
#endif

	page_pool = mempool_create_page_pool(POOL_SIZE, 0);
	BUG_ON(!page_pool);
	printk("bounce pool size: %d pages\n", POOL_SIZE);

	return 0;
}

__initcall(init_emergency_pool);
#endif

#ifdef CONFIG_HIGHMEM
/*
 * highmem version, map in to vec
 */
static void bounce_copy_vec(struct bio_vec *to, unsigned char *vfrom)
{
	unsigned long flags;
	unsigned char *vto;

	local_irq_save(flags);
	vto = kmap_atomic(to->bv_page);
	memcpy(vto + to->bv_offset, vfrom, to->bv_len);
	kunmap_atomic(vto);
	local_irq_restore(flags);
}

#else /* CONFIG_HIGHMEM */

#define bounce_copy_vec(to, vfrom)	\
	memcpy(page_address((to)->bv_page) + (to)->bv_offset, vfrom, (to)->bv_len)

#endif /* CONFIG_HIGHMEM */

/*
 * allocate pages in the DMA region for the ISA pool
 */