aboutsummaryrefslogtreecommitdiffstats
path: root/net/atm/lec.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/atm/lec.c')
0 files changed, 0 insertions, 0 deletions
FS2] Debug code simplification, update TODO' href='/cgit/cgit.cgi/litmus-rt-budgetable-locks.git/.git/commit/fs/jffs2/debug.h?h=update_litmus_2019&id=733802d974e5af42acb7cd61b16c0ce6dd03b7ed'>733802d974e5
182ec4eee397
733802d974e5


e0c8e42f8f21




e631ddba5887
733802d974e5
e0c8e42f8f21

008531f4c30d
e0c8e42f8f21
2c61cb250cf7
733802d974e5
e0c8e42f8f21

45ca1b509ea1
e0c8e42f8f21

182ec4eee397
e0c8e42f8f21
733802d974e5
e0c8e42f8f21

730554d94607










e0c8e42f8f21
81e39cf0297c



730554d94607
81e39cf0297c








730554d94607
e0c8e42f8f21


81e39cf0297c
ba25f9dcc4ea
8e24eea72806
e0c8e42f8f21
730554d94607
e0c8e42f8f21

81e39cf0297c
ba25f9dcc4ea
8e24eea72806
e0c8e42f8f21
182ec4eee397
e0c8e42f8f21

81e39cf0297c
ba25f9dcc4ea
8e24eea72806
e0c8e42f8f21
730554d94607
e0c8e42f8f21

81e39cf0297c
ba25f9dcc4ea
8e24eea72806
e0c8e42f8f21

182ec4eee397
e0c8e42f8f21




733802d974e5
e0c8e42f8f21
733802d974e5
730554d94607
2c61cb250cf7




730554d94607
e0c8e42f8f21

733802d974e5
e0c8e42f8f21
733802d974e5
e0c8e42f8f21
e0e3006f79a6
733802d974e5
e0e3006f79a6
733802d974e5
e0e3006f79a6
e0c8e42f8f21


733802d974e5
e0c8e42f8f21
733802d974e5
e0c8e42f8f21
e0c8e42f8f21
f538c96ba2a3
e0c8e42f8f21
733802d974e5
e0c8e42f8f21
733802d974e5
e0c8e42f8f21
730554d94607
f538c96ba2a3
e0c8e42f8f21
733802d974e5
e0c8e42f8f21
733802d974e5
e0c8e42f8f21

e631ddba5887

733802d974e5







e631ddba5887
733802d974e5
e631ddba5887

f538c96ba2a3

733802d974e5
f538c96ba2a3
733802d974e5
f538c96ba2a3

aa98d7cf59b5





f538c96ba2a3
45ca1b509ea1







e0c8e42f8f21


730554d94607
e0c8e42f8f21









730554d94607
e0c8e42f8f21


















730554d94607
e0c8e42f8f21














730554d94607

e0c8e42f8f21
730554d94607
e0c8e42f8f21
730554d94607


e0c8e42f8f21



























730554d94607
45ca1b509ea1



e0c8e42f8f21


730554d94607


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


                                                     
                                       
                                                               




                                                                       
   
 


                       
                        

                             
                               

      
                             
                                        
                                 
                       
 
  


                                                                            




                                    
                                  
                                  

      
                             
                                    
                                     
                                   

      
                                                                          

                               
  
                                                                        
                                          

                             










                             
                                    



                                                
 








                                                             
 


                                                                         
                                                                         
                                                                         
                                                                         
                  
 

                                                                         
                                                                         
                                                                         
                                                                         
                  
 

                                                                         
                                                                         
                                                                         
                                                                         
                  
 

                                                                         
                                                                         
                                                                         
                                                                         

                  
  




                                                                           
                                                               
     
                               
      




                                                                       
 

                                       
                                                               
     
                              
      
                                   
                                                               
     
                               
      


                                                          
                                                               
     
                              
      
 
                                                     
                                 
                                                               
     
                             
      
 
                                                            
                                  
                                                               
     
                              

      

                                 







                                                               
     
                             

      

                                  
                                                               
     
                              

      





                                                            
 







                                                                   


                                                                
    









                                                                       
 


















                                                                            
    














                                                                    

                                            
                                                   
                                             
                                                    


                                                      



























                                                                 
                              



                                                                 


                                                  


                                     
/*
 * JFFS2 -- Journalling Flash File System, Version 2.
 *
 * Copyright © 2001-2007 Red Hat, Inc.
 * Copyright © 2004-2010 David Woodhouse <dwmw2@infradead.org>
 *
 * Created by David Woodhouse <dwmw2@infradead.org>
 *
 * For licensing information, see the file 'LICENCE' in this directory.
 *
 */

