> > struct lttng_channel *lttng_chan = channel_get_private(ctx->chan); > > int ret, cpu; > > > > cpu = lib_ring_buffer_get_cpu(&client_config); > > if (cpu < 0) > > return -EPERM; > > ctx->cpu = cpu; > > > > switch (lttng_chan->header_type) { > > case 1...
我们获得当前内核栈的sp指针的地址,然后根据THREAD_SIZE对齐就可以获取thread_info结构的基地址,然后从thread_info.task就可以获取当前task_struct结构的地址了。 内核中经常通过current宏来获得当前进程对应的struct task_sturct结构,我们来看下具体的实现。 arch/arm/include/asm/percpu.h 78register unsignedlongcurrent...
Type:Bug Component:hotspot Sub-Component:jvmti Affected Version:11,12 Priority:P4 Status:Resolved Resolution:Fixed OS:linux,solaris CPU:x86_64,sparc_64 Submitted:2018-08-29 Updated:2020-10-07 Resolved:2018-09-07 Versions (Unresolved/Resolved/Fixed) ...