aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
ModeNameSize
-rw-r--r--event_analyzing_sample-record199logstatsplainblame
-rw-r--r--event_analyzing_sample-report129logstatsplainblame
-rw-r--r--failed-syscalls-by-pid-record52logstatsplainblame
-rw-r--r--failed-syscalls-by-pid-report258logstatsplainblame
-rw-r--r--futex-contention-record82logstatsplainblame
-rw-r--r--futex-contention-report129logstatsplainblame
-rwxr-xr-xnet_dropmonitor-record44logstatsplainblame
-rwxr-xr-xnet_dropmonitor-report132logstatsplainblame
-rw-r--r--netdev-times-record334logstatsplainblame
-rw-r--r--netdev-times-report176logstatsplainblame
-rw-r--r--sched-migration-record134logstatsplainblame
-rw-r--r--sched-migration-report122logstatsplainblame
-rw-r--r--sctop-record53logstatsplainblame
-rw-r--r--sctop-report484logstatsplainblame
-rw-r--r--syscall-counts-by-pid-record53logstatsplainblame
-rw-r--r--syscall-counts-by-pid-report256logstatsplainblame
-rw-r--r--syscall-counts-record53logstatsplainblame
-rw-r--r--syscall-counts-report241logstatsplainblame
Borislav Petkov <petkovbb@gmail.com> 2008-07-15 15:21:56 -0400 committer Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> 2008-07-15 15:21:56 -0400 ide-floppy: merge callbacks' href='/cgit/cgit.cgi/litmus-rt-edfsc.git/commit/drivers/ide/ide-floppy.c?id=81f4938239fea86d0a7529194a37fb81041171e0'>81f4938239fe
1da177e4c3f4
33659ebbae26
313afea7f25c
03a2faaea8f4

1da177e4c3f4

0df962777b55
8e555123911c
1da177e4c3f4
25985edcedea
1da177e4c3f4


d652c1380870

7b35572628bb
d652c1380870



1da177e4c3f4

b788ee9c6561


1da177e4c3f4
0df962777b55
1da177e4c3f4
5e2040fd0a97
30d67099385d
5e2040fd0a97
2b9efba48283
1da177e4c3f4
2b9efba48283
1da177e4c3f4
757ced8983a0
eb6a61bb9543

6e5fa7b88c37
757ced8983a0
eb6a61bb9543
757ced8983a0
c152cc1a90f9
757ced8983a0
5e2040fd0a97
b14c72127fbe
eb6a61bb9543
1da177e4c3f4


088b1b88609c
1da177e4c3f4

1da177e4c3f4
b788ee9c6561
1da177e4c3f4

0127854d7c96
1da177e4c3f4
7bf7420a3189
30d67099385d
1da177e4c3f4

8e555123911c
1da177e4c3f4

0571c7a4f58f
0127854d7c96
1da177e4c3f4
24a5d7033bd3
0571c7a4f58f
7bf7420a3189
30d67099385d
1da177e4c3f4
4de4b9e1405a
1da177e4c3f4

0571c7a4f58f






7b35572628bb
1da177e4c3f4
8f6224308bb5
8e555123911c
1da177e4c3f4

7b35572628bb
8e555123911c
ae7e8ddc34d8
1da177e4c3f4
0df962777b55
1da177e4c3f4
9780e2dd8254
1da177e4c3f4

088b1b88609c
1da177e4c3f4
7bf7420a3189
ae7e8ddc34d8

8f6224308bb5
ae7e8ddc34d8
20cd93be67f9

1da177e4c3f4
7b6d91daee5c
6e5fa7b88c37
19f52a784f7e
5e3310958204
1da177e4c3f4

0df962777b55
8e555123911c
1da177e4c3f4
7bf7420a3189
1da177e4c3f4
3d6392cfbd7d
34b7d2c95719
5e3310958204
8968932e54db


1da177e4c3f4

806f80a6fc20

1da177e4c3f4
0df962777b55
b788ee9c6561
8e555123911c
1da177e4c3f4
349d12a1fe57

088b1b88609c



1da177e4c3f4

313afea7f25c
5e2040fd0a97
313afea7f25c

7b35572628bb

33659ebbae26
6902a5331256
f974b196f58f
313afea7f25c


1da177e4c3f4
33659ebbae26


9780e2dd8254

7b35572628bb

313afea7f25c
1da177e4c3f4
2e8a6f89de69
806f80a6fc20
33659ebbae26


ac0b0113ddba
33659ebbae26

2e8a6f89de69
3d6392cfbd7d
33659ebbae26

2c7eaa43c3bb
33659ebbae26
1da177e4c3f4
068753203e6c

b788ee9c6561

2298169418f4
b788ee9c6561


2298169418f4
33659ebbae26
dfb7e621fa12
b788ee9c6561
3eb76c1ccde4
b98b3409abb6
1da177e4c3f4
5d41893c0f9c
b788ee9c6561
313afea7f25c

33659ebbae26
89f78b3261f7
5e955245d6cf
313afea7f25c
1da177e4c3f4


8e81bbba7245

1da177e4c3f4
07bd3f4731f9