#ifndef _JFFS2_DEBUG_H_
#define _JFFS2_DEBUG_H_

#include <linux/sched.h>

#ifndef CONFIG_JFFS2_FS_DEBUG
#define CONFIG_JFFS2_FS_DEBUG 0
#endif

#if CONFIG_JFFS2_FS_DEBUG > 0
/* Enable "paranoia" checks and dumps */
#define JFFS2_DBG_PARANOIA_CHECKS
#define JFFS2_DBG_DUMPS

/*
 * By defining/undefining the below macros one may select debugging messages
 * fro specific JFFS2 subsystems.
 */
#define JFFS2_DBG_READINODE_MESSAGES
#define JFFS2_DBG_FRAGTREE_MESSAGES
#define JFFS2_DBG_DENTLIST_MESSAGES
#define JFFS2_DBG_NODEREF_MESSAGES
#define JFFS2_DBG_INOCACHE_MESSAGES
#define JFFS2_DBG_SUMMARY_MESSAGES
#define JFFS2_DBG_FSBUILD_MESSAGES
#endif

#if CONFIG_JFFS2_FS_DEBUG > 1
#define JFFS2_DBG_FRAGTREE2_MESSAGES
#define JFFS2_DBG_READINODE2_MESSAGES
#define JFFS2_DBG_MEMALLOC_MESSAGES
#endif

/* Sanity checks are supposed to be light-weight and enabled by default */
#define JFFS2_DBG_SANITY_CHECKS

/*
 * Dx() are mainly used for debugging messages, they must go away and be
 * superseded by nicer dbg_xxx() macros...
 */
#if CONFIG_JFFS2_FS_DEBUG > 0
#define D1(x) x
#else
#define D1(x)
#endif

#if CONFIG_JFFS2_FS_DEBUG > 1
#define D2(x) x
#else
#define D2(x)
#endif

/* The prefixes of JFFS2 messages */
#define JFFS2_DBG_PREFIX	"[JFFS2 DBG]"
#define JFFS2_ERR_PREFIX	"JFFS2 error:"
#define JFFS2_WARN_PREFIX	"JFFS2 warning:"
#define JFFS2_NOTICE_PREFIX	"JFFS2 notice:"

#define JFFS2_ERR	KERN_ERR
#define JFFS2_WARN	KERN_WARNING
#define JFFS2_NOT	KERN_NOTICE
#define JFFS2_DBG	KERN_DEBUG

#define JFFS2_DBG_MSG_PREFIX	JFFS2_DBG JFFS2_DBG_PREFIX
#define JFFS2_ERR_MSG_PREFIX	JFFS2_ERR JFFS2_ERR_PREFIX
#define JFFS2_WARN_MSG_PREFIX	JFFS2_WARN JFFS2_WARN_PREFIX
#define JFFS2_NOTICE_MSG_PREFIX	JFFS2_NOT JFFS2_NOTICE_PREFIX

