summaryrefslogtreecommitdiffstats
path: root/dis/Pointer/pointer.c
diff options
context:
space:
mode:
authorleochanj <jbakita@cs.unc.edu>2020-10-20 21:46:20 -0400
committerleochanj <jbakita@cs.unc.edu>2020-10-20 21:46:20 -0400
commite2b50015cebdfba68699abd6e8575e38230f5a78 (patch)
tree8bc28e082ad58e5fec07de81fd7c7f9bd9db2686 /dis/Pointer/pointer.c
parent79f30887129145e15e5172e36a7d7602859fc932 (diff)
parentdd606a16e840880e7617b140f6083af8ea83b6b7 (diff)
Merge branch 'rtas20-wip' into sd-vbs
Diffstat (limited to 'dis/Pointer/pointer.c')
-rw-r--r--dis/Pointer/pointer.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/dis/Pointer/pointer.c b/dis/Pointer/pointer.c
index d97f276..0325c64 100644
--- a/dis/Pointer/pointer.c
+++ b/dis/Pointer/pointer.c
@@ -146,10 +146,11 @@ int main(int argc, char **argv) {
146 146
147 endTime = time(NULL); 147 endTime = time(NULL);
148 148
149 volatile int _stop_optimizer = thread[l].hops + l; 149 volatile int _stop_optimizer = 0;
150 /*for (l=0; l<n; l++){ 150 for (l=0; l<n; l++){
151 fprintf(stdout, "%lu hops on thread %d\n", thread[l].hops, l); 151 _stop_optimizer += thread[l].hops + l;
152 }*/ 152 // fprintf(stdout, "%lu hops on thread %d\n", thread[l].hops, l);
153 }
153 154
154 fprintf(stderr, "time for pointer stressmark = %f seconds.\n", 155 fprintf(stderr, "time for pointer stressmark = %f seconds.\n",
155 difftime(endTime, startTime)); 156 difftime(endTime, startTime));
0754476362f9f4fa3199a637f2331c5993'>fc6a1107544
02a47617cdc


fc6a1107544
02a47617cdc


09a2c3c0d3d
02a47617cdc









5c313e9a777
02a47617cdc

5c313e9a777
02a47617cdc








09a2c3c0d3d
02a47617cdc
09a2c3c0d3d


02a47617cdc







09a2c3c0d3d
02a47617cdc





09a2c3c0d3d
02a47617cdc



09a2c3c0d3d
02a47617cdc




09a2c3c0d3d
02a47617cdc
893873f3965

02a47617cdc





4798a2b84ea



893873f3965
4798a2b84ea




4798a2b84ea
4798a2b84ea


424efe9caf6
02a47617cdc
09a2c3c0d3d
893873f3965

02a47617cdc






6ed106549d1
02a47617cdc

893873f3965








893873f3965
09a2c3c0d3d
893873f3965
02a47617cdc

bbd5898d39a


6ed106549d1
02a47617cdc

09a2c3c0d3d
02a47617cdc



09a2c3c0d3d
02a47617cdc


ab638e69ff7






09a2c3c0d3d
02a47617cdc
09a2c3c0d3d
57c81fffc86
09a2c3c0d3d





ab638e69ff7
09a2c3c0d3d
02a47617cdc












09a2c3c0d3d

02a47617cdc





09a2c3c0d3d

02a47617cdc
09a2c3c0d3d
893873f3965
09a2c3c0d3d
09a2c3c0d3d


02a47617cdc
09a2c3c0d3d
02a47617cdc












09a2c3c0d3d



02a47617cdc



02a47617cdc
02a47617cdc
09a2c3c0d3d

02a47617cdc


09a2c3c0d3d
02a47617cdc




09a2c3c0d3d

02a47617cdc


09a2c3c0d3d


02a47617cdc

09a2c3c0d3d

02a47617cdc
02a47617cdc
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









































                                                                      
                                     

  
                                                  





                                                   
                                






                                         
                        

 







                                               





                                              
                                               

                                             



                                                 


         
                                                              
 
                                         
                    
                                               





                              
                                    


                                          
                                                                       


                                                                             
                                                









                                                  
                                       

                                                       
                                        








                                      
                       
 


                                                







                                   
                                        





                                                     
                                               



                                              
                                   




                                             
                                               
 

                                   





                           



                                               
                           




                                             
                              


                 
                                                                         
 
                                               

                                 






                                   
                                    

         








                                                                 
                
                                        
                                           

         


                                      
                            

 
                                                            



                                                                 
                           


                 






                                                      
                                              
 
                                                   
                                                     





                                                              
                                                   
                                              












                                                                        

                               





                                                            

                                                            
                               
                              
                    
                      


                                   
                  
                                 












                                                                      



                                                      



                                                    
                      
 

                                                      


                         
                               




                                 

                                               


                                       


                                                       

                         

                                                      
                     
 
/*
 * File: pep-gprs.c
 *
 * GPRS over Phonet pipe end point socket
 *
 * Copyright (C) 2008 Nokia Corporation.
 *
 * Author: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA
 */

#include <linux/kernel.h>
#include <linux/netdevice.h>
#include <linux/if_ether.h>
#include <linux/if_arp.h>
#include <net/sock.h>

#include <linux/if_phonet.h>
#include <net/tcp_states.h>
#include <net/phonet/gprs.h>

#define GPRS_DEFAULT_MTU 1400

struct gprs_dev {
	struct sock		*sk;
	void			(*old_state_change)(struct sock *);
	void			(*old_data_ready)(struct sock *, int);
	void			(*old_write_space)(struct sock *);

	struct net_device	*dev;
};

static __be16 gprs_type_trans(struct sk_buff *skb)
{