Server IP : 184.154.167.98 / Your IP : 18.118.0.93 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/libexec/pcp/pmdas/bcc/modules/ |
Upload File : |
// Copyright (C) 2018 Marko Myllynen <myllynen@redhat.com> // Licensed under the Apache License, Version 2.0 (the "License") #include <uapi/linux/ptrace.h> BPF_ARRAY(stats, u64, 2); static void inc(int key) { u64 *val = stats.lookup(&key); if (val) (*val)++; } int trace_jvm_thread_start(struct pt_regs *ctx) { inc(0); return 0; } int trace_jvm_thread_stop(struct pt_regs *ctx) { inc(1); return 0; }