Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 46) sorted by relevance

12

/kernel/
Dpid.c106 int offset = nr & BITS_PER_PAGE_MASK; in free_pidmap() local
108 clear_bit(offset, map->page); in free_pidmap()
153 int i, offset, max_scan, pid, last = pid_ns->last_pid; in alloc_pidmap() local
159 offset = pid & BITS_PER_PAGE_MASK; in alloc_pidmap()
166 max_scan = DIV_ROUND_UP(pid_max, BITS_PER_PAGE) - !offset; in alloc_pidmap()
186 if (!test_and_set_bit(offset, map->page)) { in alloc_pidmap()
191 offset = find_next_offset(map, offset); in alloc_pidmap()
192 if (offset >= BITS_PER_PAGE) in alloc_pidmap()
194 pid = mk_pid(pid_ns, map, offset); in alloc_pidmap()
201 offset = 0; in alloc_pidmap()
[all …]
Dkallsyms.c217 unsigned long *offset) in get_symbol_pos() argument
266 if (offset) in get_symbol_pos()
267 *offset = addr - symbol_start; in get_symbol_pos()
276 unsigned long *offset) in kallsyms_lookup_size_offset() argument
280 return !!get_symbol_pos(addr, symbolsize, offset); in kallsyms_lookup_size_offset()
282 return !!module_address_lookup(addr, symbolsize, offset, NULL, namebuf); in kallsyms_lookup_size_offset()
294 unsigned long *offset, in kallsyms_lookup() argument
303 pos = get_symbol_pos(addr, symbolsize, offset); in kallsyms_lookup()
313 return module_address_lookup(addr, symbolsize, offset, modname, in kallsyms_lookup()
336 unsigned long *offset, char *modname, char *name) in lookup_symbol_attrs() argument
[all …]
Drelay.c367 buf->offset = 0; in __relay_reset()
730 if (buf->offset != buf->chan->subbuf_size + 1) { in relay_switch_subbuf()
731 buf->prev_padding = buf->chan->subbuf_size - buf->offset; in relay_switch_subbuf()
756 buf->offset = 0; in relay_switch_subbuf()
758 buf->offset = buf->chan->subbuf_size + 1; in relay_switch_subbuf()
764 if (unlikely(length + buf->offset > buf->chan->subbuf_size)) in relay_switch_subbuf()
948 buf->offset == buf->bytes_consumed) in relay_file_read_consume()
963 (buf->offset == subbuf_size)) in relay_file_read_consume()
984 if (unlikely(buf->offset > subbuf_size)) { in relay_file_read_avail()
996 produced = (produced % n_subbufs) * subbuf_size + buf->offset; in relay_file_read_avail()
[all …]
Dconfigs.c59 size_t len, loff_t * offset) in ikconfig_read_current() argument
61 return simple_read_from_buffer(buf, len, offset, in ikconfig_read_current()
Dkprobes.c1372 addr = (kprobe_opcode_t *)(((char *)addr) + p->offset); in kprobe_addr()
1715 unsigned long addr, offset; in register_jprobes() local
1720 if (kallsyms_lookup_size_offset(addr, NULL, &offset) && in register_jprobes()
1721 offset == 0) { in register_jprobes()
2034 kp->symbol_name, kp->addr, kp->offset); in dump_kprobe()
2051 unsigned long entry, offset = 0, size = 0; in populate_kprobe_blacklist() local
2057 !kallsyms_lookup_size_offset(entry, &size, &offset)) { in populate_kprobe_blacklist()
2178 const char *sym, int offset, char *modname, struct kprobe *pp) in report_probe() argument
2191 p->addr, kprobe_type, sym, offset, in report_probe()
2230 unsigned long offset = 0; in show_kprobe_addr() local
[all …]
/kernel/events/
Duprobes.c73 loff_t offset; member
139 static unsigned long offset_to_vaddr(struct vm_area_struct *vma, loff_t offset) in offset_to_vaddr() argument
141 return vma->vm_start + offset - ((loff_t)vma->vm_pgoff << PAGE_SHIFT); in offset_to_vaddr()
378 if (l->offset < r->offset) in match_uprobe()
381 if (l->offset > r->offset) in match_uprobe()
387 static struct uprobe *__find_uprobe(struct inode *inode, loff_t offset) in __find_uprobe() argument
389 struct uprobe u = { .inode = inode, .offset = offset }; in __find_uprobe()
414 static struct uprobe *find_uprobe(struct inode *inode, loff_t offset) in find_uprobe() argument
419 uprobe = __find_uprobe(inode, offset); in find_uprobe()
482 static struct uprobe *alloc_uprobe(struct inode *inode, loff_t offset) in alloc_uprobe() argument
[all …]
Dring_buffer.c108 unsigned long tail, offset, head; in perf_output_begin() local
144 offset = head = local_read(&rb->head); in perf_output_begin()
162 } while (local_cmpxchg(&rb->head, offset, head) != offset); in perf_output_begin()
174 handle->page = (offset >> page_shift) & (rb->nr_pages - 1); in perf_output_begin()
175 offset &= (1UL << page_shift) - 1; in perf_output_begin()
176 handle->addr = rb->data_pages[handle->page] + offset; in perf_output_begin()
177 handle->size = (1UL << page_shift) - offset; in perf_output_begin()
/kernel/power/
Duser.c205 sector_t offset; in snapshot_ioctl() local
316 offset = alloc_swapdev_block(data->swap); in snapshot_ioctl()
317 if (offset) { in snapshot_ioctl()
318 offset <<= PAGE_SHIFT; in snapshot_ioctl()
319 error = put_user(offset, (loff_t __user *)arg); in snapshot_ioctl()
375 offset = swap_area.offset; in snapshot_ioctl()
376 data->swap = swap_type_of(swdev, offset, NULL); in snapshot_ioctl()
400 compat_loff_t offset; member
414 loff_t offset; in snapshot_compat_ioctl() local
420 err = snapshot_ioctl(file, cmd, (unsigned long) &offset); in snapshot_compat_ioctl()
[all …]
Dswap.c169 unsigned long offset; in alloc_swapdev_block() local
171 offset = swp_offset(get_swap_page_of_type(swap)); in alloc_swapdev_block()
172 if (offset) { in alloc_swapdev_block()
173 if (swsusp_extents_insert(offset)) in alloc_swapdev_block()
174 swap_free(swp_entry(swap, offset)); in alloc_swapdev_block()
176 return swapdev_block(swap, offset); in alloc_swapdev_block()
193 unsigned long offset; in free_all_swap_pages() local
197 for (offset = ext->start; offset <= ext->end; offset++) in free_all_swap_pages()
198 swap_free(swp_entry(swap, offset)); in free_all_swap_pages()
276 static int write_page(void *buf, sector_t offset, struct bio **bio_chain) in write_page() argument
[all …]
/kernel/trace/
Dtrace_probe.c84 void FETCH_FUNC_NAME(reg, type)(struct pt_regs *regs, void *offset, void *dest) \
87 (unsigned int)((unsigned long)offset)); \
110 long offset; member
123 addr += dprm->offset; \
140 addr += dprm->offset; in DEFINE_FETCH_deref()
294 int traceprobe_split_symbol_offset(char *symbol, unsigned long *offset) in traceprobe_split_symbol_offset() argument
299 if (!offset) in traceprobe_split_symbol_offset()
305 ret = kstrtoul(tmp + 1, 0, offset); in traceprobe_split_symbol_offset()
311 *offset = 0; in traceprobe_split_symbol_offset()
361 long offset; in parse_probe_arg() local
[all …]
Dtrace_probe.h243 struct symbol_cache *alloc_symbol_cache(const char *sym, long offset);
265 alloc_symbol_cache(const char *sym, long offset) in alloc_symbol_cache() argument
274 unsigned int offset; /* Offset from argument entry */ member
344 extern int traceprobe_split_symbol_offset(char *symbol, unsigned long *offset);
383 dl = (u32 *)(data + tp->args[i].offset); in store_trace_args()
384 *dl = make_data_rloc(maxlen, end - tp->args[i].offset); in store_trace_args()
392 ent_size + tp->args[i].offset); in store_trace_args()
396 data + tp->args[i].offset); in store_trace_args()
Dtrace_kprobe.c55 return tk->rp.kp.offset; in trace_kprobe_offset()
89 long offset; member
98 sc->addr += sc->offset; in update_symbol_cache()
109 struct symbol_cache *alloc_symbol_cache(const char *sym, long offset) in alloc_symbol_cache() argument
125 sc->offset = offset; in alloc_symbol_cache()
136 void *offset, void *dest) \
139 (unsigned int)((unsigned long)offset)); \
294 tk->rp.kp.offset = offs; in alloc_trace_kprobe()
614 unsigned long offset = 0; in create_trace_kprobe() local
681 ret = traceprobe_split_symbol_offset(symbol, &offset); in create_trace_kprobe()
[all …]
Dtrace_uprobe.c58 unsigned long offset; member
112 void *offset, void *dest) \
115 ((unsigned long)offset)); \
182 base_addr = udd->bp_addr - udd->tu->offset; in translate_user_vaddr()
188 void *offset, void *dest)\
190 void *vaddr = (void *)translate_user_vaddr(offset); \
362 unsigned long offset; in create_trace_uprobe() local
454 ret = kstrtoul(arg, 0, &offset); in create_trace_uprobe()
476 snprintf(buf, MAX_EVENT_NAME_LEN, "%c_%s_0x%lx", 'p', tail, offset); in create_trace_uprobe()
487 tu->offset = offset; in create_trace_uprobe()
[all …]
/kernel/time/
Dntp.c117 static inline s64 ntp_offset_chunk(s64 offset) in ntp_offset_chunk() argument
120 return offset; in ntp_offset_chunk()
122 return shift_right(offset, SHIFT_PLL + time_constant); in ntp_offset_chunk()
202 static inline s64 ntp_offset_chunk(s64 offset) in ntp_offset_chunk() argument
204 return shift_right(offset, SHIFT_PLL + time_constant); in ntp_offset_chunk()
288 static void ntp_update_offset(long offset) in ntp_update_offset() argument
298 offset *= NSEC_PER_USEC; in ntp_update_offset()
304 offset = min(offset, MAXPHASE); in ntp_update_offset()
305 offset = max(offset, -MAXPHASE); in ntp_update_offset()
317 offset64 = offset; in ntp_update_offset()
[all …]
Dtimekeeping.c562 ktime_t base, *offset = offsets[offs]; in ktime_get_with_offset() local
569 base = ktime_add(tk->tkr_mono.base, *offset); in ktime_get_with_offset()
586 ktime_t *offset = offsets[offs]; in ktime_mono_to_any() local
592 tconv = ktime_add(tmono, *offset); in ktime_mono_to_any()
1278 s64 offset, in timekeeping_apply_adjustment() argument
1288 offset = -offset; in timekeeping_apply_adjustment()
1292 offset <<= adj_scale; in timekeeping_apply_adjustment()
1345 tk->tkr_mono.xtime_nsec -= offset; in timekeeping_apply_adjustment()
1346 tk->ntp_error -= (interval - offset) << tk->ntp_error_shift; in timekeeping_apply_adjustment()
1354 s64 offset) in timekeeping_freqadjust() argument
[all …]
Dtimer_list.c132 (unsigned long long) ktime_to_ns(base->offset)); in print_base()
300 static void *move_iter(struct timer_list_iter *iter, loff_t offset) in move_iter() argument
302 for (; offset; offset--) { in move_iter()
319 static void *timer_list_start(struct seq_file *file, loff_t *offset) in timer_list_start() argument
323 if (!*offset) in timer_list_start()
327 return move_iter(iter, *offset); in timer_list_start()
330 static void *timer_list_next(struct seq_file *file, void *v, loff_t *offset) in timer_list_next() argument
333 ++*offset; in timer_list_next()
Dtimeconv.c77 void time_to_tm(time_t totalsecs, int offset, struct tm *result) in time_to_tm() argument
84 rem += offset; in time_to_tm()
Dhrtimer.c186 expires = ktime_sub(hrtimer_get_expires(timer), new_base->offset); in hrtimer_check_target()
508 expires = ktime_sub(hrtimer_get_expires(timer), base->offset); in hrtimer_force_reprogram()
564 ktime_t expires = ktime_sub(hrtimer_get_expires(timer), base->offset); in hrtimer_reprogram()
621 ktime_t *offs_real = &base->clock_base[HRTIMER_BASE_REALTIME].offset; in hrtimer_update_base()
622 ktime_t *offs_boot = &base->clock_base[HRTIMER_BASE_BOOTTIME].offset; in hrtimer_update_base()
623 ktime_t *offs_tai = &base->clock_base[HRTIMER_BASE_TAI].offset; in hrtimer_update_base()
877 base->offset); in __remove_hrtimer()
1278 basenow = ktime_add(now, base->offset); in hrtimer_interrupt()
1302 base->offset); in hrtimer_interrupt()
/kernel/sched/
Dstats.c90 static void *schedstat_start(struct seq_file *file, loff_t *offset) in schedstat_start() argument
92 unsigned long n = *offset; in schedstat_start()
104 *offset = n + 1; in schedstat_start()
111 static void *schedstat_next(struct seq_file *file, void *data, loff_t *offset) in schedstat_next() argument
113 (*offset)++; in schedstat_next()
114 return schedstat_start(file, offset); in schedstat_next()
Dloadavg.c74 void get_avenrun(unsigned long *loads, unsigned long offset, int shift) in get_avenrun() argument
76 loads[0] = (avenrun[0] + offset) << shift; in get_avenrun()
77 loads[1] = (avenrun[1] + offset) << shift; in get_avenrun()
78 loads[2] = (avenrun[2] + offset) << shift; in get_avenrun()
Ddebug.c420 static void *sched_debug_start(struct seq_file *file, loff_t *offset) in sched_debug_start() argument
422 unsigned long n = *offset; in sched_debug_start()
434 *offset = n + 1; in sched_debug_start()
441 static void *sched_debug_next(struct seq_file *file, void *data, loff_t *offset) in sched_debug_next() argument
443 (*offset)++; in sched_debug_next()
444 return sched_debug_start(file, offset); in sched_debug_next()
/kernel/rcu/
Drcu.h108 unsigned long offset = (unsigned long)head->func; in __rcu_reclaim() local
111 if (__is_kfree_rcu_offset(offset)) { in __rcu_reclaim()
112 RCU_TRACE(trace_rcu_invoke_kfree_callback(rn, head, offset)); in __rcu_reclaim()
113 kfree((void *)head - offset); in __rcu_reclaim()
/kernel/gcov/
Dgcc_3_4.c321 unsigned int offset; member
409 iter->type_info[iter->num_types++].offset = 0; in gcov_iter_start()
454 get_type(iter)->offset += iter->count; in gcov_iter_next()
558 values[iter->count + get_type(iter)->offset]); in gcov_iter_write()
/kernel/debug/kdb/
Dkdb_main.c465 unsigned long *value, long *offset, in kdbgetaddrarg() argument
535 if (offset && name && *name) in kdbgetaddrarg()
536 *offset = addr - symtab.sym_start; in kdbgetaddrarg()
580 if (offset) in kdbgetaddrarg()
581 *offset += off; in kdbgetaddrarg()
1038 long offset; in kdb_parse() local
1042 &value, &offset, &name)) { in kdb_parse()
1523 long offset = 0; in kdb_md() local
1581 &offset, NULL); in kdb_md()
1701 long offset = 0; in kdb_mm() local
[all …]
Dkdb_bt.c112 long offset; in kdb_bt() local
198 &offset, NULL); in kdb_bt()

12