Lines Matching full:fixture
780 struct fgraph_fixture *fixture = container_of(gops, struct fgraph_fixture, gops); in store_entry() local
781 const char *type = fixture->store_type_name; in store_entry()
782 int size = fixture->store_size; in store_entry()
787 snprintf(fixture->error_str_buf, ERRSTR_BUFLEN, in store_entry()
814 struct fgraph_fixture *fixture = container_of(gops, struct fgraph_fixture, gops); in store_return() local
815 const char *type = fixture->store_type_name; in store_return()
823 snprintf(fixture->error_str_buf, ERRSTR_BUFLEN, in store_return()
827 if (fixture->store_size > size) { in store_return()
828 snprintf(fixture->error_str_buf, ERRSTR_BUFLEN, in store_return()
830 size, (int)fixture->store_size); in store_return()
834 switch (fixture->store_size) { in store_return()
854 snprintf(fixture->error_str_buf, ERRSTR_BUFLEN, in store_return()
858 fixture->error_str = NULL; in store_return()
861 static int __init init_fgraph_fixture(struct fgraph_fixture *fixture) in init_fgraph_fixture() argument
866 snprintf(fixture->error_str_buf, ERRSTR_BUFLEN, in init_fgraph_fixture()
867 "Failed to execute storage %s\n", fixture->store_type_name); in init_fgraph_fixture()
868 fixture->error_str = fixture->error_str_buf; in init_fgraph_fixture()
873 return ftrace_set_filter(&fixture->gops.ops, func_name, len, 1); in init_fgraph_fixture()
877 static int __init test_graph_storage_single(struct fgraph_fixture *fixture) in test_graph_storage_single() argument
879 int size = fixture->store_size; in test_graph_storage_single()
885 ret = init_fgraph_fixture(fixture); in test_graph_storage_single()
891 ret = register_ftrace_graph(&fixture->gops); in test_graph_storage_single()
899 unregister_ftrace_graph(&fixture->gops); in test_graph_storage_single()
901 if (fixture->error_str) { in test_graph_storage_single()
902 pr_cont("*** %s ***", fixture->error_str); in test_graph_storage_single()
946 struct fgraph_fixture *fixture; in test_graph_storage_multi() local
954 fixture = &store_bytes[i]; in test_graph_storage_multi()
955 ret = init_fgraph_fixture(fixture); in test_graph_storage_multi()
964 fixture = &store_bytes[j]; in test_graph_storage_multi()
965 ret = register_ftrace_graph(&fixture->gops); in test_graph_storage_multi()
976 fixture = &store_bytes[j]; in test_graph_storage_multi()
977 unregister_ftrace_graph(&fixture->gops); in test_graph_storage_multi()
979 if (fixture->error_str && !printed) { in test_graph_storage_multi()
980 pr_cont("*** %s ***", fixture->error_str); in test_graph_storage_multi()
986 fixture = &store_bytes[i]; in test_graph_storage_multi()
987 ftrace_free_filter(&fixture->gops.ops); in test_graph_storage_multi()
989 if (fixture->error_str && !printed) { in test_graph_storage_multi()
990 pr_cont("*** %s ***", fixture->error_str); in test_graph_storage_multi()