/* JFFS2 message macros */
#define JFFS2_ERROR(fmt, ...)						\
	do {								\
		printk(JFFS2_ERR_MSG_PREFIX				\
			" (%d) %s: " fmt, task_pid_nr(current),		\
			__func__ , ##__VA_ARGS__);			\
	} while(0)

#define JFFS2_WARNING(fmt, ...)						\
	do {								\
		printk(JFFS2_WARN_MSG_PREFIX				\
			" (%d) %s: " fmt, task_pid_nr(current),		\
			__func__ , ##__VA_ARGS__);			\
	} while(0)

#define JFFS2_NOTICE(fmt, ...)						\
	do {								\
		printk(JFFS2_NOTICE_MSG_PREFIX				\
			" (%d) %s: " fmt, task_pid_nr(current),		\
			__func__ , ##__VA_ARGS__);			\
	} while(0)

#define JFFS2_DEBUG(fmt, ...)						\
	do {								\
		printk(JFFS2_DBG_MSG_PREFIX				\
			" (%d) %s: " fmt, task_pid_nr(current),		\
			__func__ , ##__VA_ARGS__);			\
	} while(0)

/*
 * We split our debugging messages on several parts, depending on the JFFS2
 * subsystem the message belongs to.
 */
/* Read inode debugging messages */
#ifdef JFFS2_DBG_READINODE_MESSAGES
#define dbg_readinode(fmt, ...)	JFFS2_DEBUG(fmt, ##__VA_ARGS__)
#else
#define dbg_readinode(fmt, ...)
#endif
#ifdef JFFS2_DBG_READINODE2_MESSAGES
#define dbg_readinode2(fmt, ...)	JFFS2_DEBUG(fmt, ##__VA_ARGS__)
#else
#define dbg_readinode2(fmt, ...)
#endif

/* Fragtree build debugging messages */
#ifdef JFFS2_DBG_FRAGTREE_MESSAGES
#define dbg_fragtree(fmt, ...)	JFFS2_DEBUG(fmt, ##__VA_ARGS__)
#else
#define dbg_fragtree(fmt, ...)
#endif
#ifdef JFFS2_DBG_FRAGTREE2_MESSAGES
#define dbg_fragtree2(fmt, ...)	JFFS2_DEBUG(fmt, ##__VA_ARGS__)
#else
#define dbg_fragtree2(fmt, ...)
#endif

/* Directory entry list manilulation debugging messages */
#ifdef JFFS2_DBG_DENTLIST_MESSAGES
#define dbg_dentlist(fmt, ...)	JFFS2_DEBUG(fmt, ##__VA_ARGS__)
#else
#define dbg_dentlist(fmt, ...)
#endif

/* Print the messages about manipulating node_refs */
#ifdef JFFS2_DBG_NODEREF_MESSAGES
#define dbg_noderef(fmt, ...)	JFFS2_DEBUG(fmt, ##__VA_ARGS__)
#else
#define dbg_noderef(fmt, ...)
#endif

/* Manipulations with the list of inodes (JFFS2 inocache) */
#ifdef JFFS2_DBG_INOCACHE_MESSAGES
#define dbg_inocache(fmt, ...)	JFFS2_DEBUG(fmt, ##__VA_ARGS__)
#else
#define dbg_inocache(fmt, ...)
#endif

/* Summary debugging messages */
#ifdef JFFS2_DBG_SUMMARY_MESSAGES
#define dbg_summary(fmt, ...)	JFFS2_DEBUG(fmt, ##__VA_ARGS__)
#else
#define dbg_summary(fmt, ...)
#endif

/* File system build messages */
#ifdef JFFS2_DBG_FSBUILD_MESSAGES
#define dbg_fsbuild(fmt, ...)	JFFS2_DEBUG(fmt, ##__VA_ARGS__)
#else
#define dbg_fsbuild(fmt, ...)
#endif

/* Watch the object allocations */
#ifdef JFFS2_DBG_MEMALLOC_MESSAGES
#define dbg_memalloc(fmt, ...)	JFFS2_DEBUG(fmt, ##__VA_ARGS__)
#else
#define dbg_memalloc(fmt, ...)
#endif

/* Watch the XATTR subsystem */
#ifdef JFFS2_DBG_XATTR_MESSAGES
#define dbg_xattr(fmt, ...)  JFFS2_DEBUG(fmt, ##__VA_ARGS__)
#else
#define dbg_xattr(fmt, ...)
#endif 

/* "Sanity" checks */
void
__jffs2_dbg_acct_sanity_check_nolock(struct jffs2_sb_info *c,
				     struct jffs2_eraseblock *jeb);
void
__jffs2_dbg_acct_sanity_check(struct jffs2_sb_info *c,
			      struct jffs2_eraseblock *jeb);

/* "Paranoia" checks */
void