1da177e4c3f4
0df962777b55
2ac07d920604
d9a683076412
1da177e4c3f4
8e81bbba7245

1da177e4c3f4
07bd3f4731f9
8e81bbba7245
d9a683076412
7b35572628bb
1da177e4c3f4

49cac39e71bd
d9a683076412
da167876bd0f
49cac39e71bd
da167876bd0f
49cac39e71bd
da167876bd0f
49cac39e71bd
d9a683076412
8e81bbba7245
d9a683076412





8e81bbba7245



7b35572628bb
1da177e4c3f4
8e81bbba7245






1da177e4c3f4
8e81bbba7245
1da177e4c3f4
7b35572628bb
1da177e4c3f4

8e81bbba7245

6f84083bbb7d
1da177e4c3f4
6f84083bbb7d
1da177e4c3f4


1da177e4c3f4
194ec0c07895

1da177e4c3f4
806f80a6fc20
1da177e4c3f4
0df962777b55
2ac07d920604
8e555123911c
194ec0c07895
41fa9f863baa
194ec0c07895

349d12a1fe57

1da177e4c3f4

fdb77da4ca68

6f84083bbb7d
1da177e4c3f4
0127854d7c96
b13345f39dad
7b35572628bb
1da177e4c3f4

b13345f39dad

194ec0c07895




b13345f39dad

194ec0c07895
7b35572628bb
088b1b88609c


1da177e4c3f4
194ec0c07895




1da177e4c3f4
b13345f39dad
1da177e4c3f4

ea68d270ff55
0571c7a4f58f
1da177e4c3f4





194ec0c07895
7b35572628bb



194ec0c07895

1da177e4c3f4
7b35572628bb

1da177e4c3f4
194ec0c07895



7b35572628bb



6f84083bbb7d

194ec0c07895
1da177e4c3f4






7b35572628bb

1da177e4c3f4

7b35572628bb
1da177e4c3f4


088b1b88609c
b13345f39dad
1da177e4c3f4


ea68d270ff55
07bd3f4731f9
1da177e4c3f4
1da177e4c3f4


806f80a6fc20
1da177e4c3f4
806f80a6fc20
4dde4492d850
2e8a6f89de69
85e39035ca38
3ad6776cca21
1da177e4c3f4
0571c7a4f58f

1da177e4c3f4
0571c7a4f58f



1da177e4c3f4
4dde4492d850
ea68d270ff55
1da177e4c3f4
baf08f0be6d9
086fa5ff0854
1da177e4c3f4


0571c7a4f58f


4dde4492d850
086fa5ff0854
ea68d270ff55
0578042db319
42619d35c7af
1da177e4c3f4

194ec0c07895
1e874f448365

ae9f9f073963

1da177e4c3f4
806f80a6fc20


























806f80a6fc20

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
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
  

                           


                                                               
  





                                                        

                                                   

   









                            

                        
                        
                         
                        
                              
 

                            
                          

                          

                          

                       
  

                                                                              


                                         
                                        




                                    




                                                                              
 
                                                           
 
                                                         
                                            
                                    
                                         
 
                                             
 

                                        
 
                                                                      
                                              

                                                   

                                            
 





                                                                              
 
                                             
                                                                    
                                                                      
 
                                                                                
                                                                     
                                                                 
                      

                                                                              
         
 
                                             
                                                                  

                        

 
                                                                
                                                            
 
                                                                       


                                        

                       
                                                                  



                                                                         

 


                                                                   
 
                                                         
 
                                       
                                            
                                      
 
                                            
                       
 
                                                     

                                                                  
                                                          
                                                            
 
                               
                                                  
 
                                        
                                             
                                                   


                                   
                                                              

                      
 
                                        

 
                                                                 
 
                        
                                                

                       
                           

 
                                                                
                                                                            
 
                                                                     
 
                        
                                       
                     
                             

                            






                                          
                                                                               
         
                                                              
                              

 
                                                       
                                                                                
                                                         
 
                                                         
                                               
                                                            

                                  
                                                                            
 
                        

                                                                        
                                                                      
 

                                   
                    
                                      
                                             
 
                                    

 
                                                              
                                                            
 
                        
                                              
                    
                               
                                            


                                                     

 

                                                                                
 
                                                         
                           
                                
 

                                                                      



                                                                

                                      
                                       
                                                                          

                                                

                                                                            
                                                       
                                       
                                                                    


                                           
         


                               

                                                                 

                                                                            
                                     
                 
                                        
                                                                             


                              
                                                        

                               
                                        
                                                      

                      
                      
         
 

                                  

                                     
                            


                                                
 
                                                              
                                                        
                                        
         
 
                    
 
                                                    

                                
                                                           
                                  
                                                       
                           


  

                                                                        
   

                                                                     
 
                                                         
                                            
                          
                                   

                                                  
 
                                                                           
 
                                                                    
                                                                             

                         
 
                          
                                                 
            
                                                  
 
                                                               
 
                       
 





                                                             



                                                          
                                                                        
                                                           






                                                                              
                                                           
 
                                      
                                                                               

                                                                 

                                                          
                                                                       
         
 


                 
  

                                                                          
   
                                                      
 
                                                         
                                            
                               
                     
                                             

                                      

                                             

                                                

                              
                              
 
                                                 
                                                                       
                                                                     

                         

                               




                                                                       

                                                                         
 
                                                                               


                                                                       
 




                                                                              
 
                                                        

                                                                          
                                                                         
                                  





                                                                        
                                                                   



                                                                               

                                                               
                                                      

                                                                                
                                



                                                                 



                                                                              

                                                                           
                                       






                                                                     

                                                                     

                                      
                                                                            


                                                           
                                                                     
                                                                            


                                                                
                                                         
                                                                     
 


                  
                                                
 
                                                         
                            
 
                                                       
 
          

                                                                                
          



                                                                                
           
                                                                             
                                                          
                                                                              
                                                     
                                                           


          


                                                                                
                                                                         
                                                           
                                                           
                                                                             
                                                           

         
                                              

                                                        

                                             
 


























                                                                          

                                           
/*
 * IDE ATAPI floppy driver.
 *
 * Copyright (C) 1996-1999  Gadi Oxman <gadio@netvision.net.il>
 * Copyright (C) 2000-2002  Paul Bristow <paul@paulbristow.net>
 * Copyright (C) 2005       Bartlomiej Zolnierkiewicz
 *
 * This driver supports the following IDE floppy drives:
 *
 * LS-120/240 SuperDisk
 * Iomega Zip 100/250
 * Iomega PC Card Clik!/PocketZip
 *
 * For a historical changelog see
 * Documentation/ide/ChangeLog.ide-floppy.1996-2002
 */

