{"action":"created","issue":{"url":"https://api.github.com/repos/iovisor/bcc/issues/437","repository_url":"https://api.github.com/repos/iovisor/bcc","labels_url":"https://api.github.com/repos/iovisor/bcc/issues/437/labels{/name}","comments_url":"https://api.github.com/repos/iovisor/bcc/issues/437/comments","events_url":"https://api.github.com/repos/iovisor/bcc/issues/437/events","html_url":"https://github.com/iovisor/bcc/issues/437","id":141134415,"number":437,"title":"offwaketime userspace stack","user":{"login":"ceeaspb","id":7397675,"avatar_url":"https://avatars.githubusercontent.com/u/7397675?v=3","gravatar_id":"","url":"https://api.github.com/users/ceeaspb","html_url":"https://github.com/ceeaspb","followers_url":"https://api.github.com/users/ceeaspb/followers","following_url":"https://api.github.com/users/ceeaspb/following{/other_user}","gists_url":"https://api.github.com/users/ceeaspb/gists{/gist_id}","starred_url":"https://api.github.com/users/ceeaspb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceeaspb/subscriptions","organizations_url":"https://api.github.com/users/ceeaspb/orgs","repos_url":"https://api.github.com/users/ceeaspb/repos","events_url":"https://api.github.com/users/ceeaspb/events{/privacy}","received_events_url":"https://api.github.com/users/ceeaspb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-03-16T00:18:46Z","updated_at":"2016-11-05T00:03:20Z","closed_at":null,"body":"Would it be possible to get the userspace stack? \neg. I can't see where these calls are coming from in the java runtime. \n\n```\n    waker:           java\n    ffffffff8181c832 entry_SYSCALL_64_fastpath\n    ffffffff81101861 sys_futex\n    ffffffff8110162e do_futex\n    ffffffff810ffa2c futex_wake_op\n    -                -\n    ffffffff81818755 schedule\n    ffffffff810fe902 futex_wait_queue_me\n    ffffffff810fec16 futex_wait\n    ffffffff81101400 do_futex\n    ffffffff81101861 sys_futex\n    ffffffff8181c832 entry_SYSCALL_64_fastpath\n    target:          java\n        19974615\n```\n"},"comment":{"url":"https://api.github.com/repos/iovisor/bcc/issues/comments/258575833","html_url":"https://github.com/iovisor/bcc/issues/437#issuecomment-258575833","issue_url":"https://api.github.com/repos/iovisor/bcc/issues/437","id":258575833,"user":{"login":"ceeaspb","id":7397675,"avatar_url":"https://avatars.githubusercontent.com/u/7397675?v=3","gravatar_id":"","url":"https://api.github.com/users/ceeaspb","html_url":"https://github.com/ceeaspb","followers_url":"https://api.github.com/users/ceeaspb/followers","following_url":"https://api.github.com/users/ceeaspb/following{/other_user}","gists_url":"https://api.github.com/users/ceeaspb/gists{/gist_id}","starred_url":"https://api.github.com/users/ceeaspb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceeaspb/subscriptions","organizations_url":"https://api.github.com/users/ceeaspb/orgs","repos_url":"https://api.github.com/users/ceeaspb/repos","events_url":"https://api.github.com/users/ceeaspb/events{/privacy}","received_events_url":"https://api.github.com/users/ceeaspb/received_events","type":"User","site_admin":false},"created_at":"2016-11-05T00:03:19Z","updated_at":"2016-11-05T00:03:19Z","body":"Prompted for some reason by this thread, http://mail.openjdk.java.net/pipermail/hotspot-dev/2016-November/025142.html, and after an evening's copy and pasting from the support like you said that is now in the other tools, I think I have this working. eg.\r\nI should be able to put together a PR for it.\r\n\r\n@brendangregg I could probably also merge/update your chaintest code if you didn't take it any further / if that is of interest? ie. https://gist.github.com/brendangregg/c67039252268ec5e66ba\r\n\r\n```\r\n    waker:           java 4656\r\n    7f52790b070a     start_thread\r\n    7f5279ab348d     [unknown]\r\n    7f5279aaf541     [unknown]\r\n    7f52787efce6     jni_CallStaticVoidMethod\r\n    7f52787ed5c7     jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*) [clone .isra.82] [clone .constprop.89]\r\n    7f52787ccd43     JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)\r\n    7f52610004e7     call_stub\r\n    7f5261007e54     Interpreter\r\n    7f52611b027c     Ljava/util/concurrent/Executors$DelegatedExecutorService;::submit->Ljava/util/concurrent/AbstractExecutorService;::submit->Ljava/util/concurrent/ThreadPoolExecutor;::execute->Ljava/util/concurrent/LinkedBlockingQueue;::offer->Ljava/util/concurrent/LinkedBlockingQueue;::signalNotEmpty->Ljava/util/concurrent/locks/ReentrantLock;::unlock->Ljava/util/concurrent/locks/AbstractQueuedSynchronizer;::release->Ljava/util/concurrent/locks/AbstractQueuedSynchronizer;::unparkSuccessor->Ljava/util/concurrent/locks/LockSupport;::unpark\r\n    7f52611858fc     Lsun/misc/Unsafe;::unpark\r\n    ffffffff83e8bbbb entry_SYSCALL_64_fastpath\r\n    ffffffff8370c785 SyS_futex\r\n    ffffffff8370c5a0 do_futex\r\n    ffffffff8370a5a3 futex_wake_op\r\n    -                -\r\n    ffffffff836ac511 finish_task_switch\r\n    ffffffff83e86e46 schedule\r\n    ffffffff83709344 futex_wait_queue_me\r\n    ffffffff83709f96 futex_wait\r\n    ffffffff8370c3e7 do_futex\r\n    ffffffff8370c785 SyS_futex\r\n    ffffffff83e8bbbb entry_SYSCALL_64_fastpath\r\n    7f52790b6510     __pthread_cond_wait\r\n    178              [unknown]\r\n    7f52611727ea     Lsun/misc/Unsafe;::park\r\n    7f5261196cac     Ljava/util/concurrent/locks/AbstractQueuedSynchronizer$ConditionObject;::await->Ljava/util/concurrent/locks/LockSupport;::park\r\n    7f52611941bc     Ljava/util/concurrent/LinkedBlockingQueue;::take\r\n    7f52611927bc     Ljava/util/concurrent/ThreadPoolExecutor;::getTask\r\n    7f5261007d80     Interpreter\r\n    7f5261007ffd     Interpreter\r\n    7f5261008042     Interpreter\r\n    7f52610004e7     call_stub\r\n    7f52787ccd43     JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)\r\n    7f52787ca2b7     JavaCalls::call_virtual(JavaValue*, KlassHandle, Symbol*, Symbol*, JavaCallArguments*, Thread*)\r\n    7f52787ca897     JavaCalls::call_virtual(JavaValue*, Handle, KlassHandle, Symbol*, Symbol*, Thread*)\r\n    7f527880c164     thread_entry(JavaThread*, Thread*)\r\n    7f5278b79a2b     JavaThread::thread_main_inner()\r\n    7f5278b79eef     JavaThread::run()\r\n    7f5278a21192     java_start(Thread*)\r\n    7f52790b070a     start_thread\r\n    target:          java 4657\r\n```\r\n"}}
{"actor":{"display_login":"ceeaspb"}}