Lines Matching full:fixture

778 	struct fgraph_fixture *fixture = container_of(gops, struct fgraph_fixture, gops);  in store_entry()  local
779 const char *type = fixture->store_type_name; in store_entry()
780 int size = fixture->store_size; in store_entry()
785 snprintf(fixture->error_str_buf, ERRSTR_BUFLEN, in store_entry()
811 struct fgraph_fixture *fixture = container_of(gops, struct fgraph_fixture, gops); in store_return() local
812 const char *type = fixture->store_type_name; in store_return()
820 snprintf(fixture->error_str_buf, ERRSTR_BUFLEN, in store_return()
824 if (fixture->store_size > size) { in store_return()
825 snprintf(fixture->error_str_buf, ERRSTR_BUFLEN, in store_return()
827 size, (int)fixture->store_size); in store_return()
831 switch (fixture->store_size) { in store_return()
851 snprintf(fixture->error_str_buf, ERRSTR_BUFLEN, in store_return()
855 fixture->error_str = NULL; in store_return()
858 static int __init init_fgraph_fixture(struct fgraph_fixture *fixture) in init_fgraph_fixture() argument
863 snprintf(fixture->error_str_buf, ERRSTR_BUFLEN, in init_fgraph_fixture()
864 "Failed to execute storage %s\n", fixture->store_type_name); in init_fgraph_fixture()
865 fixture->error_str = fixture->error_str_buf; in init_fgraph_fixture()
870 return ftrace_set_filter(&fixture->gops.ops, func_name, len, 1); in init_fgraph_fixture()
874 static int __init test_graph_storage_single(struct fgraph_fixture *fixture) in test_graph_storage_single() argument
876 int size = fixture->store_size; in test_graph_storage_single()
882 ret = init_fgraph_fixture(fixture); in test_graph_storage_single()
888 ret = register_ftrace_graph(&fixture->gops); in test_graph_storage_single()
896 unregister_ftrace_graph(&fixture->gops); in test_graph_storage_single()
898 if (fixture->error_str) { in test_graph_storage_single()
899 pr_cont("*** %s ***", fixture->error_str); in test_graph_storage_single()
943 struct fgraph_fixture *fixture; in test_graph_storage_multi() local
951 fixture = &store_bytes[i]; in test_graph_storage_multi()
952 ret = init_fgraph_fixture(fixture); in test_graph_storage_multi()
961 fixture = &store_bytes[j]; in test_graph_storage_multi()
962 ret = register_ftrace_graph(&fixture->gops); in test_graph_storage_multi()
973 fixture = &store_bytes[j]; in test_graph_storage_multi()
974 unregister_ftrace_graph(&fixture->gops); in test_graph_storage_multi()
976 if (fixture->error_str && !printed) { in test_graph_storage_multi()
977 pr_cont("*** %s ***", fixture->error_str); in test_graph_storage_multi()
983 fixture = &store_bytes[i]; in test_graph_storage_multi()
984 ftrace_free_filter(&fixture->gops.ops); in test_graph_storage_multi()
986 if (fixture->error_str && !printed) { in test_graph_storage_multi()
987 pr_cont("*** %s ***", fixture->error_str); in test_graph_storage_multi()