// Copyright (C) 2018 Marko Myllynen // Licensed under the Apache License, Version 2.0 (the "License") #include 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; }