コード例 #1
0
def softirq_entry(payload):
    """Parser for `softirq_entry` tracepoint"""
    try:
        match = re.match(softirq_entry_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return SoftIRQEntry(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #2
0
def f2fs_write_begin(payload):
    """Parser for `f2fs_write_begin` tracepoint"""
    try:
        match = re.match(f2fs_write_begin_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return F2FSWriteBegin(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #3
0
def workqueue_queue_work(payload):
    """Parser for `workqueue_queue_work` tracepoint"""
    try:
        match = re.match(workqueue_queue_work_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return WorkqueueQueueWork(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #4
0
def sched_task_load_contrib(payload):
    """Parser for `sched_task_load_contrib` tracepoint"""
    try:
        match = re.match(sched_task_load_contrib_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return SchedTaskLoadContrib(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #5
0
def kgsl_bus(payload):
    """Parser for `kgsl_bus` tracepoint"""
    try:
        match = re.match(kgsl_bus_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return KgslBus(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #6
0
def cpu_idle_enter(payload):
    """Parser for `cpu_idle_enter` tracepoint"""
    try:
        match = re.match(cpu_idle_enter_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return CpuIdleEnter(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #7
0
def sched_wakeup(payload):
    """Parser for `sched_wakeup` tracepoint"""
    try:
        match = re.match(sched_wakeup_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return SchedWakeup(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #8
0
def cpu_capacity(payload):
    """Parser for `cpu_capacity` tracepoint"""
    try:
        match = re.match(cpu_capacity_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return CpuCapacity(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #9
0
def mali_pm_status(payload):
    """Parser for `mali_pm_status` tracepoint"""
    try:
        match = re.match(mali_pm_status_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return MaliPMStatus(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #10
0
def clock_disable(payload):
    """Parser for `clock_disable` tracepoint"""
    try:
        match = re.match(clock_disable_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return ClockDisable(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #11
0
def sched_rq_nr_running(payratio):
    """Parser for `sched_rq_nr_running` tracepoint"""
    try:
        match = re.match(sched_rq_nr_running_pattern, payratio)
        if match:
            match_group_dict = match.groupdict()
            return SchedRqNrRunning(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #12
0
def sched_migrate_task(payload):
    """Parser for `sched_migrate_task` tracepoint"""
    try:
        match = re.match(sched_migrate_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return SchedMigrateTask(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #13
0
def mali_job_slots_event(payload):
    """Parser for `mali_job_slots_event` tracepoint"""
    try:
        match = re.match(mali_job_slots_event_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return MaliJobSlotsEvent(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #14
0
def cpufreq_sched_request_opp(payload):
    """Parser for `cpufreq_sched_request_opp` tracepoint"""
    try:
        match = re.match(cpufreq_sched_request_opp_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return CpufreqSchedRequestOpp(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #15
0
def cpufreq_interactive_target(payload):
    """Parser for `cpufreq_interactive_target` tracepoint"""
    try:
        match = re.match(cpufreq_interactive_target_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return CPUFreqInteractiveTarget(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #16
0
def binder_transaction_received(payload):
    """Parser for `binder_transaction_received`"""
    try:
        match = re.match(binder_transaction_received_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return BinderTransactionReceived(int(match.group(1)))
    except Exception as e:
        raise ParserError(e.message)
コード例 #17
0
def sync_pt(payload):
    """Parser for `sync_pt` tracepoint"""
    try:
        match = re.match(sync_pt_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return SyncPT(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #18
0
def cpu_frequency_switch_end(payload):
    """Parser for `cpu_frequency_switch_end` tracepoint"""
    try:
        match = re.match(cpu_frequency_switch_end_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return CpuFrequencySwitchEnd(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #19
0
def binder_read_done(payload):
    """Parser for `binder_read_done`"""
    try:
        match = re.match(binder_read_done_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return BinderReadDone(int(match.group(1)))
    except Exception as e:
        raise ParserError(e.message)
コード例 #20
0
ファイル: tsens_read.py プロジェクト: liuliweibeijing/saber
def tsens_read(payload):
    """Parser for `tsens_read` tracepoint"""
    try:
        match = re.match(tsens_read_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return TsensRead(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #21
0
def sched_rq_runnable_load(payload):
    """Parser for `sched_rq_runnable_load` tracepoint"""
    try:
        match = re.match(sched_rq_runnable_load_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return SchedRQRunnableLoad(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #22
0
def mali_pm_power_on(payload):
    """Parser for `mali_pm_power_on` tracepoint"""
    try:
        match = re.match(mali_pm_power_on_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return MaliPMPowerOn(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #23
0
def tsens_threshold_hit(payload):
    """Parser for `tsens_threshold_hit` tracepoint"""
    try:
        match = re.match(tsens_threshold_hit_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return TsensThresholdHit(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #24
0
def ext4_sync_file_enter(payload):
    """Parser for `ext4_sync_file_enter` tracepoint"""
    try:
        match = re.match(ext4_sync_file_enter_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return Ext4SyncFileEnter(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #25
0
ファイル: cluster_exit.py プロジェクト: liuliweibeijing/saber
def cluster_exit(payload):
    """Parser for `cluster_exit` tracepoint"""
    try:
        match = re.match(cluster_exit_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return ClusterExit(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #26
0
def bus_update_request(payload):
    """Parser for `bus_update_request` tracepoint"""
    try:
        match = re.match(bus_update_request_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return BusUpdateRequest(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #27
0
def binder_unlock(payload):
    """Parser for `binder_unlock`"""
    try:
        match = re.match(binder_unlock_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return BinderUnlock(match.group(1))
    except Exception as e:
        raise ParserError(e.message)
コード例 #28
0
def sched_task_runnable_ratio(payload):
    """Parser for `sched_task_runnable_ratio` tracepoint"""
    try:
        match = re.match(sched_task_runnable_ratio_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return SchedTaskRunnableRatio(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #29
0
def sched_load_avg_cpu(payload):
    """Parser for `sched_load_avg_cpu` tracepoint"""
    try:
        match = re.match(sched_load_avg_cpu_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return SchedLoadAvgCpu(**match_group_dict)
    except Exception, e:
        raise ParserError(e.message)
コード例 #30
0
def binder_transaction_buffer_release(payload):
    """Parser for `binder_transaction_buffer_release`"""
    try:
        match = re.match(binder_transaction_buffer_release_pattern, payload)
        if match:
            match_group_dict = match.groupdict()
            return BinderTransactionBufferRelease(int(match.group(1)), int(match.group(2)), int(match.group(3)))
    except Exception as e:
        raise ParserError(e.message)