#include <linux/types.h>
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/timer.h>
#include <linux/mm.h>
#include <linux/interrupt.h>
#include <linux/major.h>
#include <linux/errno.h>
#include <linux/genhd.h>
#include <linux/cdrom.h>
#include <linux/ide.h>
#include <linux/hdreg.h>
#include <linux/bitops.h>
#include <linux/mutex.h>
#include <linux/scatterlist.h>

#include <scsi/scsi_ioctl.h>

#include <asm/byteorder.h>
#include <linux/uaccess.h>
#include <linux/io.h>
#include <asm/unaligned.h>

#include "ide-floppy.h"

/*
 * After each failed packet command we issue a request sense command and retry
 * the packet command IDEFLOPPY_MAX_PC_RETRIES times.
 */
#define IDEFLOPPY_MAX_PC_RETRIES	3

/* format capacities descriptor codes */
#define CAPACITY_INVALID	0x00
#define CAPACITY_UNFORMATTED	0x01
#define CAPACITY_CURRENT	0x02
#define CAPACITY_NO_CARTRIDGE	0x03

/*
 * The following delay solves a problem with ATAPI Zip 100 drive where BSY bit
 * was apparently being deasserted before the unit was ready to receive data.
 */
#define IDEFLOPPY_PC_DELAY	(HZ/20)	/* default delay for ZIP 100 (50ms) */

static int ide_floppy_callback(ide_drive_t *drive, int dsc)
{
	struct ide_disk_obj *floppy = drive->driver_data;
	struct ide_atapi_pc *pc = drive->pc;
	struct request *rq = pc->rq;
	int uptodate = pc->error ? 0 : 1;

	ide_debug_log(IDE_DBG_FUNC, "enter");

	if (drive->failed_pc == pc)
		drive->failed_pc = NULL;

	if (pc->c[0] == GPCMD_READ_10 || pc->c[0] == GPCMD_WRITE_10 ||
	    rq->cmd_type == REQ_TYPE_BLOCK_PC)
		uptodate = 1; /* FIXME */
	else if (pc->c[0] == GPCMD_REQUEST_SENSE) {

		u8 *buf = bio_data(rq->bio);

		if (!pc->error) {
			floppy->sense_key = buf[2] & 0x0F;
			floppy->asc = buf[12];
			floppy->ascq = buf[13];
			floppy->progress_indication = buf[15] & 0x80 ?
				(u16)get_unaligned((u16 *)&buf[16]) : 0x10000;

			if (drive->failed_pc)
				ide_debug_log(IDE_DBG_PC, "pc = %x",
					      drive->failed_pc->c[0]);

			ide_debug_log(IDE_DBG_SENSE, "sense key = %x, asc = %x,"
				      "ascq = %x", floppy->sense_key,
				      floppy->asc, floppy->ascq);
		} else
			printk(KERN_ERR PFX "Error in REQUEST SENSE itself - "
			       "Aborting request!\n");
	}

	if (rq->cmd_type == REQ_TYPE_SPECIAL)
		rq->errors = uptodate ? 0 : IDE_DRV_ERROR_GENERAL;

	return uptodate;
}

static void ide_floppy_report_error(struct ide_disk_obj *floppy,
				    struct ide_atapi_pc *pc)
{
	/* suppress error messages resulting from Medium not present */
	if (floppy->sense_key == 0x02 &&
	    floppy->asc       == 0x3a &&
	    floppy->ascq      == 0x00)
		return;

	printk(KERN_ERR PFX "%s: I/O error, pc = %2x, key = %2x, "
			"asc = %2x, ascq = %2x\n",