Home
last modified time | relevance | path

Searched refs:new (Results 1 – 25 of 64) sorted by relevance

123

/tools/testing/selftests/timers/
Drtctest_setdate.c33 struct rtc_time new, current; in main() local
56 sscanf(date, "%d-%d-%d", &new.tm_mday, &new.tm_mon, &new.tm_year); in main()
57 new.tm_mon -= 1; in main()
58 new.tm_year -= 1900; in main()
59 sscanf(time, "%d:%d:%d", &new.tm_hour, &new.tm_min, &new.tm_sec); in main()
62 new.tm_mday, new.tm_mon + 1, new.tm_year + 1900, in main()
63 new.tm_hour, new.tm_min, new.tm_sec); in main()
66 retval = ioctl(fd, RTC_SET_TIME, &new); in main()
/tools/include/linux/
Drefcount.h78 unsigned int old, new, val = atomic_read(&r->refs); in refcount_inc_not_zero() local
81 new = val + 1; in refcount_inc_not_zero()
86 if (unlikely(!new)) in refcount_inc_not_zero()
89 old = atomic_cmpxchg_relaxed(&r->refs, val, new); in refcount_inc_not_zero()
96 REFCOUNT_WARN(new == UINT_MAX, "refcount_t: saturated; leaking memory.\n"); in refcount_inc_not_zero()
123 unsigned int old, new, val = atomic_read(&r->refs); in refcount_sub_and_test() local
129 new = val - i; in refcount_sub_and_test()
130 if (new > val) { in refcount_sub_and_test()
131 REFCOUNT_WARN(new > val, "refcount_t: underflow; use-after-free.\n"); in refcount_sub_and_test()
135 old = atomic_cmpxchg_release(&r->refs, val, new); in refcount_sub_and_test()
[all …]
Drbtree_augmented.h43 void (*copy)(struct rb_node *old, struct rb_node *new);
44 void (*rotate)(struct rb_node *old, struct rb_node *new);
48 void (*augment_rotate)(struct rb_node *old, struct rb_node *new));
84 rbstruct *new = rb_entry(rb_new, rbstruct, rbfield); \
85 new->rbaugmented = old->rbaugmented; \
91 rbstruct *new = rb_entry(rb_new, rbstruct, rbfield); \
92 new->rbaugmented = old->rbaugmented; \
124 __rb_change_child(struct rb_node *old, struct rb_node *new, in __rb_change_child() argument
129 parent->rb_left = new; in __rb_change_child()
131 parent->rb_right = new; in __rb_change_child()
[all …]
Dlist.h38 static inline void __list_add(struct list_head *new, in __list_add() argument
42 next->prev = new; in __list_add()
43 new->next = next; in __list_add()
44 new->prev = prev; in __list_add()
45 prev->next = new; in __list_add()
48 extern void __list_add(struct list_head *new,
61 static inline void list_add(struct list_head *new, struct list_head *head) in list_add() argument
63 __list_add(new, head, head->next); in list_add()
75 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail() argument
77 __list_add(new, head->prev, head); in list_add_tail()
[all …]
/tools/perf/util/
Dcomm.c59 struct comm_str *iter, *new; in comm_str__findnew() local
81 new = comm_str__alloc(str); in comm_str__findnew()
82 if (!new) in comm_str__findnew()
85 rb_link_node(&new->rb_node, parent, p); in comm_str__findnew()
86 rb_insert_color(&new->rb_node, root); in comm_str__findnew()
88 return new; in comm_str__findnew()
112 struct comm_str *new, *old = comm->comm_str; in comm__override() local
114 new = comm_str__findnew(str, &comm_str_root); in comm__override()
115 if (!new) in comm__override()
119 comm->comm_str = new; in comm__override()
Dordered-events.c17 static void queue_event(struct ordered_events *oe, struct ordered_event *new) in queue_event() argument
20 u64 timestamp = new->timestamp; in queue_event()
24 oe->last = new; in queue_event()
29 list_add(&new->list, &oe->events); in queue_event()
43 list_add_tail(&new->list, &oe->events); in queue_event()
49 list_add_tail(&new->list, &last->list); in queue_event()
54 list_add(&new->list, &oe->events); in queue_event()
59 list_add(&new->list, &last->list); in queue_event()
96 struct ordered_event *new = NULL; in alloc_event() local
104 new = list_entry(cache->next, struct ordered_event, list); in alloc_event()
[all …]
Dcallchain.c521 struct callchain_node *new; in create_child() local
523 new = zalloc(sizeof(*new)); in create_child()
524 if (!new) { in create_child()
528 new->parent = parent; in create_child()
529 INIT_LIST_HEAD(&new->val); in create_child()
530 INIT_LIST_HEAD(&new->parent_val); in create_child()
536 new->rb_root_in = parent->rb_root_in; in create_child()
539 n = rb_first(&new->rb_root_in); in create_child()
542 child->parent = new; in create_child()
547 rb_link_node(&new->rb_node_in, NULL, &parent->rb_root_in.rb_node); in create_child()
[all …]
Dutil-cxx.h20 #define new _new macro
22 #undef new
Dthread.c132 struct namespaces *new, *curr = thread__namespaces(thread); in thread__set_namespaces() local
134 new = namespaces__new(event); in thread__set_namespaces()
135 if (!new) in thread__set_namespaces()
138 list_add(&new->list, &thread->namespaces_list); in thread__set_namespaces()
146 curr = list_next_entry(new, list); in thread__set_namespaces()
187 struct comm *new, *curr = thread__comm(thread); in __thread__set_comm() local
195 new = comm__new(str, timestamp, exec); in __thread__set_comm()
196 if (!new) in __thread__set_comm()
198 list_add(&new->list, &thread->comm_list); in __thread__set_comm()
/tools/arch/x86/include/asm/
Dcmpxchg.h35 #define __raw_cmpxchg(ptr, old, new, size, lock) \ argument
39 __typeof__(*(ptr)) __new = (new); \
83 #define __cmpxchg(ptr, old, new, size) \ argument
84 __raw_cmpxchg((ptr), (old), (new), (size), LOCK_PREFIX)
86 #define cmpxchg(ptr, old, new) \ argument
87 __cmpxchg(ptr, old, new, sizeof(*(ptr)))
Datomic.h68 static __always_inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() argument
70 return cmpxchg(&v->counter, old, new); in atomic_cmpxchg()
/tools/usb/usbip/libsrc/
Dlist.h40 static inline void __list_add(struct list_head *new, in __list_add() argument
44 next->prev = new; in __list_add()
45 new->next = next; in __list_add()
46 new->prev = prev; in __list_add()
47 prev->next = new; in __list_add()
58 static inline void list_add(struct list_head *new, struct list_head *head) in list_add() argument
60 __list_add(new, head, head->next); in list_add()
/tools/build/feature/
Dtest-sync-compare-and-swap.c8 uint64_t old, new = argc; in main() local
13 } while (!__sync_bool_compare_and_swap(&x, old, new)); in main()
14 return old == new; in main()
/tools/testing/ktest/examples/include/
Dmin-config.conf49 OUTPUT_MIN_CONFIG = ${CONFIG_DIR}/config-new-min-net
57 OUTPUT_MIN_CONFIG = ${CONFIG_DIR}/config-new-min
59 MIN_CONFIG = ${CONFIG_DIR}/config-new-min-net
/tools/lib/
Drbtree.c62 __rb_rotate_set_parents(struct rb_node *old, struct rb_node *new, in __rb_rotate_set_parents() argument
66 new->__rb_parent_color = old->__rb_parent_color; in __rb_rotate_set_parents()
67 rb_set_parent_color(old, new, color); in __rb_rotate_set_parents()
68 __rb_change_child(old, new, parent, root); in __rb_rotate_set_parents()
73 void (*augment_rotate)(struct rb_node *old, struct rb_node *new)) in __rb_insert() argument
202 void (*augment_rotate)(struct rb_node *old, struct rb_node *new)) in ____rb_erase_color() argument
364 void (*augment_rotate)(struct rb_node *old, struct rb_node *new)) in __rb_erase_color() argument
377 static inline void dummy_copy(struct rb_node *old, struct rb_node *new) {} in dummy_copy() argument
378 static inline void dummy_rotate(struct rb_node *old, struct rb_node *new) {} in dummy_rotate() argument
405 void (*augment_rotate)(struct rb_node *old, struct rb_node *new)) in __rb_insert_augmented() argument
[all …]
/tools/objtool/
Dspecial.c49 unsigned char size, orig, new; member
61 .new = ALT_NEW_OFFSET,
70 .new = JUMP_NEW_OFFSET,
76 .new = EX_NEW_OFFSET,
130 new_rela = find_rela_by_dest(sec, offset + entry->new); in get_alt_entry()
133 sec, offset + entry->new); in get_alt_entry()
/tools/perf/scripts/python/
Dsched-migration.py80 def __init__(self, new): argument
81 self.new = new
84 return "task migrated in %s" % thread_name(self.new)
131 def __migrate_in(self, new, event): argument
132 if new in self.tasks:
135 next_tasks = self.tasks[:] + tuple([new])
139 def migrate_in(self, new): argument
140 return self.__migrate_in(new, RunqueueMigrateIn(new))
142 def wake_up(self, new): argument
143 return self.__migrate_in(new, RunqueueEventWakeup(new))
[all …]
/tools/perf/
Dbuiltin-help.c146 char *new = strdup(path); in exec_man_konqueror() local
147 char *dest = strrchr(new, '/'); in exec_man_konqueror()
151 path = new; in exec_man_konqueror()
206 struct man_viewer_info_list *new = zalloc(sizeof(*new) + len + 1); in do_add_man_viewer_info() local
208 strncpy(new->name, name, len); in do_add_man_viewer_info()
209 new->info = strdup(value); in do_add_man_viewer_info()
210 new->next = man_viewer_info_list; in do_add_man_viewer_info()
211 man_viewer_info_list = new; in do_add_man_viewer_info()
Dbuiltin-lock.c141 static void thread_stat_insert(struct thread_stat *new) in thread_stat_insert() argument
151 if (new->tid < p->tid) in thread_stat_insert()
153 else if (new->tid > p->tid) in thread_stat_insert()
159 rb_link_node(&new->rb, parent, rb); in thread_stat_insert()
160 rb_insert_color(&new->rb, &thread_stats); in thread_stat_insert()
320 struct lock_stat *ret, *new; in lock_stat_findnew() local
327 new = zalloc(sizeof(struct lock_stat)); in lock_stat_findnew()
328 if (!new) in lock_stat_findnew()
331 new->addr = addr; in lock_stat_findnew()
332 new->name = zalloc(sizeof(char) * strlen(name) + 1); in lock_stat_findnew()
[all …]
Dbuiltin-kmem.c679 char *new; in compact_gfp_flags() local
687 new = realloc(new_flags, len + strlen(cpt) + 2); in compact_gfp_flags()
688 if (new == NULL) { in compact_gfp_flags()
694 new_flags = new; in compact_gfp_flags()
757 struct gfp_flag *new; in parse_gfp_flags() local
759 new = realloc(gfps, (nr_gfps + 1) * sizeof(*gfps)); in parse_gfp_flags()
760 if (new == NULL) in parse_gfp_flags()
763 gfps = new; in parse_gfp_flags()
764 new += nr_gfps++; in parse_gfp_flags()
766 new->flags = gfp_flags; in parse_gfp_flags()
[all …]
/tools/testing/radix-tree/linux/
Dpercpu.h9 #define this_cpu_cmpxchg(var, old, new) uatomic_cmpxchg(&var, old, new) argument
/tools/testing/selftests/vm/
Dmlock-random-test.c27 struct rlimit new; in set_cap_limits() local
30 new.rlim_cur = max; in set_cap_limits()
31 new.rlim_max = max; in set_cap_limits()
32 if (setrlimit(RLIMIT_MEMLOCK, &new)) { in set_cap_limits()
/tools/perf/Documentation/
Dintel-bts.txt24 new event
27 The Intel BTS kernel driver creates a new PMU for Intel BTS. The perf record
76 This can be further controlled by new option --itrace exactly the same as
86 perf inject --itrace -i perf.data -o perf.data.new
/tools/perf/util/intel-pt-decoder/
Dgen-insn-attr-x86.awk229 function add_flags(old,new) {
230 if (old && new)
231 return old " | " new
235 return new
/tools/objtool/arch/x86/tools/
Dgen-insn-attr-x86.awk229 function add_flags(old,new) {
230 if (old && new)
231 return old " | " new
235 return new

123