~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/probes.d

  • Committer: Padraig O'Sullivan
  • Date: 2009-09-14 20:44:27 UTC
  • mto: (1126.9.2 captain-20090915-01)
  • mto: This revision was merged to the branch mainline in revision 1133.
  • Revision ID: osullivan.padraig@gmail.com-20090914204427-x1mbctvf8hrwdmri
Updated the char * arguments to the dtrace probes to be const and also added
a sed hack to the generated_probes header file directive in the makefile to
ensure that the function prototypes have const char * also.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
   * add the query string to most other DTrace probes as well. Hostname is
63
63
   * either the hostname or the IP address of the Drizzle client.
64
64
   */
65
 
  probe query__start(char *query,
 
65
  probe query__start(const char *query,
66
66
                     unsigned long conn_id,
67
 
                     char *db_name);
 
67
                     const char *db_name);
68
68
  probe query__done(int status); 
69
69
 
70
70
  /* Fire at the start/end of SQL query parsing */
71
 
  probe query__parse__start(char *query);
 
71
  probe query__parse__start(const char *query);
72
72
  probe query__parse__done(int status);
73
73
 
74
74
  /*
75
75
   * This probe fires when the actual query execution starts
76
76
   */
77
 
  probe query__exec__start(char *query,
 
77
  probe query__exec__start(const char *query,
78
78
                           unsigned long connid,
79
 
                           char *db_name);
 
79
                           const char *db_name);
80
80
  probe query__exec__done(int status);
81
81
 
82
82
  /* These probes fire when performing write operations towards any handler */
83
 
  probe insert__row__start(char *db, char *table);
 
83
  probe insert__row__start(const char *db, const char *table);
84
84
  probe insert__row__done(int status);
85
 
  probe update__row__start(char *db, char *table);
 
85
  probe update__row__start(const char *db, const char *table);
86
86
  probe update__row__done(int status);
87
 
  probe delete__row__start(char *db, char *table);
 
87
  probe delete__row__start(const char *db, const char *table);
88
88
  probe delete__row__done(int status);
89
89
 
90
90
  /*
91
91
   * These probes fire when calling external_lock for any handler
92
92
   * depending on the lock type being acquired or released.
93
93
   */
94
 
  probe handler__rdlock__start(char *db, char *table);
95
 
  probe handler__wrlock__start(char *db, char *table);
96
 
  probe handler__unlock__start(char *db, char *table);
 
94
  probe handler__rdlock__start(const char *db, const char *table);
 
95
  probe handler__wrlock__start(const char *db, const char *table);
 
96
  probe handler__unlock__start(const char *db, const char *table);
97
97
  probe handler__rdlock__done(int status);
98
98
  probe handler__wrlock__done(int status);
99
99
  probe handler__unlock__done(int status);
101
101
  /*
102
102
   * These probes fire when a filesort activity happens in a query.
103
103
   */
104
 
  probe filesort__start(char *db, char *table);
 
104
  probe filesort__start(const char *db, const char *table);
105
105
  probe filesort__done(int status, unsigned long rows);
106
106
  /*
107
107
   * The query types SELECT, INSERT, INSERT AS SELECT, UPDATE, DELETE
108
108
   * are all probed.
109
109
   * The start probe always contains the query text.
110
110
   */
111
 
  probe select__start(char *query);
 
111
  probe select__start(const char *query);
112
112
  probe select__done(int status, unsigned long rows);
113
 
  probe insert__start(char *query);
 
113
  probe insert__start(const char *query);
114
114
  probe insert__done(int status, unsigned long rows);
115
 
  probe insert__select__start(char *query);
 
115
  probe insert__select__start(const char *query);
116
116
  probe insert__select__done(int status, unsigned long rows);
117
 
  probe update__start(char *query);
 
117
  probe update__start(const char *query);
118
118
  probe update__done(int status,
119
119
                     unsigned long rowsmatches, unsigned long rowschanged);
120
 
  probe delete__start(char *query);
 
120
  probe delete__start(const char *query);
121
121
  probe delete__done(int status, unsigned long rows);
122
122
 
123
123
};