Lines Matching refs:fixture

779 	struct fgraph_fixture *fixture = container_of(gops, struct fgraph_fixture, gops);  in store_entry()  local
780 const char *type = fixture->store_type_name; in store_entry()
781 int size = fixture->store_size; in store_entry()
786 snprintf(fixture->error_str_buf, ERRSTR_BUFLEN, in store_entry()
812 struct fgraph_fixture *fixture = container_of(gops, struct fgraph_fixture, gops); in store_return() local
813 const char *type = fixture->store_type_name; in store_return()
821 snprintf(fixture->error_str_buf, ERRSTR_BUFLEN, in store_return()
825 if (fixture->store_size > size) { in store_return()
826 snprintf(fixture->error_str_buf, ERRSTR_BUFLEN, in store_return()
828 size, (int)fixture->store_size); in store_return()
832 switch (fixture->store_size) { in store_return()
852 snprintf(fixture->error_str_buf, ERRSTR_BUFLEN, in store_return()
856 fixture->error_str = NULL; in store_return()
859 static int __init init_fgraph_fixture(struct fgraph_fixture *fixture) in init_fgraph_fixture() argument
864 snprintf(fixture->error_str_buf, ERRSTR_BUFLEN, in init_fgraph_fixture()
865 "Failed to execute storage %s\n", fixture->store_type_name); in init_fgraph_fixture()
866 fixture->error_str = fixture->error_str_buf; in init_fgraph_fixture()
871 return ftrace_set_filter(&fixture->gops.ops, func_name, len, 1); in init_fgraph_fixture()
875 static int __init test_graph_storage_single(struct fgraph_fixture *fixture) in test_graph_storage_single() argument
877 int size = fixture->store_size; in test_graph_storage_single()
883 ret = init_fgraph_fixture(fixture); in test_graph_storage_single()
889 ret = register_ftrace_graph(&fixture->gops); in test_graph_storage_single()
897 unregister_ftrace_graph(&fixture->gops); in test_graph_storage_single()
899 if (fixture->error_str) { in test_graph_storage_single()
900 pr_cont("*** %s ***", fixture->error_str); in test_graph_storage_single()
944 struct fgraph_fixture *fixture; in test_graph_storage_multi() local
952 fixture = &store_bytes[i]; in test_graph_storage_multi()
953 ret = init_fgraph_fixture(fixture); in test_graph_storage_multi()
962 fixture = &store_bytes[j]; in test_graph_storage_multi()
963 ret = register_ftrace_graph(&fixture->gops); in test_graph_storage_multi()
974 fixture = &store_bytes[j]; in test_graph_storage_multi()
975 unregister_ftrace_graph(&fixture->gops); in test_graph_storage_multi()
977 if (fixture->error_str && !printed) { in test_graph_storage_multi()
978 pr_cont("*** %s ***", fixture->error_str); in test_graph_storage_multi()
984 fixture = &store_bytes[i]; in test_graph_storage_multi()
985 ftrace_free_filter(&fixture->gops.ops); in test_graph_storage_multi()
987 if (fixture->error_str && !printed) { in test_graph_storage_multi()
988 pr_cont("*** %s ***", fixture->error_str); in test_graph_storage_multi()