| /OK3568_Linux_fs/yocto/poky/bitbake/lib/bb/tests/ |
| H A D | event.py | 20 import bb.event 30 def _store_event_data_string(self, event): argument 31 if isinstance(event, logging.LogRecord): 33 self.event_calls.append(formatter.format(event)) 35 self.event_calls.append(bb.event.getName(event)) 44 def send(self, event): argument 45 super(EventQueueStub, self)._store_event_data_string(event) 55 event = pickle.loads(pickled_event) 56 super(PickleEventQueueStub, self)._store_event_data_string(event) 62 self.event = None [all …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/bb/ui/ |
| H A D | toasterui.py | 207 event = eventHandler.waitEvent(0.25) 218 if event is None: 226 helper.eventHandler(event) 231 if isinstance(event, bb.event.HeartbeatEvent): 234 if isinstance(event, bb.event.ParseStarted): 240 buildinfohelper.set_recipes_to_parse(event.total) 245 if isinstance(event, (bb.event.BuildStarted, bb.event.BuildInit)): 249 buildinfohelper.save_build_targets(event) 253 if isinstance(event, bb.event.BuildStarted): 257 if isinstance(event, bb.event.ParseProgress): [all …]
|
| H A D | teamcity.py | 32 import bb.event 213 event = eventHandler.waitEvent(0.25) 214 if not event: 217 helper.eventHandler(event) 219 if isinstance(event, bb.build.TaskBase): 220 logger.info(event._message) 221 if isinstance(event, logging.LogRecord): 223 if event.msg == "No suitable staging package found" or (event.msg.startswith( 224 …cher failure: Unable to find file") and "downloadfilename" in event.msg and "sstate" in event.msg): 225 event.levelno = bb.msg.BBLogFormatter.WARNING [all …]
|
| H A D | uihelper.py | 22 def eventHandler(self, event): argument 32 if isinstance(event, bb.build.TaskStarted): 33 tid = event._fn + ":" + event._task 34 if event._mc != "default": 35 …tid] = { 'title' : "mc:%s:%s %s" % (event._mc, event._package, event._task), 'starttime' : time.ti… 37 …ning_tasks[tid] = { 'title' : "%s %s" % (event._package, event._task), 'starttime' : time.time(), … 39 self.pidmap[event.pid] = tid 41 elif isinstance(event, bb.build.TaskSucceeded): 42 tid = event._fn + ":" + event._task 43 removetid(event.pid, tid) [all …]
|
| H A D | knotty.py | 342 def print_event_log(event, includelogs, loglines, termfilter): argument 344 logfile = event.logfile 348 if includelogs and not event.errprinted: 404 event = True 406 while event: 407 event = eventHandler.waitEvent(0) 408 if isinstance(event, logging.LogRecord): 409 logger.handle(event) 638 event = eventHandler.waitEvent(0) 639 if event is None: [all …]
|
| /OK3568_Linux_fs/kernel/kernel/events/ |
| H A D | core.c | 177 static bool is_kernel_event(struct perf_event *event) in is_kernel_event() argument 179 return READ_ONCE(event->owner) == TASK_TOMBSTONE; in is_kernel_event() 205 struct perf_event *event; member 213 struct perf_event *event = efs->event; in event_function() local 214 struct perf_event_context *ctx = event->ctx; in event_function() 249 efs->func(event, cpuctx, ctx, efs->data); in event_function() 256 static void event_function_call(struct perf_event *event, event_f func, void *data) in event_function_call() argument 258 struct perf_event_context *ctx = event->ctx; in event_function_call() 261 .event = event, in event_function_call() 266 if (!event->parent) { in event_function_call() [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/util/ |
| H A D | session.c | 39 union perf_event *event, u64 file_offset) in perf_session__process_compressed_event() argument 69 src = (void *)event + sizeof(struct perf_record_compressed); in perf_session__process_compressed_event() 70 src_size = event->pack.header.size - sizeof(struct perf_record_compressed); in perf_session__process_compressed_event() 99 union perf_event *event, 177 struct ordered_event *event) in ordered_events__deliver_event() argument 182 return perf_session__deliver_event(session, event->event, in ordered_events__deliver_event() 183 session->tool, event->file_offset); in ordered_events__deliver_event() 309 union perf_event *event in process_event_synth_tracing_data_stub() 317 union perf_event *event __maybe_unused, in process_event_synth_attr_stub() 326 union perf_event *event __maybe_unused, in process_event_synth_event_update_stub() [all …]
|
| H A D | event.c | 124 struct perf_record_stat_config *event) in perf_event__read_stat_config() argument 128 for (i = 0; i < event->nr; i++) { in perf_event__read_stat_config() 130 switch (event->data[i].tag) { in perf_event__read_stat_config() 133 config->__val = event->data[i].val; \ in perf_event__read_stat_config() 142 event->data[i].tag); in perf_event__read_stat_config() 147 size_t perf_event__fprintf_comm(union perf_event *event, FILE *fp) in perf_event__fprintf_comm() argument 151 if (event->header.misc & PERF_RECORD_MISC_COMM_EXEC) in perf_event__fprintf_comm() 156 return fprintf(fp, "%s: %s:%d/%d\n", s, event->comm.comm, event->comm.pid, event->comm.tid); in perf_event__fprintf_comm() 159 size_t perf_event__fprintf_namespaces(union perf_event *event, FILE *fp) in perf_event__fprintf_namespaces() argument 165 ns_link_info = event->namespaces.link_info; in perf_event__fprintf_namespaces() [all …]
|
| /OK3568_Linux_fs/kernel/net/sctp/ |
| H A D | ulpevent.c | 31 static void sctp_ulpevent_receive_data(struct sctp_ulpevent *event, 33 static void sctp_ulpevent_release_data(struct sctp_ulpevent *event); 34 static void sctp_ulpevent_release_frag_data(struct sctp_ulpevent *event); 38 static void sctp_ulpevent_init(struct sctp_ulpevent *event, in sctp_ulpevent_init() argument 42 memset(event, 0, sizeof(struct sctp_ulpevent)); in sctp_ulpevent_init() 43 event->msg_flags = msg_flags; in sctp_ulpevent_init() 44 event->rmem_len = len; in sctp_ulpevent_init() 51 struct sctp_ulpevent *event; in sctp_ulpevent_new() local 58 event = sctp_skb2event(skb); in sctp_ulpevent_new() 59 sctp_ulpevent_init(event, msg_flags, skb->truesize); in sctp_ulpevent_new() [all …]
|
| H A D | stream_interleave.c | 125 struct sctp_ulpevent *event) in sctp_intl_store_reasm() argument 132 __skb_queue_tail(&ulpq->reasm, sctp_event2skb(event)); in sctp_intl_store_reasm() 138 if (event->stream == cevent->stream && in sctp_intl_store_reasm() 139 event->mid == cevent->mid && in sctp_intl_store_reasm() 141 (!(event->msg_flags & SCTP_DATA_FIRST_FRAG) && in sctp_intl_store_reasm() 142 event->fsn > cevent->fsn))) { in sctp_intl_store_reasm() 143 __skb_queue_tail(&ulpq->reasm, sctp_event2skb(event)); in sctp_intl_store_reasm() 147 if ((event->stream == cevent->stream && in sctp_intl_store_reasm() 148 MID_lt(cevent->mid, event->mid)) || in sctp_intl_store_reasm() 149 event->stream > cevent->stream) { in sctp_intl_store_reasm() [all …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/perf/ |
| H A D | core-fsl-emb.c | 23 struct perf_event *event[MAX_HWEVENTS]; member 162 static void fsl_emb_pmu_read(struct perf_event *event) in fsl_emb_pmu_read() argument 166 if (event->hw.state & PERF_HES_STOPPED) in fsl_emb_pmu_read() 175 prev = local64_read(&event->hw.prev_count); in fsl_emb_pmu_read() 177 val = read_pmc(event->hw.idx); in fsl_emb_pmu_read() 178 } while (local64_cmpxchg(&event->hw.prev_count, prev, val) != prev); in fsl_emb_pmu_read() 182 local64_add(delta, &event->count); in fsl_emb_pmu_read() 183 local64_sub(delta, &event->hw.period_left); in fsl_emb_pmu_read() 255 struct perf_event *event; in collect_events() local 263 for_each_sibling_event(event, group) { in collect_events() [all …]
|
| H A D | isa207-common.c | 11 PMU_FORMAT_ATTR(event, "config:0-49"); 45 static inline bool event_is_fab_match(u64 event) in event_is_fab_match() argument 48 event &= 0xff0fe; in event_is_fab_match() 51 return (event == 0x30056 || event == 0x4f052); in event_is_fab_match() 54 static bool is_event_valid(u64 event) in is_event_valid() argument 63 return !(event & ~valid_mask); in is_event_valid() 66 static inline bool is_event_marked(u64 event) in is_event_marked() argument 68 if (event & EVENT_IS_MARKED) in is_event_marked() 74 static unsigned long sdar_mod_val(u64 event) in sdar_mod_val() argument 77 return p10_SDAR_MODE(event); in sdar_mod_val() [all …]
|
| H A D | core-book3s.c | 37 struct perf_event *event[MAX_HWEVENTS]; member 104 static inline void perf_get_data_addr(struct perf_event *event, struct pt_regs *regs, u64 *addrp) {… in perf_get_data_addr() argument 119 static bool is_ebb_event(struct perf_event *event) { return false; } in is_ebb_event() argument 120 static int ebb_event_check(struct perf_event *event) { return 0; } in ebb_event_check() argument 121 static void ebb_event_add(struct perf_event *event) { } in ebb_event_add() argument 128 static inline void power_pmu_bhrb_enable(struct perf_event *event) {} in power_pmu_bhrb_enable() argument 129 static inline void power_pmu_bhrb_disable(struct perf_event *event) {} in power_pmu_bhrb_disable() argument 131 static inline void power_pmu_bhrb_read(struct perf_event *event, struct cpu_hw_events *cpuhw) {} in power_pmu_bhrb_read() argument 186 static inline void perf_get_data_addr(struct perf_event *event, struct pt_regs *regs, u64 *addrp) in perf_get_data_addr() argument 211 if (is_kernel_addr(mfspr(SPRN_SDAR)) && event->attr.exclude_kernel) in perf_get_data_addr() [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/pmu/ebb/ |
| H A D | event_attributes_test.c | 17 struct event event, leader; in event_attributes() local 21 event_init(&event, 0x1001e); in event_attributes() 22 event_leader_ebb_init(&event); in event_attributes() 24 FAIL_IF(event_open(&event)); in event_attributes() 25 event_close(&event); in event_attributes() 28 event_init(&event, 0x001e); /* CYCLES - no PMC specified */ in event_attributes() 29 event_leader_ebb_init(&event); in event_attributes() 31 FAIL_IF(event_open(&event) == 0); in event_attributes() 34 event_init(&event, 0x2001e); in event_attributes() 35 event_leader_ebb_init(&event); in event_attributes() [all …]
|
| H A D | instruction_count_test.c | 25 static int do_count_loop(struct event *event, uint64_t instructions, in do_count_loop() argument 45 event->result.value = ebb_state.stats.pmc_count[4-1]; in do_count_loop() 47 difference = event->result.value - expected; in do_count_loop() 48 percentage = (double)difference / event->result.value * 100; in do_count_loop() 53 printf("Actual %llu\n", event->result.value); in do_count_loop() 63 if (difference / event->result.value) in do_count_loop() 70 static uint64_t determine_overhead(struct event *event) in determine_overhead() argument 75 do_count_loop(event, 0, 0, false); in determine_overhead() 76 overhead = event->result.value; in determine_overhead() 79 do_count_loop(event, 0, 0, false); in determine_overhead() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/core/ |
| H A D | event.c | 26 nvkm_event_put(struct nvkm_event *event, u32 types, int index) in nvkm_event_put() argument 28 assert_spin_locked(&event->refs_lock); in nvkm_event_put() 31 if (--event->refs[index * event->types_nr + type] == 0) { in nvkm_event_put() 32 if (event->func->fini) in nvkm_event_put() 33 event->func->fini(event, 1 << type, index); in nvkm_event_put() 39 nvkm_event_get(struct nvkm_event *event, u32 types, int index) in nvkm_event_get() argument 41 assert_spin_locked(&event->refs_lock); in nvkm_event_get() 44 if (++event->refs[index * event->types_nr + type] == 1) { in nvkm_event_get() 45 if (event->func->init) in nvkm_event_get() 46 event->func->init(event, 1 << type, index); in nvkm_event_get() [all …]
|
| H A D | notify.c | 31 nvkm_event_put(notify->event, notify->types, notify->index); in nvkm_notify_put_locked() 37 struct nvkm_event *event = notify->event; in nvkm_notify_put() local 39 if (likely(event) && in nvkm_notify_put() 41 spin_lock_irqsave(&event->refs_lock, flags); in nvkm_notify_put() 43 spin_unlock_irqrestore(&event->refs_lock, flags); in nvkm_notify_put() 53 nvkm_event_get(notify->event, notify->types, notify->index); in nvkm_notify_get_locked() 59 struct nvkm_event *event = notify->event; in nvkm_notify_get() local 61 if (likely(event) && in nvkm_notify_get() 63 spin_lock_irqsave(&event->refs_lock, flags); in nvkm_notify_get() 65 spin_unlock_irqrestore(&event->refs_lock, flags); in nvkm_notify_get() [all …]
|
| /OK3568_Linux_fs/external/xserver/hw/xwayland/ |
| H A D | xwayland-present.c | 115 xwl_present_free_event(struct xwl_present_event *event) in xwl_present_free_event() argument 117 if (!event) in xwl_present_free_event() 120 if (event->pixmap) { in xwl_present_free_event() 121 if (!event->buffer_released) { in xwl_present_free_event() 123 xwl_glamor_pixmap_get_wl_buffer(event->pixmap, NULL); in xwl_present_free_event() 128 dixDestroyPixmap(event->pixmap, event->pixmap->drawable.id); in xwl_present_free_event() 131 xorg_list_del(&event->list); in xwl_present_free_event() 132 free(event); in xwl_present_free_event() 139 struct xwl_present_event *event, *tmp; in xwl_present_cleanup() local 152 xorg_list_for_each_entry_safe(event, tmp, &xwl_present_window->event_list, list) in xwl_present_cleanup() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/md/ |
| H A D | dm-uevent.c | 39 static void dm_uevent_free(struct dm_uevent *event) in dm_uevent_free() argument 41 kmem_cache_free(_dm_event_cache, event); in dm_uevent_free() 46 struct dm_uevent *event; in dm_uevent_alloc() local 48 event = kmem_cache_zalloc(_dm_event_cache, GFP_ATOMIC); in dm_uevent_alloc() 49 if (!event) in dm_uevent_alloc() 52 INIT_LIST_HEAD(&event->elist); in dm_uevent_alloc() 53 event->md = md; in dm_uevent_alloc() 55 return event; in dm_uevent_alloc() 65 struct dm_uevent *event; in dm_build_path_uevent() local 67 event = dm_uevent_alloc(md); in dm_build_path_uevent() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/firmware/ |
| H A D | arm_sdei.c | 76 struct sdei_event *event; member 81 #define CROSSCALL_INIT(arg, event) \ argument 83 arg.event = event; \ 89 struct sdei_event *event) in sdei_do_local_call() argument 93 CROSSCALL_INIT(arg, event); in sdei_do_local_call() 100 struct sdei_event *event) in sdei_do_cross_call() argument 104 CROSSCALL_INIT(arg, event); in sdei_do_cross_call() 190 static int sdei_api_event_get_info(u32 event, u32 info, u64 *result) in sdei_api_event_get_info() argument 192 return invoke_sdei_fn(SDEI_1_0_FN_SDEI_EVENT_GET_INFO, event, info, 0, in sdei_api_event_get_info() 202 struct sdei_event *event; in sdei_event_create() local [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/ABI/testing/ |
| H A D | sysfs-bus-event_source-devices-dfl_fme | 13 event = "config:0-11" - event ID 14 evtype = "config:12-15" - event type 15 portid = "config:16-23" - event source 19 fab_mmio_read = "event=0x06,evtype=0x02,portid=0xff" 21 It shows this fab_mmio_read is a fabric type (0x02) event with 22 0x06 local event id for overall monitoring (portid=0xff). 37 a single performance monitoring event supported by this fme pmu. 38 The name of the file is the name of the event. 45 clock = "event=0x00,evtype=0x00,portid=0xff" 49 cache_read_hit = "event=0x00,evtype=0x01,portid=0xff" [all …]
|
| /OK3568_Linux_fs/kernel/scripts/dtc/ |
| H A D | yamltree.c | 24 #define yaml_emitter_emit_or_die(emitter, event) ( \ argument 26 if (!yaml_emitter_emit(emitter, event)) \ 34 yaml_event_t event; in yaml_propval_int() local 48 yaml_sequence_start_event_initialize(&event, NULL, in yaml_propval_int() 50 yaml_emitter_emit_or_die(emitter, &event); in yaml_propval_int() 81 yaml_scalar_event_initialize(&event, NULL, in yaml_propval_int() 85 yaml_scalar_event_initialize(&event, NULL, in yaml_propval_int() 88 yaml_emitter_emit_or_die(emitter, &event); in yaml_propval_int() 91 yaml_sequence_end_event_initialize(&event); in yaml_propval_int() 92 yaml_emitter_emit_or_die(emitter, &event); in yaml_propval_int() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/perf/hisilicon/ |
| H A D | hisi_uncore_pmu.c | 66 static bool hisi_validate_event_group(struct perf_event *event) in hisi_validate_event_group() argument 68 struct perf_event *sibling, *leader = event->group_leader; in hisi_validate_event_group() 69 struct hisi_pmu *hisi_pmu = to_hisi_pmu(event->pmu); in hisi_validate_event_group() 78 if (leader->pmu != event->pmu) in hisi_validate_event_group() 82 if (leader != event) in hisi_validate_event_group() 86 for_each_sibling_event(sibling, event->group_leader) { in hisi_validate_event_group() 89 if (sibling->pmu != event->pmu) in hisi_validate_event_group() 105 int hisi_uncore_pmu_get_event_idx(struct perf_event *event) in hisi_uncore_pmu_get_event_idx() argument 107 struct hisi_pmu *hisi_pmu = to_hisi_pmu(event->pmu); in hisi_uncore_pmu_get_event_idx() 132 int hisi_uncore_pmu_event_init(struct perf_event *event) in hisi_uncore_pmu_event_init() argument [all …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/kernel/ |
| H A D | eeh_event.c | 42 struct eeh_event *event; in eeh_event_handler() local 50 event = NULL; in eeh_event_handler() 52 event = list_entry(eeh_eventlist.next, in eeh_event_handler() 54 list_del(&event->list); in eeh_event_handler() 57 if (!event) in eeh_event_handler() 61 if (event->pe) in eeh_event_handler() 62 eeh_handle_normal_event(event->pe); in eeh_event_handler() 66 kfree(event); in eeh_event_handler() 105 struct eeh_event *event; in __eeh_send_failure_event() local 107 event = kzalloc(sizeof(*event), GFP_ATOMIC); in __eeh_send_failure_event() [all …]
|
| /OK3568_Linux_fs/kernel/fs/notify/fanotify/ |
| H A D | fanotify.h | 147 static inline void fanotify_init_event(struct fanotify_event *event, in fanotify_init_event() argument 150 fsnotify_init_event(&event->fse, id); in fanotify_init_event() 151 event->mask = mask; in fanotify_init_event() 152 event->pid = NULL; in fanotify_init_event() 164 FANOTIFY_FE(struct fanotify_event *event) in FANOTIFY_FE() argument 166 return container_of(event, struct fanotify_fid_event, fae); in FANOTIFY_FE() 176 FANOTIFY_NE(struct fanotify_event *event) in FANOTIFY_NE() argument 178 return container_of(event, struct fanotify_name_event, fae); in FANOTIFY_NE() 181 static inline __kernel_fsid_t *fanotify_event_fsid(struct fanotify_event *event) in fanotify_event_fsid() argument 183 if (event->type == FANOTIFY_EVENT_TYPE_FID) in fanotify_event_fsid() [all …]
|