!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/src/linux-oracle-6.8-headers-6.8.0-1028/include/linux/perf/   drwxr-xr-x
Free 83.33 GB of 96.73 GB (86.15%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     riscv_pmu.h (2.6 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (C) 2018 SiFive
 * Copyright (C) 2018 Andes Technology Corporation
 * Copyright (C) 2021 Western Digital Corporation or its affiliates.
 *
 */

#ifndef _RISCV_PMU_H
#define _RISCV_PMU_H

#include <linux/perf_event.h>
#include <linux/ptrace.h>
#include <linux/interrupt.h>

#ifdef CONFIG_RISCV_PMU

/*
 * The RISCV_MAX_COUNTERS parameter should be specified.
 */

#define RISCV_MAX_COUNTERS    64
#define RISCV_OP_UNSUPP        (-EOPNOTSUPP)
#define RISCV_PMU_SBI_PDEV_NAME    "riscv-pmu-sbi"
#define RISCV_PMU_LEGACY_PDEV_NAME    "riscv-pmu-legacy"

#define RISCV_PMU_STOP_FLAG_RESET 1

#define RISCV_PMU_CONFIG1_GUEST_EVENTS 0x1

struct cpu_hw_events {
    /* currently enabled events */
    int            n_events;
    /* Counter overflow interrupt */
    int        irq;
    /* currently enabled events */
    struct perf_event    *events[RISCV_MAX_COUNTERS];
    /* currently enabled hardware counters */
    DECLARE_BITMAP(used_hw_ctrs, RISCV_MAX_COUNTERS);
    /* currently enabled firmware counters */
    DECLARE_BITMAP(used_fw_ctrs, RISCV_MAX_COUNTERS);
};

struct riscv_pmu {
    struct pmu    pmu;
    char        *name;

    irqreturn_t    (*handle_irq)(int irq_num, void *dev);

    unsigned long    cmask;
    u64        (*ctr_read)(struct perf_event *event);
    int        (*ctr_get_idx)(struct perf_event *event);
    int        (*ctr_get_width)(int idx);
    void        (*ctr_clear_idx)(struct perf_event *event);
    void        (*ctr_start)(struct perf_event *event, u64 init_val);
    void        (*ctr_stop)(struct perf_event *event, unsigned long flag);
    int        (*event_map)(struct perf_event *event, u64 *config);
    void        (*event_init)(struct perf_event *event);
    void        (*event_mapped)(struct perf_event *event, struct mm_struct *mm);
    void        (*event_unmapped)(struct perf_event *event, struct mm_struct *mm);
    uint8_t        (*csr_index)(struct perf_event *event);

    struct cpu_hw_events    __percpu *hw_events;
    struct hlist_node    node;
    struct notifier_block   riscv_pm_nb;
};

#define to_riscv_pmu(p) (container_of(p, struct riscv_pmu, pmu))

void riscv_pmu_start(struct perf_event *event, int flags);
void riscv_pmu_stop(struct perf_event *event, int flags);
unsigned long riscv_pmu_ctr_read_csr(unsigned long csr);
int riscv_pmu_event_set_period(struct perf_event *event);
uint64_t riscv_pmu_ctr_get_width_mask(struct perf_event *event);
u64 riscv_pmu_event_update(struct perf_event *event);
#ifdef CONFIG_RISCV_PMU_LEGACY
void riscv_pmu_legacy_skip_init(void);
#else
static inline void riscv_pmu_legacy_skip_init(void) {};
#endif
struct riscv_pmu *riscv_pmu_alloc(void);
#ifdef CONFIG_RISCV_PMU_SBI
int riscv_pmu_get_hpm_info(u32 *hw_ctr_width, u32 *num_hw_ctr);
#endif

#endif /* CONFIG_RISCV_PMU */

#endif /* _RISCV_PMU_H */

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0043 ]--