-
Notifications
You must be signed in to change notification settings - Fork 0
/
linux-2.6-591-chopstix-intern.patch
655 lines (614 loc) · 17.8 KB
/
linux-2.6-591-chopstix-intern.patch
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
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
Index: linux-2.6.27.y/arch/Kconfig
===================================================================
--- linux-2.6.27.y.orig/arch/Kconfig
+++ linux-2.6.27.y/arch/Kconfig
@@ -13,9 +13,18 @@ config OPROFILE
If unsure, say N.
+config CHOPSTIX
+ bool "Chopstix (PlanetLab)"
+ depends on MODULES && OPROFILE
+ help
+ Chopstix allows you to monitor various events by summarizing them
+ in lossy data structures and transferring these data structures
+ into user space. If in doubt, say "N".
+
config HAVE_OPROFILE
def_bool n
+
config KPROBES
bool "Kprobes"
depends on KALLSYMS && MODULES
Index: linux-2.6.27.y/arch/x86/kernel/asm-offsets_32.c
===================================================================
--- linux-2.6.27.y.orig/arch/x86/kernel/asm-offsets_32.c
+++ linux-2.6.27.y/arch/x86/kernel/asm-offsets_32.c
@@ -9,6 +9,7 @@
#include <linux/signal.h>
#include <linux/personality.h>
#include <linux/suspend.h>
+#include <linux/arrays.h>
#include <linux/kbuild.h>
#include <asm/ucontext.h>
#include "sigframe.h"
@@ -24,9 +25,20 @@
#include <linux/lguest.h>
#include "../../../drivers/lguest/lg.h"
+
+#define STACKOFFSET(sym, str, mem) \
+ DEFINE(sym, offsetof(struct str, mem)-sizeof(struct str));
+
/* workaround for a warning with -Wmissing-prototypes */
void foo(void);
+struct event_spec {
+ unsigned long pc;
+ unsigned long dcookie;
+ unsigned count;
+ unsigned int number;
+};
+
void foo(void)
{
OFFSET(IA32_SIGCONTEXT_ax, sigcontext, ax);
@@ -50,6 +62,16 @@ void foo(void)
OFFSET(CPUINFO_x86_vendor_id, cpuinfo_x86, x86_vendor_id);
BLANK();
+ STACKOFFSET(TASK_thread, task_struct, thread);
+ STACKOFFSET(THREAD_esp, thread_struct, sp);
+ STACKOFFSET(EVENT_event_data, event, event_data);
+ STACKOFFSET(EVENT_task, event, task);
+ STACKOFFSET(EVENT_event_type, event, event_type);
+ STACKOFFSET(SPEC_number, event_spec, number);
+ DEFINE(EVENT_SIZE, sizeof(struct event));
+ DEFINE(SPEC_SIZE, sizeof(struct event_spec));
+ DEFINE(SPEC_EVENT_SIZE, sizeof(struct event_spec)+sizeof(struct event));
+
OFFSET(TI_task, thread_info, task);
OFFSET(TI_exec_domain, thread_info, exec_domain);
OFFSET(TI_flags, thread_info, flags);
Index: linux-2.6.27.y/arch/x86/kernel/entry_32.S
===================================================================
--- linux-2.6.27.y.orig/arch/x86/kernel/entry_32.S
+++ linux-2.6.27.y/arch/x86/kernel/entry_32.S
@@ -426,6 +426,33 @@ ENTRY(system_call)
cmpl $(nr_syscalls), %eax
jae syscall_badsys
syscall_call:
+ /* Move Chopstix syscall probe here */
+ /* Save and clobber: eax, ecx, ebp */
+ pushl %eax
+ pushl %ecx
+ pushl %ebp
+ movl %esp, %ebp
+ subl $SPEC_EVENT_SIZE, %esp
+ movl rec_event, %ecx
+ testl %ecx, %ecx
+ jz carry_on
+ # struct event is first, just below %ebp
+ movl %eax, (SPEC_number-EVENT_SIZE)(%ebp)
+ leal -SPEC_EVENT_SIZE(%ebp), %eax
+ movl %eax, EVENT_event_data(%ebp)
+ movl $6, EVENT_event_type(%ebp)
+ movl rec_event, %edx
+ movl $1, 4(%esp)
+ leal -EVENT_SIZE(%ebp), %eax
+ movl %eax, (%esp)
+ call rec_event_asm
+carry_on:
+ addl $SPEC_EVENT_SIZE, %esp
+ popl %ebp
+ popl %ecx
+ popl %eax
+ /* End chopstix */
+
call *sys_call_table(,%eax,4)
movl %eax,PT_EAX(%esp) # store the return value
syscall_exit:
Index: linux-2.6.27.y/arch/x86/mm/fault.c
===================================================================
--- linux-2.6.27.y.orig/arch/x86/mm/fault.c
+++ linux-2.6.27.y/arch/x86/mm/fault.c
@@ -79,6 +79,15 @@ static inline int notify_page_fault(stru
#endif
}
+
+extern void (*rec_event)(void *,unsigned int);
+struct event_spec {
+ unsigned long pc;
+ unsigned long dcookie;
+ unsigned count;
+ unsigned char reason;
+};
+
/*
* X86_32
* Sometimes AMD Athlon/Opteron CPUs report invalid exceptions on prefetch.
Index: linux-2.6.27.y/drivers/oprofile/cpu_buffer.c
===================================================================
--- linux-2.6.27.y.orig/drivers/oprofile/cpu_buffer.c
+++ linux-2.6.27.y/drivers/oprofile/cpu_buffer.c
@@ -21,6 +21,7 @@
#include <linux/oprofile.h>
#include <linux/vmalloc.h>
#include <linux/errno.h>
+#include <linux/arrays.h>
#include "event_buffer.h"
#include "cpu_buffer.h"
@@ -147,6 +148,17 @@ static void increment_head(struct oprofi
b->head_pos = 0;
}
+#ifdef CONFIG_CHOPSTIX
+
+struct event_spec {
+ unsigned int pc;
+ unsigned long dcookie;
+ unsigned count;
+};
+
+extern void (*rec_event)(void *,unsigned int);
+#endif
+
static inline void
add_sample(struct oprofile_cpu_buffer * cpu_buf,
unsigned long pc, unsigned long event)
@@ -155,6 +167,7 @@ add_sample(struct oprofile_cpu_buffer *
entry->eip = pc;
entry->event = event;
increment_head(cpu_buf);
+
}
static inline void
@@ -250,8 +263,28 @@ void oprofile_add_sample(struct pt_regs
{
int is_kernel = !user_mode(regs);
unsigned long pc = profile_pc(regs);
+ int res=0;
+#ifdef CONFIG_CHOPSTIX
+ if (rec_event) {
+ struct event esig;
+ struct event_spec espec;
+ esig.task = current;
+ espec.pc=pc;
+ espec.count=1;
+ esig.event_data=&espec;
+ esig.event_type=event; /* index in the event array currently set up */
+ /* make sure the counters are loaded in the order we want them to show up*/
+ (*rec_event)(&esig, 1);
+ }
+ else {
oprofile_add_ext_sample(pc, regs, event, is_kernel);
+ }
+#else
+ oprofile_add_ext_sample(pc, regs, event, is_kernel);
+#endif
+
+
}
void oprofile_add_pc(unsigned long pc, int is_kernel, unsigned long event)
Index: linux-2.6.27.y/fs/bio.c
===================================================================
--- linux-2.6.27.y.orig/fs/bio.c
+++ linux-2.6.27.y/fs/bio.c
@@ -27,6 +27,7 @@
#include <linux/workqueue.h>
#include <linux/blktrace_api.h>
#include <scsi/sg.h> /* for struct sg_iovec */
+#include <linux/arrays.h>
static struct kmem_cache *bio_slab __read_mostly;
@@ -44,6 +45,7 @@ static struct biovec_slab bvec_slabs[BIO
};
#undef BV
+
/*
* fs_bio_set is the bio_set containing bio and iovec memory pools used by
* IO code that does not need private memory pools.
@@ -1171,6 +1173,14 @@ void bio_check_pages_dirty(struct bio *b
}
}
+struct event_spec {
+ unsigned long pc;
+ unsigned long dcookie;
+ unsigned count;
+ unsigned char reason;
+};
+
+extern void (*rec_event)(void *,unsigned int);
/**
* bio_endio - end I/O on a bio
* @bio: bio
@@ -1192,6 +1202,24 @@ void bio_endio(struct bio *bio, int erro
else if (!test_bit(BIO_UPTODATE, &bio->bi_flags))
error = -EIO;
+#if 0
+ if (rec_event) {
+ struct event event;
+ struct event_spec espec;
+ unsigned long eip;
+
+ espec.reason = 1;/*response */
+
+ eip = bio->bi_end_io;
+ event.event_data=&espec;
+ espec.pc=eip;
+ event.event_type=3;
+ /* index in the event array currently set up */
+ /* make sure the counters are loaded in the order we want them to show up*/
+ (*rec_event)(&event, bytes_done);
+ }
+#endif
+
if (bio->bi_end_io)
bio->bi_end_io(bio, error);
}
Index: linux-2.6.27.y/fs/exec.c
===================================================================
--- linux-2.6.27.y.orig/fs/exec.c
+++ linux-2.6.27.y/fs/exec.c
@@ -27,6 +27,7 @@
#include <linux/fdtable.h>
#include <linux/mm.h>
#include <linux/stat.h>
+#include <linux/dcookies.h>
#include <linux/fcntl.h>
#include <linux/smp_lock.h>
#include <linux/swap.h>
@@ -698,6 +699,13 @@ struct file *open_exec(const char *name)
goto out;
}
+ #ifdef CONFIG_CHOPSTIX
+ unsigned long cookie;
+ extern void (*rec_event)(void *, unsigned int);
+ if (rec_event && !nd.path.dentry->d_cookie)
+ get_dcookie(&nd.path, &cookie);
+ #endif
+
return file;
out_path_put:
Index: linux-2.6.27.y/include/linux/arrays.h
===================================================================
--- /dev/null
+++ linux-2.6.27.y/include/linux/arrays.h
@@ -0,0 +1,36 @@
+#ifndef __ARRAYS_H__
+#define __ARRAYS_H__
+#include <linux/list.h>
+
+#define SAMPLING_METHOD_DEFAULT 0
+#define SAMPLING_METHOD_LOG 1
+
+/* Every probe has an array handler */
+
+/* XXX - Optimize this structure */
+
+extern void (*rec_event)(void *,unsigned int);
+struct array_handler {
+ struct list_head link;
+ unsigned int (*hash_func)(void *);
+ unsigned int (*sampling_func)(void *,int,void *);
+ unsigned short size;
+ unsigned int threshold;
+ unsigned char **expcount;
+ unsigned int sampling_method;
+ unsigned int **arrays;
+ unsigned int arraysize;
+ unsigned int num_samples[2];
+ void **epoch_samples; /* size-sized lists of samples */
+ unsigned int (*serialize)(void *, void *);
+ unsigned char code[5];
+};
+
+struct event {
+ struct list_head link;
+ void *event_data;
+ unsigned int count;
+ unsigned int event_type;
+ struct task_struct *task;
+};
+#endif
Index: linux-2.6.27.y/include/linux/sched.h
===================================================================
--- linux-2.6.27.y.orig/include/linux/sched.h
+++ linux-2.6.27.y/include/linux/sched.h
@@ -1137,6 +1137,11 @@ struct task_struct {
cputime_t utime, stime, utimescaled, stimescaled;
cputime_t gtime;
cputime_t prev_utime, prev_stime;
+
+ #ifdef CONFIG_CHOPSTIX
+ unsigned long last_interrupted, last_ran_j;
+ #endif
+
unsigned long nvcsw, nivcsw; /* context switch counts */
struct timespec start_time; /* monotonic time */
struct timespec real_start_time; /* boot based time */
Index: linux-2.6.27.y/kernel/sched.c
===================================================================
--- linux-2.6.27.y.orig/kernel/sched.c
+++ linux-2.6.27.y/kernel/sched.c
@@ -10,7 +10,7 @@
* 1998-11-19 Implemented schedule_timeout() and related stuff
* by Andrea Arcangeli
* 2002-01-04 New ultra-scalable O(1) scheduler by Ingo Molnar:
- * hybrid priority-list and round-robin design with
+ * hybrid priority-list and round-robin deventn with
* an array-switch method of distributing timeslices
* and per-CPU runqueues. Cleanups and useful suggestions
* by Davide Libenzi, preemptible kernel bits by Robert Love.
@@ -73,12 +73,16 @@
#include <linux/ftrace.h>
#include <linux/vs_sched.h>
#include <linux/vs_cvirt.h>
+#include <linux/arrays.h>
#include <asm/tlb.h>
#include <asm/irq_regs.h>
#include "sched_cpupri.h"
+#define INTERRUPTIBLE -1
+#define RUNNING 0
+
/*
* Convert user-nice values [ -20 ... 0 ... 19 ]
* to static priority [ MAX_RT_PRIO..MAX_PRIO-1 ],
@@ -2376,6 +2380,10 @@ static void __sched_fork(struct task_str
INIT_HLIST_HEAD(&p->preempt_notifiers);
#endif
+#ifdef CONFIG_CHOPSTIX
+ p->last_ran_j = jiffies;
+ p->last_interrupted = INTERRUPTIBLE;
+#endif
/*
* We mark the process as running here, but have not actually
* inserted it onto the runqueue yet. This guarantees that
@@ -4436,6 +4444,29 @@ pick_next_task(struct rq *rq, struct tas
}
}
+void (*rec_event)(void *,unsigned int) = NULL;
+EXPORT_SYMBOL(rec_event);
+#ifdef CONFIG_CHOPSTIX
+
+struct event_spec {
+ unsigned long pc;
+ unsigned long dcookie;
+ unsigned int count;
+ unsigned int reason;
+};
+
+/* To support safe calling from asm */
+asmlinkage void rec_event_asm (struct event *event_signature_in, unsigned int count) {
+ struct pt_regs *regs;
+ struct event_spec *es = event_signature_in->event_data;
+ regs = task_pt_regs(current);
+ event_signature_in->task=current;
+ es->pc=regs->ip;
+ event_signature_in->count=1;
+ (*rec_event)(event_signature_in, count);
+}
+#endif
+
/*
* schedule() is the main scheduler function.
*/
@@ -4495,6 +4526,61 @@ need_resched_nonpreemptible:
next = pick_next_task(rq, prev);
if (likely(prev != next)) {
+
+#ifdef CONFIG_CHOPSTIX
+ /* Run only if the Chopstix module so decrees it */
+ if (rec_event) {
+ unsigned long diff;
+ int sampling_reason;
+ prev->last_ran_j = jiffies;
+ if (next->last_interrupted!=INTERRUPTIBLE) {
+ if (next->last_interrupted!=RUNNING) {
+ diff = (jiffies-next->last_interrupted);
+ sampling_reason = 0;/* BLOCKING */
+ }
+ else {
+ diff = jiffies-next->last_ran_j;
+ sampling_reason = 1;/* PREEMPTION */
+ }
+
+ if (diff >= HZ/10) {
+ struct event_spec {
+ unsigned long pc;
+ unsigned long dcookie;
+ unsigned int count;
+ unsigned int reason;
+ };
+
+ struct event event;
+ struct event_spec espec;
+ struct pt_regs *regs;
+ regs = task_pt_regs(current);
+
+ espec.reason = sampling_reason;
+ event.event_data=&espec;
+ event.task=next;
+ espec.pc=regs->ip;
+ event.event_type=2;
+ /* index in the event array currently set up */
+ /* make sure the counters are loaded in the order we want them to show up*/
+ (*rec_event)(&event, diff);
+ }
+ }
+ /* next has been elected to run */
+ next->last_interrupted=0;
+
+ /* An uninterruptible process just yielded. Record the current jiffy */
+ if (prev->state & TASK_UNINTERRUPTIBLE) {
+ prev->last_interrupted=jiffies;
+ }
+ /* An interruptible process just yielded, or it got preempted.
+ * Mark it as interruptible */
+ else if (prev->state & TASK_INTERRUPTIBLE) {
+ prev->last_interrupted=INTERRUPTIBLE;
+ }
+ }
+#endif
+
sched_info_switch(prev, next);
rq->nr_switches++;
@@ -5382,6 +5468,7 @@ long sched_setaffinity(pid_t pid, const
get_task_struct(p);
read_unlock(&tasklist_lock);
+
retval = -EPERM;
if ((current->euid != p->euid) && (current->euid != p->uid) &&
!capable(CAP_SYS_NICE))
Index: linux-2.6.27.y/mm/memory.c
===================================================================
--- linux-2.6.27.y.orig/mm/memory.c
+++ linux-2.6.27.y/mm/memory.c
@@ -61,6 +61,7 @@
#include <linux/swapops.h>
#include <linux/elf.h>
+#include <linux/arrays.h>
#include "internal.h"
@@ -2753,6 +2754,15 @@ out:
return ret;
}
+extern void (*rec_event)(void *,unsigned int);
+struct event_spec {
+ unsigned long pc;
+ unsigned long dcookie;
+ unsigned count;
+ unsigned char reason;
+};
+
+
/*
* By the time we get here, we already hold the mm semaphore
*/
@@ -2782,6 +2792,24 @@ int handle_mm_fault(struct mm_struct *mm
if (!pte)
return VM_FAULT_OOM;
+#ifdef CONFIG_CHOPSTIX
+ if (rec_event) {
+ struct event event;
+ struct event_spec espec;
+ struct pt_regs *regs;
+ unsigned int pc;
+ regs = task_pt_regs(current);
+ pc = regs->ip & (unsigned int) ~4095;
+
+ espec.reason = 0; /* alloc */
+ event.event_data=&espec;
+ event.task = current;
+ espec.pc=pc;
+ event.event_type=5;
+ (*rec_event)(&event, 1);
+ }
+#endif
+
return handle_pte_fault(mm, vma, address, pte, pmd, write_access);
}
Index: linux-2.6.27.y/mm/slab.c
===================================================================
--- linux-2.6.27.y.orig/mm/slab.c
+++ linux-2.6.27.y/mm/slab.c
@@ -110,6 +110,7 @@
#include <linux/fault-inject.h>
#include <linux/rtmutex.h>
#include <linux/reciprocal_div.h>
+#include <linux/arrays.h>
#include <linux/debugobjects.h>
#include <asm/cacheflush.h>
@@ -248,6 +249,14 @@ struct slab_rcu {
void *addr;
};
+extern void (*rec_event)(void *,unsigned int);
+struct event_spec {
+ unsigned long pc;
+ unsigned long dcookie;
+ unsigned count;
+ unsigned char reason;
+};
+
/*
* struct array_cache
*
@@ -3469,6 +3478,19 @@ __cache_alloc(struct kmem_cache *cachep,
local_irq_restore(save_flags);
objp = cache_alloc_debugcheck_after(cachep, flags, objp, caller);
prefetchw(objp);
+#ifdef CONFIG_CHOPSTIX
+ if (rec_event && objp) {
+ struct event event;
+ struct event_spec espec;
+
+ espec.reason = 0; /* alloc */
+ event.event_data=&espec;
+ event.task = current;
+ espec.pc=caller;
+ event.event_type=5;
+ (*rec_event)(&event, cachep->buffer_size);
+ }
+#endif
if (unlikely((flags & __GFP_ZERO) && objp))
memset(objp, 0, obj_size(cachep));
@@ -3578,12 +3600,26 @@ free_done:
* Release an obj back to its cache. If the obj has a constructed state, it must
* be in this state _before_ it is released. Called with disabled ints.
*/
-static inline void __cache_free(struct kmem_cache *cachep, void *objp)
+static inline void __cache_free(struct kmem_cache *cachep, void *objp, void *caller)
{
struct array_cache *ac = cpu_cache_get(cachep);
check_irq_off();
- objp = cache_free_debugcheck(cachep, objp, __builtin_return_address(0));
+ objp = cache_free_debugcheck(cachep, objp, caller);
+ #ifdef CONFIG_CHOPSTIX
+ if (rec_event && objp) {
+ struct event event;
+ struct event_spec espec;
+
+ espec.reason = 1; /* free */
+ event.event_data=&espec;
+ event.task = current;
+ espec.pc=caller;
+ event.event_type=4;
+ (*rec_event)(&event, cachep->buffer_size);
+ }
+ #endif
+
vx_slab_free(cachep);
/*
@@ -3714,6 +3750,7 @@ static __always_inline void *__do_kmallo
void *caller)
{
struct kmem_cache *cachep;
+ void *ret;
/* If you want to save a few bytes .text space: replace
* __ with kmem_.
@@ -3741,10 +3778,17 @@ void *__kmalloc_track_caller(size_t size
EXPORT_SYMBOL(__kmalloc_track_caller);
#else
+#ifdef CONFIG_CHOPSTIX
+void *__kmalloc(size_t size, gfp_t flags)
+{
+ return __do_kmalloc(size, flags, __builtin_return_address(0));
+}
+#else
void *__kmalloc(size_t size, gfp_t flags)
{
return __do_kmalloc(size, flags, NULL);
}
+#endif
EXPORT_SYMBOL(__kmalloc);
#endif
@@ -3764,7 +3808,7 @@ void kmem_cache_free(struct kmem_cache *
debug_check_no_locks_freed(objp, obj_size(cachep));
if (!(cachep->flags & SLAB_DEBUG_OBJECTS))
debug_check_no_obj_freed(objp, obj_size(cachep));
- __cache_free(cachep, objp);
+ __cache_free(cachep, objp,__builtin_return_address(0));
local_irq_restore(flags);
}
EXPORT_SYMBOL(kmem_cache_free);
@@ -3790,7 +3834,7 @@ void kfree(const void *objp)
c = virt_to_cache(objp);
debug_check_no_locks_freed(objp, obj_size(c));
debug_check_no_obj_freed(objp, obj_size(c));
- __cache_free(c, (void *)objp);
+ __cache_free(c, (void *)objp,__builtin_return_address(0));
local_irq_restore(flags);
}
EXPORT_SYMBOL(kfree);