Lines Matching refs:es
377 es->field = strdup(field); \
378 if (!es->field) \
382 #define FREE_EVENT_FIELD(field) free(es->field)
384 #define TRY_FIXUP_FIELD(field) do { if (es->field && !*field) {\
385 *field = strdup(es->field); \
407 struct event_struct *es, *next; in free_arch_std_events() local
409 list_for_each_entry_safe(es, next, &arch_std_events, list) { in free_arch_std_events()
411 list_del_init(&es->list); in free_arch_std_events()
412 free(es); in free_arch_std_events()
421 struct event_struct *es; in save_arch_std_events() local
423 es = malloc(sizeof(*es)); in save_arch_std_events()
424 if (!es) in save_arch_std_events()
426 memset(es, 0, sizeof(*es)); in save_arch_std_events()
428 list_add_tail(&es->list, &arch_std_events); in save_arch_std_events()
432 free(es); in save_arch_std_events()
485 struct event_struct *es; in try_fixup() local
487 list_for_each_entry(es, &arch_std_events, list) { in try_fixup()
488 if (!strcmp(arch_std, es->name)) { in try_fixup()
489 if (!eventcode && es->event) { in try_fixup()