Note that there are some explanatory texts on larger screens.

plurals
  1. POTracing mysqld Using SystemTap
    primarykey
    data
    text
    <p>I wanna use systemtap to trace MySQL.<br/> The problem is, after MySQL is configured and built and I start the server, I can't get the markers info that are present in the server:<br/></p> <p><code>[root@localhost]$ stap -l 'process("/home/mysql/mysql5.5.33/bin/mysqld").mark("*")'</code> <br/> <code>[root@localhost]$</code> <strong>(nothing ouput)</strong><br/></p> <p>My env as follows:<br/></p> <pre><code>1 stap version $ stap --version Systemtap translator/driver (version 1.7/0.152 non-git sources) Copyright (C) 2005-2012 Red Hat, Inc. and others This is free software; see the source for copying conditions. enabled features: AVAHI LIBRPM LIBSQLITE3 NSS BOOST_SHARED_PTR TR1_UNORDERED_MAP NLS </code></pre> <p>2 I configure MySQL using script as follows:<br/></p> <pre><code>cmake \ -DCMAKE_INSTALL_PREFIX=/home/mysql/mysql5.6.12 \ -DDEFAULT_CHARSET=utf8 \ -DDEFAULT_COLLATION=utf8_general_ci \ -DWITH_MYISAM_STORAGE_ENGINE=1 \ -DWITH_INNOBASE_STORAGE_ENGINE=1 \ -DENABLED_LOCAL_INFILE=1 \ -DENABLED_DTRACE=1 \ -DWITH_DEBUG=1 \ </code></pre> <p>BTW:I can get function output<br> <code>[root@localhost] stap -L 'process("/home/mysql/mysql5.6.12/bin/mysqld").function("main")'</code><br> <code>process("/home/mysql/mysql5.6.12/bin/mysqld").function("main@/home/mysql/mysql-5.6.12/sql/main.cc:23") $argc:int $argv:char**</code></p> <p>readelf -n /home/mysql/mysql5.6.12/bin/mysqld<br/> `Notes at offset 0x0000021c with length 0x00000020:<br/> Owner Data size Description<br/> GNU 0x00000010 NT_GNU_ABI_TAG (ABI version tag)<br/></p> <p>Notes at offset 0x0000023c with length 0x00000024:<br/> Owner Data size Description<br/> GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID bitstring)`</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload