aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2021-11-25 09:58:09 -0500
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-12-01 13:49:18 -0500
commitd626796546dd082caa9c2eb44f5ca3df577842d1 (patch)
tree9878263fdfa57e16e328f5415f8c0b4e3593962e /include
parent8c5d9fb5569017d926127f7a71c073fea2278726 (diff)
downloadlibtracefs-d626796546dd082caa9c2eb44f5ca3df577842d1.tar.gz
libtracefs: Rename tracefs_hist*alloc*() functions once again
After reviewing an early user of libtracefs hist APIs, it seems more logical to have the most common case (1 dimensional histograms) be the default name. Rename the functions: tracefs_hist1d_alloc() --> tracefs_hist_alloc() tracefs_hist2d_alloc() --> tracefs_hist_alloc_2d() tracefs_hist_alloc() --> tracefs_hist_alloc_nd() Also, by having all start with "tracefs_hist_alloc" it makes them easier to grep for. Link: https://lore.kernel.org/all/1d9826696a1e8c3584158c0dd570b8b22db708db.1635535309.git.bristot@kernel.org/ Link: https://lore.kernel.org/linux-trace-devel/20211125095809.305fb243@oasis.local.home Cc: Daniel Bristot de Oliveira <bristot@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'include')
-rw-r--r--include/tracefs.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/tracefs.h b/include/tracefs.h
index 9662603..8b8b554 100644
--- a/include/tracefs.h
+++ b/include/tracefs.h
@@ -334,14 +334,14 @@ enum tracefs_compare {
void tracefs_hist_free(struct tracefs_hist *hist);
struct tracefs_hist *
-tracefs_hist1d_alloc(struct tep_handle *tep,
- const char *system, const char *event_name,
- const char *key, enum tracefs_hist_key_type type);
+tracefs_hist_alloc(struct tep_handle *tep,
+ const char *system, const char *event_name,
+ const char *key, enum tracefs_hist_key_type type);
struct tracefs_hist *
-tracefs_hist2d_alloc(struct tep_handle *tep,
- const char *system, const char *event_name,
- const char *key1, enum tracefs_hist_key_type type1,
- const char *key2, enum tracefs_hist_key_type type2);
+tracefs_hist_alloc_2d(struct tep_handle *tep,
+ const char *system, const char *event_name,
+ const char *key1, enum tracefs_hist_key_type type1,
+ const char *key2, enum tracefs_hist_key_type type2);
struct tracefs_hist_axis {
const char *key;
@@ -349,9 +349,9 @@ struct tracefs_hist_axis {
};
struct tracefs_hist *
-tracefs_hist_alloc(struct tep_handle *tep,
- const char *system, const char *event_name,
- struct tracefs_hist_axis *axes);
+tracefs_hist_alloc_nd(struct tep_handle *tep,
+ const char *system, const char *event_name,
+ struct tracefs_hist_axis *axes);
const char *tracefs_get_hist_name(struct tracefs_hist *hist);
const char *tracefs_get_hist_event(struct tracefs_hist *hist);
const char *tracefs_get_hist_system(struct tracefs_hist *hist);